PHP 클래스 Doctrine\ODM\MongoDB\Aggregation\Builder

상속: extends Doctrine\MongoDB\Aggregation\Builder
파일 보기 프로젝트 열기: doctrine/mongodb-odm

공개 메소드들

메소드 설명
__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 )

비공개 메소드들

메소드 설명
applyFilters ( array $query ) : array Applies filters and discriminator queries to the pipeline
getDocumentPersister ( ) : DocumentPersister
prepareCursor ( Doctrine\MongoDB\CommandCursor $cursor ) : CommandCursor

메소드 상세

__construct() 공개 메소드

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

execute() 공개 메소드

public execute ( $options = [] )

expr() 공개 메소드

public expr ( ) : Expr
리턴 Expr

getPipeline() 공개 메소드

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
리턴 array

hydrate() 공개 메소드

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

lookup() 공개 메소드

public lookup ( string $from ) : Lookup
$from string
리턴 Doctrine\ODM\MongoDB\Aggregation\Stage\Lookup

match() 공개 메소드

public match ( ) : Match
리턴 Doctrine\ODM\MongoDB\Aggregation\Stage\Match

matchExpr() 공개 메소드

public matchExpr ( ) : Doctrine\ODM\MongoDB\Query\Expr
리턴 Doctrine\ODM\MongoDB\Query\Expr

out() 공개 메소드

public out ( string $from ) : Out
$from string
리턴 Doctrine\ODM\MongoDB\Aggregation\Stage\Out

sort() 공개 메소드

public sort ( $fieldName, $order = null )

unwind() 공개 메소드

public unwind ( $fieldName )