1
0
mirror of synced 2024-12-14 15:16:04 +03:00

DDC-798 - Clarify parameters for MEMBER OF expression

This commit is contained in:
Benjamin Eberlei 2010-09-30 22:09:49 +02:00
parent 4f18aaaf6e
commit e9617f1e50

View File

@ -257,7 +257,8 @@ EXISTS in WHERE clause with correlated Subquery
Get all users who are members of $group.
[php]
$query = $em->createQuery('SELECT u.id FROM CmsUser u WHERE :param MEMBER OF u.groups');
$query = $em->createQuery('SELECT u.id FROM CmsUser u WHERE :groupId MEMBER OF u.groups');
$query->setParameter(':groupId', $group);
$ids = $query->getResult();
Get all users that have more than 1 phonenumber