#470 DDC-54 DDC-3005 - documenting postLoad
and Doctrine\ORM\AbstractQuery#iterate()
partial incompatibility
This commit is contained in:
parent
f571a9ef88
commit
b81209c278
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue