1
0
mirror of synced 2024-12-15 15:46:02 +03:00

DDC-736 - Add note about order of the identfication variables during fetch joins requirements.

This commit is contained in:
Benjamin Eberlei 2010-11-10 23:43:24 +01:00
parent 54a61bbbc2
commit f2b20e5949

View File

@ -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.