Method |
Description |
|
__call ( string $method, array $arguments ) : array | object |
Adds support for magic finders. |
|
__construct ( DocumentManager $dm, UnitOfWork $uow, ClassMetadata $classMetadata ) |
Initializes this instance with the specified document manager, unit of work and
class metadata. |
|
clear ( ) |
Clears the repository, causing all managed documents to become detached. |
|
createAggregationBuilder ( ) : Builder |
Creates a new Aggregation\Builder instance that is prepopulated for this document name. |
|
createQueryBuilder ( ) : Builder |
Creates a new Query\Builder instance that is preconfigured for this document name. |
|
find ( mixed $id, integer $lockMode = LockMode::NONE, integer $lockVersion = null ) : object | null |
Finds a document matching the specified identifier. Optionally a lock mode and
expected version may be specified. |
|
findAll ( ) : array |
Finds all documents in the repository. |
|
findBy ( array $criteria, array $sort = null, integer | null $limit = null, integer | null $skip = null ) : array |
Finds documents by a set of criteria. |
|
findOneBy ( array $criteria ) : object |
Finds a single document by a set of criteria. |
|
getClassMetadata ( ) : ClassMetadata |
|
|
getClassName ( ) : string |
|
|
getDocumentManager ( ) : DocumentManager |
|
|
getDocumentName ( ) : string |
|
|
matching ( Doctrine\Common\Collections\Criteria $criteria ) : Doctrine\Common\Collections\Collection |
Selects all elements from a selectable that match the expression and
returns a new collection containing these elements. |
|