DDC-797 - Fix dql example bug
This commit is contained in:
parent
d2efb5bbc8
commit
4f18aaaf6e
2 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue