lib/Doctrine/MongoDB/Aggregation/Stage/Project.php
public function excludeIdField($exclude = true)
    {
        @trigger_error(__METHOD__ . ' has been deprecated in favor of excludeFields.', E_USER_DEPRECATED);

        return $this->field('_id')->expression( ! $exclude);
    }
public function excludeIdField($exclude = true)
    {
        @trigger_error(__METHOD__ . ' has been deprecated in favor of excludeFields.', E_USER_DEPRECATED);

        return $this->field('_id')->expression( ! $exclude);
    }
public function excludeIdField ( $ exclude = true ) { @ trigger_error ( __METHOD__ . ' has been deprecated in favor of excludeFields.' , E_USER_DEPRECATED ) ; return $ this -> field ( '_id' ) -> expression ( ! $ exclude ) ; }
Shorthand method to exclude the _id field.

@deprecated Deprecated in 1.5, please use {@link excludeFields()}.
@param bool $exclude
@return $this
Shorthand method to exclude the _id field .