out() public method

Takes the documents returned by the aggregation pipeline and writes them to a specified collection. This must be the last stage in the pipeline.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/out/
public out ( string $collection ) : Out
$collection string
return Doctrine\MongoDB\Aggregation\Stage\Out
Example #1
0
 /**
  * Takes the documents returned by the aggregation pipeline and writes them
  * to a specified collection. This must be the last stage in the pipeline.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/out/
  *
  * @param string $collection
  * @return Stage\Out
  */
 public function out($collection)
 {
     return $this->builder->out($collection);
 }