public function ObjectRepository::findBy in Plug 7
Finds objects 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.
Parameters
array $criteria:
array|null $orderBy:
int|null $limit:
int|null $offset:
Return value
array The objects.
Throws
\UnexpectedValueException
File
- lib/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ ObjectRepository.php, line 64
Class
- ObjectRepository
- Contract for a Doctrine persistence layer ObjectRepository class to implement.
Namespace
Doctrine\Common\PersistenceCode
public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null);