Doctrine\MongoDB\Aggregation\Builder::match PHP Method

match() public method

Filters the documents to pass only the documents that match the specified condition(s) to the next pipeline stage.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/match/
public match ( ) : Match
return Doctrine\MongoDB\Aggregation\Stage\Match
    public function match()
    {
        return $this->addStage(new Stage\Match($this));
    }

Usage Example

Beispiel #1
0
 /**
  * Filters the documents to pass only the documents that match the specified
  * condition(s) to the next pipeline stage.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/match/
  *
  * @return Stage\Match
  */
 public function match()
 {
     return $this->builder->match();
 }