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