Created issue:

    https://github.com/doctrine/phpcr-odm/issues/328

in Mon, Sep 16, 2013 at 02:59:08AM -0700, Lukas Kahwe Smith wrote:
>    In lib/Doctrine/ODM/PHPCR/DocumentRepository.php:
> 
>  >          foreach ($criteria as $field => $value) {
>  > -            $qb->andWhere(
>  > -                $qb->expr()->eq($field, $value)
>  > -            );
>  > +            if ($first) {
>  > +                $first = false;
>  > +                $where = $qb->where();
>  > +            } else {
>  > +                $where = $qb->andWhere();
> 
>    yeah .. would simplify end user code and i dont think there is a draw
>    back.
> 
>    —
>    Reply to this email directly or [1]view it on GitHub.
> 
> References
> 
>    Visible links
>    1. https://github.com/doctrine/phpcr-odm/pull/318/files#r6373018