1
0
mirror of synced 2025-02-09 00:39:25 +03:00

Note on Entity listeners

As requested here https://github.com/doctrine/doctrine2/issues/6247#issuecomment-274123780 I thought it should be interesting to note that.
The note could be longer, like "You should avoid to have multiple methods for the same event (e.g. multiple @PrePersist) since the execution order is not guaranteed".
This commit is contained in:
John 2017-01-23 09:35:26 +01:00 committed by GitHub
parent 119aa4e46c
commit 57f560401b

View File

@ -888,6 +888,9 @@ you need to map the listener method using the event type mapping:
preRemove: [preRemoveHandler]
# ....
.. note::
The order of execution of multiple methods for the same event (e.g. multiple @PrePersist) is not guaranteed.
Entity listeners resolver