function ObjectRepository::findBy

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

mixed The objects.

Throws

\UnexpectedValueException

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/ObjectRepository.php, line 62

Class

ObjectRepository
Contract for a Doctrine persistence layer ObjectRepository class to implement.

Namespace

Doctrine\Common\Persistence

Code

function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null);