/** * Adds a "not" expression to the current query. * * You can create the expression using the expr() method: * * $qb = $this->createQueryBuilder('User'); * $qb->field('id')->not($qb->expr()->in(1)); * * @param array|QueryBuilder $expression * @return QueryProxy this instance */ public function not($expression) { $this->queryChanged = true; parent::not($expression); }