Is the Doctrine2 "MEMBER OF" clause valid for a MySQL database?
Doctrine2 DQL allows you to use SQL :
$query = $em->createQuery('SELECT u.id FROM CmsUser u WHERE :groupId MEMBER OF u.groups');
$query->setParameter('groupId', $group);
$ids = $query->getResult();
Is the MEMBER offer supported by the MySQL database?
Also, with emphasis on the previous example, is this the $ group identifier for the Group object or an instance of the Group object itself?
+5
2 answers