From f2b20e594922d219f2eb51853e3d0e7b0a712caa Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Wed, 10 Nov 2010 23:43:24 +0100 Subject: [PATCH] DDC-736 - Add note about order of the identfication variables during fetch joins requirements. --- manual/en/dql-doctrine-query-language.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manual/en/dql-doctrine-query-language.txt b/manual/en/dql-doctrine-query-language.txt index 5c6e696e5..1af13b469 100644 --- a/manual/en/dql-doctrine-query-language.txt +++ b/manual/en/dql-doctrine-query-language.txt @@ -84,6 +84,9 @@ root level of the result array. In the previous example an array of User instanc and the address of each user is fetched and hydrated into the `User#address` variable. If you access the address Doctrine does not need to lazy load the association with another query. +You have to make sure that the order of the fetch join aliases matches the order in which +the entities are defined in the FROM and JOIN clauses. Otherwise the hydration algorithm will go bust. + > **NOTE** > Doctrine allows you to walk all the associations between all the objects in your domain model. > Objects that were not already loaded from the database are replaced with lazy load proxy instances.