DDC-798: Clarify param term in MEMBER OF example in DQL docs #5313

Closed
doctrinebot opened this Issue Sep 10, 2010 · 4 comments

2 participants

@doctrinebot

Jira issue originally created by user mjh_ca:

Current code example reads:

$query = $em->createQuery('SELECT u.id FROM CmsUser u WHERE :param MEMBER OF u.groups');
$ids = $query->getResult();

Maybe it's just me, but it was not immediately apparent that :param* is expected to be an identifier value from the CmsGroups entity (group ID number). It may improve the example to rename :param to *:groupId or add $query->setParameter(':param', $groupId);

@doctrinebot

Comment created by romanb:

Its supposed to be an object, not an id, although an id might work too, I dont know.

@doctrinebot

Comment created by mjh_ca:

Ok. Well, a clarification of whatever is permitted there would improve the docs. An id does seem to work.

@doctrinebot

Comment created by @beberlei:

Fixed

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0-RC1 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment