From 4f18aaaf6e7dfd30995e0aefb615cc04d074371e Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Thu, 30 Sep 2010 22:05:39 +0200 Subject: [PATCH] DDC-797 - Fix dql example bug --- manual/en/dql-doctrine-query-language.txt | 2 +- manual/en/events.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/manual/en/dql-doctrine-query-language.txt b/manual/en/dql-doctrine-query-language.txt index 86533ac7c..edaf0e02f 100644 --- a/manual/en/dql-doctrine-query-language.txt +++ b/manual/en/dql-doctrine-query-language.txt @@ -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. diff --git a/manual/en/events.txt b/manual/en/events.txt index 47fbc1b20..3df59c619 100644 --- a/manual/en/events.txt +++ b/manual/en/events.txt @@ -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