title: Is the Doctrine2 "MEMBER OF" clause valid for a MySQL database?
body: <p>The Doctrine2 DQL allows for the following <a href="http://docs.doctrine-project.org/projects/doctrine-orm/en/2.0.x/reference/dql-doctrine-query-language.html" rel="nofollow">SQL</a>:</p>
  
  <pre><code>$query = $em-&gt;createQuery('SELECT u.id FROM CmsUser u WHERE :groupId MEMBER OF u.groups');
  $query-&gt;setParameter('groupId', $group);
  $ids = $query-&gt;getResult();
  </code></pre>
  
  <p>Is the <strong>MEMBER OF</strong> clause supported by a MySQL database?</p>
  
  <p>Moreover, focusing on the previous example, is $group the id of the entity "Group" or is an instance of the "Group" entity itself?</p>