Doctrine\DBAL\Query\QueryBuilder::andWhere
Adds one or more restrictions to the query results, forming a logical conjunction with any previously specified restrictions.
<code> $qb = $conn->createQueryBuilder() ->select('u') ->from('users', 'u') ->where('u.username LIKE ?') ->andWhere('u.is_active = 1'); </code>
Signature
public function andWhere(mixed
$where )
Parameters
$where
— mixed- The query restrictions.
Returns
- QueryBuilder
- This QueryBuilder instance.