lib/Doctrine/MongoDB/Query/Builder.php
public function mapReduceOptions(array $options)
    {
        if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) {
            throw new BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)');
        }

        $this->query['mapReduce']['options'] = $options;
        return $this;
    }
public function mapReduceOptions(array $options)
    {
        if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) {
            throw new BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)');
        }

        $this->query['mapReduce']['options'] = $options;
        return $this;
    }
public function mapReduceOptions ( array $ options ) { if ( $ this -> query [ 'type' ] !== Query :: TYPE_MAP_REDUCE ) { throw new BadMethodCallException ( 'This method requires a mapReduce command (call map() or mapReduce() first)' ) ; } $ this -> query [ 'mapReduce' ] [ 'options' ] = $ options ; return $ this ; }
Set additional options for a mapReduce command.

@param array $options
@return $this
@throws BadMethodCallException if the query is not a mapReduce command
Set additional options for a mapReduce command .