lib/Doctrine/MongoDB/Query/Builder.php
public function out($out)
    {
        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']['out'] = $out;
        return $this;
    }
public function out($out)
    {
        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']['out'] = $out;
        return $this;
    }
public function out ( $ out ) { 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' ] [ 'out' ] = $ out ; return $ this ; }
Set the "out" option for a mapReduce command.

@param array|string $out
@return $this
@throws BadMethodCallException if the query is not a mapReduce command
Set the out option for a mapReduce command .