diff --git a/lib/Doctrine/Query/Abstract.php b/lib/Doctrine/Query/Abstract.php index 8a65dbe4b..06ce35de2 100644 --- a/lib/Doctrine/Query/Abstract.php +++ b/lib/Doctrine/Query/Abstract.php @@ -104,6 +104,20 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate return $this->parseQueryPart('where', $where, true); } + /** + * whereNotIn + * adds NOT IN condition to the query WHERE part + * + * @param string $expr the operand of the NOT IN + * @param mixed $params an array of parameters or a simple scalar + * @return Doctrine_Query + */ + + public function whereNotIn($expr, $params = array()) + { + return $this->whereIn($expr, $params, true); + } + /** * addGroupBy * adds fields to the GROUP BY part of the query