[DDC-3033] Clarify restrictions in events.
This commit is contained in:
parent
396337bd0d
commit
ecc2857e2d
@ -518,10 +518,8 @@ The following restrictions apply to ``prePersist``:
|
|||||||
sequences the ID value will *NOT* be available within any
|
sequences the ID value will *NOT* be available within any
|
||||||
PrePersist events.
|
PrePersist events.
|
||||||
- Doctrine will not recognize changes made to relations in a prePersist
|
- Doctrine will not recognize changes made to relations in a prePersist
|
||||||
event called by "reachability" through a cascade persist unless you
|
event. This includes modifications to
|
||||||
use the internal ``UnitOfWork`` API. We do not recommend such
|
collections such as additions, removals or replacement.
|
||||||
operations in the persistence by reachability context, so do
|
|
||||||
this at your own risk and possibly supported by unit-tests.
|
|
||||||
|
|
||||||
preRemove
|
preRemove
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
|
Loading…
x
Reference in New Issue
Block a user