Свойство | Type | Description | |
---|---|---|---|
$class | |||
$dm | |||
$documentName | string | ||
$uow |
Méthode | Description | |
---|---|---|
__call ( string $method, array $arguments ) : array | object | Adds support for magic finders. | |
__construct ( |
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 ( ) : |
Creates a new Aggregation\Builder instance that is prepopulated for this document name. | |
createQueryBuilder ( ) : |
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 ( ) : |
||
getClassName ( ) : string | ||
getDocumentManager ( ) : |
||
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. |
Méthode | Description | |
---|---|---|
getDocumentPersister ( ) |
public __construct ( |
||
$dm | The DocumentManager to use. | |
$uow | The UnitOfWork to use. | |
$classMetadata | The class metadata. |
public clear ( ) |
public createAggregationBuilder ( ) : |
||
Résultat |
public createQueryBuilder ( ) : |
||
Résultat | $qb |
public find ( mixed $id, integer $lockMode = LockMode::NONE, integer $lockVersion = null ) : object | null | ||
$id | mixed | Identifier. |
$lockMode | integer | Optional. Lock mode; one of the LockMode constants. |
$lockVersion | integer | Optional. Expected version. |
Résultat | object | null | The document, if found, otherwise null. |
public findBy ( array $criteria, array $sort = null, integer | null $limit = null, integer | null $skip = null ) : array | ||
$criteria | array | Query criteria |
$sort | array | Sort array for Cursor::sort() |
$limit | integer | null | Limit for Cursor::limit() |
$skip | integer | null | Skip for Cursor::skip() |
Résultat | array |
public getClassMetadata ( ) : |
||
Résultat |
public getDocumentManager ( ) : |
||
Résultat |
public matching ( Doctrine\Common\Collections\Criteria $criteria ) : Doctrine\Common\Collections\Collection | ||
$criteria | Doctrine\Common\Collections\Criteria | |
Résultat | Doctrine\Common\Collections\Collection |
protected ClassMetadata,Doctrine\ODM\MongoDB\Mapping $class | ||
Résultat |
protected DocumentManager,Doctrine\ODM\MongoDB $dm | ||
Résultat |