Doctrine\ODM\MongoDB\Aggregation\Builder::execute PHP Method

execute() public method

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