1
0
Fork 0
mirror of synced 2025-04-03 05:13:37 +03:00

#470 DDC-54 DDC-3005 - documenting postLoad and Doctrine\ORM\AbstractQuery#iterate() partial incompatibility

This commit is contained in:
Marco Pivetta 2015-01-13 01:43:12 +01:00
parent f571a9ef88
commit b81209c278

View file

@ -184,6 +184,14 @@ the life-time of their registered entities.
invoked, after all references to entities have been removed from the unit of invoked, after all references to entities have been removed from the unit of
work. This event is not a lifecycle callback. work. This event is not a lifecycle callback.
.. warning::
Note that, when using ``Doctrine\ORM\AbstractQuery#iterate()``, ``postLoad``
events will be executed immediately after objects are being hydrated, and therefore
associations are not guaranteed to be initialized. It is not safe to combine
usage of ``Doctrine\ORM\AbstractQuery#iterate()`` and ``postLoad`` event
handlers.
.. warning:: .. warning::
Note that the postRemove event or any events triggered after an entity removal Note that the postRemove event or any events triggered after an entity removal