Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. Restricting a JOIN clause by additional conditions:
  2. $query = $em->createQuery("SELECT u FROM CmsUser u LEFT JOIN u.articles a WITH a.topic LIKE :foo");
  3. $query->setParameter('foo', '%foo%');
  4. $users = $query->getResult();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement