Doctrine\Common\Persistence\ObjectRepository::findBy PHP 메소드

findBy() 공개 메소드

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.
public findBy ( array $criteria, array $orderBy = null, integer | null $limit = null, integer | null $offset = null ) : array
$criteria array
$orderBy array
$limit integer | null
$offset integer | null
리턴 array The objects.
    public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null);

Usage Example

예제 #1
0
파일: User.php 프로젝트: Indigo1337/c4d
 public function findAll()
 {
     if (false === $this->authorizationService->isGranted('user.admin')) {
         throw new UnauthorizedException('Insufficient Permissions');
     }
     return $this->objectRepository->findBy([], ['email' => 'ASC']);
 }
All Usage Examples Of Doctrine\Common\Persistence\ObjectRepository::findBy