public function execute($options = []) { return $this->collection->aggregate($this->getPipeline(), $options); }
/** * {@inheritdoc} */ public function execute($options = []) { // Force cursor to be used $options = array_merge($options, ['cursor' => true]); $cursor = parent::execute($options); return $this->prepareCursor($cursor); }