You are here

public function ObjectRepository::findBy in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/lib/Doctrine/Common/Persistence/ObjectRepository.php \Doctrine\Common\Persistence\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

array The objects.

Throws

\UnexpectedValueException

File

vendor/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\Persistence

Code

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