src/Repository/Doctrine/ORMRepository.php
public function findBy($criteria)
    {
        $criteria = Util::normalizeCriteria($criteria);

        $queryBuilder = $this->getQueryBuilder($criteria);

        return $queryBuilder->getQuery()->getResult();
    }
public function findBy($criteria)
    {
        $criteria = Util::normalizeCriteria($criteria);

        $queryBuilder = $this->getQueryBuilder($criteria);

        return $queryBuilder->getQuery()->getResult();
    }
public function findBy ( $ criteria ) { $ criteria = Util :: normalizeCriteria ( $ criteria ) ; $ queryBuilder = $ this -> getQueryBuilder ( $ criteria ) ; return $ queryBuilder -> getQuery ( ) -> getResult ( ) ; }
Tries to find entities by a set of criteria.

Optionally sorting and limiting details can be passed. An implementation may throw an UnexpectedValueException
if certain values of the sorting or limiting details are not supported.

@param array|Criteria $criteria The criteria to find entities by.
@return array Returns an array with found entities. Returns an empty array when no entities are found.
@throws \Doctrine\ORM\Query\QueryException
@throws UnexpectedValueException Thrown when provided parameters are not supported.
Tries to find entities by a set of criteria .