public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
    {
        return $this->objectRepository->findBy($criteria, $orderBy, $limit, $offset);
    }
public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
    {
        return $this->objectRepository->findBy($criteria, $orderBy, $limit, $offset);
    }
public function findBy ( array $ criteria , array $ orderBy = null , $ limit = null , $ offset = null ) { return $ this -> objectRepository -> findBy ( $ criteria , $ orderBy , $ limit , $ offset ) ; }
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
@param array|null $orderBy
@param null $limit
@param null $offset
@return Object[]
@throws UnexpectedValueException
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 .