1
0
mirror of synced 2025-01-09 18:47:10 +03:00

Merge pull request #1044 from ronanguilloux/patch-2

Use of ->andWhere() whithout any ->where() before is valid
This commit is contained in:
Marco Pivetta 2014-05-29 22:42:09 +02:00
commit 5d1275e938

View File

@ -156,6 +156,8 @@ Here is a complete list of helper methods available in ``QueryBuilder``:
// Example - $qb->where('u.firstName = ?1 AND u.surname = ?2')
public function where($where);
// NOTE: ->andWhere() can be used directly, without any ->where() before
//
// Example - $qb->andWhere($qb->expr()->orX($qb->expr()->lte('u.age', 40), 'u.numChild = 0'))
public function andWhere($where);