Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. $query = $this->createQuery();
  2. $constraint = array();
  3. $constraint[] = $query->contains('fieldA', $valueA);
  4. $constraint[] = $query->contains('fieldB', $valueB);
  5.  
  6. How can I use this $contraint in a matching condition ????
  7. $query->matching($constraint) - does not work !
  8. $query->matching($query->logicalAnd($contraint)) - also does not work !
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement