execute() 공개 메소드

Executes the aggregation pipeline
public execute ( array $options = [] ) : Doctrine\MongoDB\Iterator
$options array
리턴 Doctrine\MongoDB\Iterator
예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function execute($options = [])
 {
     // Force cursor to be used
     $options = array_merge($options, ['cursor' => true]);
     $cursor = parent::execute($options);
     return $this->prepareCursor($cursor);
 }
예제 #2
0
파일: Stage.php 프로젝트: alcaeus/mongodb
 /**
  * Executes the aggregation pipeline
  *
  * @param array $options
  * @return Iterator
  */
 public function execute($options = [])
 {
     return $this->builder->execute($options);
 }