PHP Class Doctrine\ODM\OrientDB\Repository

Inheritance: implements Doctrine\Common\Persistence\ObjectRepository
Datei anzeigen Open project: doctrine/orientdb-odm Class Usage Examples

Protected Properties

Property Type Description
$className
$manager

Public Methods

Method Description
__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.

Protected Methods

Method Description
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.

Method Details

__call() public method

Convenient method that intercepts the find*By*() calls.
public __call ( string $method, array $arguments ) : method
$method string
$arguments array
return method

__construct() public method

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

contains() protected method

Verifies if the $document should belog to this repository.
protected contains ( object $document ) : boolean
$document object
return boolean

find() public method

Finds an object by its primary key / identifier.
public find ( string $rid, $fetchPlan = '*:0' ) : object
$rid string The identifier.
return object The object.

findAll() public method

Finds all objects in the repository.
public findAll ( ) : mixed
return mixed The objects.

findBy() public method

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
return mixed The objects.

findOneBy() public method

Finds a single object by a set of criteria.
public findOneBy ( array $criteria ) : object
$criteria array
return object The object.

getClassName() public method

Returns the POPO class associated with this repository.
public getClassName ( ) : string
return string

getManager() protected method

Returns the manager associated with this repository.
protected getManager ( ) : Manager
return Manager

getOrientClasses() protected method

Returns the OrientDB classes which are mapper by the Repository's $className.
protected getOrientClasses ( ) : Array
return Array

Property Details

$className protected_oe property

protected $className

$manager protected_oe property

protected $manager