PHP Класс Doctrine\ODM\OrientDB\Repository

Наследование: implements Doctrine\Common\Persistence\ObjectRepository
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$className
$manager

Открытые методы

Метод Описание
__call ( string $method, array $arguments ) : method Convenient method that intercepts the find*By*() calls.
__construct ( string $className, Manager $manager ) Instantiates a new repository.
find ( string $rid, $fetchPlan = '*:0' ) : object Finds an object by its primary key / identifier.
findAll ( ) : mixed Finds all objects in the repository.
findBy ( array $criteria, array $orderBy = [], integer | null $limit = null, integer | null $offset = null, $fetchPlan = '*:0' ) : mixed Finds objects by a set of criteria.
findOneBy ( array $criteria ) : object Finds a single object by a set of criteria.
getClassName ( ) : string Returns the POPO class associated with this repository.

Защищенные методы

Метод Описание
contains ( object $document ) : boolean Verifies if the $document should belog to this repository.
getManager ( ) : Manager Returns the manager associated with this repository.
getOrientClasses ( ) : Array Returns the OrientDB classes which are mapper by the Repository's $className.

Описание методов

__call() публичный Метод

Convenient method that intercepts the find*By*() calls.
public __call ( string $method, array $arguments ) : method
$method string
$arguments array
Результат method

__construct() публичный Метод

Instantiates a new repository.
public __construct ( string $className, Manager $manager )
$className string type
$manager Manager

contains() защищенный Метод

Verifies if the $document should belog to this repository.
protected contains ( object $document ) : boolean
$document object
Результат boolean

find() публичный Метод

Finds an object by its primary key / identifier.
public find ( string $rid, $fetchPlan = '*:0' ) : object
$rid string The identifier.
Результат object The object.

findAll() публичный Метод

Finds all objects in the repository.
public findAll ( ) : mixed
Результат mixed 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 = [], integer | null $limit = null, integer | null $offset = null, $fetchPlan = '*:0' ) : mixed
$criteria array
$orderBy array
$limit integer | null
$offset integer | null
Результат mixed The objects.

findOneBy() публичный Метод

Finds a single object by a set of criteria.
public findOneBy ( array $criteria ) : object
$criteria array
Результат object The object.

getClassName() публичный Метод

Returns the POPO class associated with this repository.
public getClassName ( ) : string
Результат string

getManager() защищенный Метод

Returns the manager associated with this repository.
protected getManager ( ) : Manager
Результат Manager

getOrientClasses() защищенный Метод

Returns the OrientDB classes which are mapper by the Repository's $className.
protected getOrientClasses ( ) : Array
Результат Array

Описание свойств

$className защищенное свойство

protected $className

$manager защищенное свойство

protected $manager