PHP 인터페이스 Doctrine\Common\Persistence\ObjectRepository

부터: 2.1
저자: Benjamin Eberlei ([email protected])
저자: Jonathan Wage ([email protected])
파일 보기 프로젝트 열기: doctrine/common 0 사용 예제들

공개 메소드들

메소드 설명
find ( mixed $id ) : object | null Finds an object by its primary key / identifier.
findAll ( ) : array Finds all objects in the repository.
findBy ( array $criteria, array $orderBy = null, integer | null $limit = null, integer | null $offset = null ) : array Finds objects by a set of criteria.
findOneBy ( array $criteria ) : object | null Finds a single object by a set of criteria.
getClassName ( ) : string Returns the class name of the object managed by the repository.

메소드 상세

find() 공개 메소드

Finds an object by its primary key / identifier.
public find ( mixed $id ) : object | null
$id mixed The identifier.
리턴 object | null The object.

findAll() 공개 메소드

Finds all objects in the repository.
public findAll ( ) : array
리턴 array The objects.

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.

findOneBy() 공개 메소드

Finds a single object by a set of criteria.
public findOneBy ( array $criteria ) : object | null
$criteria array The criteria.
리턴 object | null The object.

getClassName() 공개 메소드

Returns the class name of the object managed by the repository.
public getClassName ( ) : string
리턴 string