src/PHPDish/Bundle/UserBundle/Service/UserManager.php
public function findUsersByCriteria(Criteria $criteria)
    {
        return $this->getRepository()->createQueryBuilder('u')
            ->addCriteria($criteria)
            ->getQuery()
            ->getResult();
    }
public function findUsersByCriteria(Criteria $criteria)
    {
        return $this->getRepository()->createQueryBuilder('u')
            ->addCriteria($criteria)
            ->getQuery()
            ->getResult();
    }
{@inheritdoc}