1
0
mirror of synced 2025-02-21 22:53:15 +03:00

DDC-797 - Fix dql example bug

This commit is contained in:
Benjamin Eberlei 2010-09-30 22:05:39 +02:00
parent d2efb5bbc8
commit 4f18aaaf6e
2 changed files with 5 additions and 1 deletions

View File

@ -251,7 +251,7 @@ CONCAT() DQL Function:
EXISTS in WHERE clause with correlated Subquery EXISTS in WHERE clause with correlated Subquery
[php] [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(); $ids = $query->getResult();
Get all users who are members of $group. Get all users who are members of $group.

View File

@ -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 are not relevant to the persistence in the database, but you can use this events
to to
+++ postLoad
This event is called after an entity is constructed by the EntityManager.
++ Load ClassMetadata Event ++ Load ClassMetadata Event
When the mapping information for an entity is read, it is populated in to a When the mapping information for an entity is read, it is populated in to a