1
0
mirror of synced 2025-01-19 23:11:41 +03:00

[DDC-3033] Clarify restrictions in events.

This commit is contained in:
Benjamin Eberlei 2014-03-23 12:37:56 +01:00
parent 396337bd0d
commit ecc2857e2d

View File

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