From e9617f1e502266c8e94cafbec351f1537cc933f9 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Thu, 30 Sep 2010 22:09:49 +0200 Subject: [PATCH] DDC-798 - Clarify parameters for MEMBER OF expression --- manual/en/dql-doctrine-query-language.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manual/en/dql-doctrine-query-language.txt b/manual/en/dql-doctrine-query-language.txt index edaf0e02f..e92db7aef 100644 --- a/manual/en/dql-doctrine-query-language.txt +++ b/manual/en/dql-doctrine-query-language.txt @@ -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