DDC-797 - Fix dql example bug
This commit is contained in:
parent
d2efb5bbc8
commit
4f18aaaf6e
@ -251,7 +251,7 @@ CONCAT() DQL Function:
|
||||
EXISTS in WHERE clause with correlated Subquery
|
||||
|
||||
[php]
|
||||
$query = $em->createQuery('SELECT u.id FROM CmsUser u WHERE EXISTS (SELECT p.phonenumber FROM CmsPhonenumber p WHERE p.phonenumber = u.id)');
|
||||
$query = $em->createQuery('SELECT u.id FROM CmsUser u WHERE EXISTS (SELECT p.phonenumber FROM CmsPhonenumber p WHERE p.user = u.id)');
|
||||
$ids = $query->getResult();
|
||||
|
||||
Get all users who are members of $group.
|
||||
|
@ -436,6 +436,10 @@ The three post events are called inside `EntityManager#flush()`. Changes in here
|
||||
are not relevant to the persistence in the database, but you can use this events
|
||||
to
|
||||
|
||||
+++ postLoad
|
||||
|
||||
This event is called after an entity is constructed by the EntityManager.
|
||||
|
||||
++ Load ClassMetadata Event
|
||||
|
||||
When the mapping information for an entity is read, it is populated in to a
|
||||
|
Loading…
x
Reference in New Issue
Block a user