Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function not($restriction)
 {
     return $this->expr->not($restriction);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function notBetween($value, $x, $y)
 {
     return $this->expr->not($this->between($value, $x, $y));
 }
Ejemplo n.º 3
0
 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));
 }