Doctrine\DBAL\Query\QueryBuilder::orWhere
Adds one or more restrictions to the query results, forming a logical disjunction with any previously specified restrictions.
<code> $qb = $em->createQueryBuilder() ->select('u.name') ->from('users', 'u') ->where('u.id = 1') ->orWhere('u.id = 2'); </code>
Signature
public function orWhere(mixed
$where )
Parameters
$where
— mixed- The WHERE statement
Returns
- QueryBuilder
- $qb