Using `where()` twice will result in the second one overriding the first one.

You can indeed use `andWhere()` or `orWhere()`.

You can also use the Expression library:

$qb->where(
    $qb->expr()->andX(
        $qb->expr()->orX(
            // ...
        ),
        $qb->expr()->orX(
            // ...
        )
    )
)

As you can see you can nest these `andX()` / `orX()` calls however deep you 
want.

--  
Jasper N. Brouwer
(@jaspernbrouwer)


On 28 July 2014 at 19:46:25, João Carlos Santa Ana ([email protected]) 
wrote:
> Tanks, You are right.


-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to