Merge pull request #1065 from egeloen/DDC-3179
[DDC-3179] EntityNotFoundException on the postRemove event if the entity is a proxy
This commit is contained in:
commit
9e36a95a97
@ -191,6 +191,12 @@ the life-time of their registered entities.
|
|||||||
safe to access associations in a postLoad callback or event
|
safe to access associations in a postLoad callback or event
|
||||||
handler.
|
handler.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
Note that the postRemove event or any events triggered after an entity removal
|
||||||
|
can receive an uninitializable proxy in case you have configured an entity to
|
||||||
|
cascade remove relations. In this case, you should load yourself the proxy in
|
||||||
|
the associated pre event.
|
||||||
|
|
||||||
You can access the Event constants from the ``Events`` class in the
|
You can access the Event constants from the ``Events`` class in the
|
||||||
ORM package.
|
ORM package.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user