PHP Class Doctrine\ODM\MongoDB\Aggregation\Builder

Inheritance: extends Doctrine\MongoDB\Aggregation\Builder
Afficher le fichier Open project: doctrine/mongodb-odm

Méthodes publiques

Méthode Description
__construct ( DocumentManager $dm, string $documentName ) Create a new aggregation builder.
execute ( $options = [] )
expr ( ) : Expr
getPipeline ( ) : array Returns the assembled aggregation pipeline
hydrate ( string $className ) : self Set which class to use when hydrating results as document class instances.
lookup ( string $from ) : Lookup
match ( ) : Match
matchExpr ( ) : Doctrine\ODM\MongoDB\Query\Expr
out ( string $from ) : Out
sort ( $fieldName, $order = null )
unwind ( $fieldName )

Private Methods

Méthode Description
applyFilters ( array $query ) : array Applies filters and discriminator queries to the pipeline
getDocumentPersister ( ) : DocumentPersister
prepareCursor ( Doctrine\MongoDB\CommandCursor $cursor ) : CommandCursor

Method Details

__construct() public méthode

Create a new aggregation builder.
public __construct ( DocumentManager $dm, string $documentName )
$dm Doctrine\ODM\MongoDB\DocumentManager
$documentName string

execute() public méthode

public execute ( $options = [] )

expr() public méthode

public expr ( ) : Expr
Résultat Expr

getPipeline() public méthode

For pipelines where the first stage is a $geoNear stage, it will apply the document filters and discriminator queries to the query portion of the geoNear operation. For all other pipelines, it prepends a $match stage containing the required query.
public getPipeline ( ) : array
Résultat array

hydrate() public méthode

Set which class to use when hydrating results as document class instances.
public hydrate ( string $className ) : self
$className string
Résultat self

lookup() public méthode

public lookup ( string $from ) : Lookup
$from string
Résultat Doctrine\ODM\MongoDB\Aggregation\Stage\Lookup

match() public méthode

public match ( ) : Match
Résultat Doctrine\ODM\MongoDB\Aggregation\Stage\Match

matchExpr() public méthode

public matchExpr ( ) : Doctrine\ODM\MongoDB\Query\Expr
Résultat Doctrine\ODM\MongoDB\Query\Expr

out() public méthode

public out ( string $from ) : Out
$from string
Résultat Doctrine\ODM\MongoDB\Aggregation\Stage\Out

sort() public méthode

public sort ( $fieldName, $order = null )

unwind() public méthode

public unwind ( $fieldName )