/** * {@inheritdoc} */ public function not($restriction) { return $this->expr->not($restriction); }
/** * {@inheritdoc} */ public function notBetween($value, $x, $y) { return $this->expr->not($this->between($value, $x, $y)); }
public function testNotExpr() { $qb = $this->_em->createQueryBuilder(); $qb->select('u')->from('User', 'u')->where('u.name = ?1'); $this->assertEquals('NOT(SELECT u FROM User u WHERE u.name = ?1)', (string) $this->_expr->not($qb)); }