logicalNot with logicalAnd

$query = $this->createQuery();
       $query->matching(
               $query->logicalAnd(
                         $query->in('uid', $contrains),
               )
       );
 $query->execute();

With logicalNot:

$query = $this->createQuery();
       $query->matching(
               $query->logicalAnd(
                          $query->logicalNot(
                                   $query->in('uid', $contrains),
                          ) 
               )
       );
 $query->execute();

Be the first to comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.