1
0
mirror of synced 2025-03-22 07:53:49 +03:00

Noted prePersist event only triggers on first persist

While probably obvious to a core doctrine developer, a user of doctrine would not necessarily know this without doing some digging
This commit is contained in:
Evan Kaufman 2013-02-07 12:59:14 -06:00
parent f0674ea034
commit e2ac064914

View File

@ -148,7 +148,8 @@ the life-time of their registered entities.
delete operations. It is not called for a DQL DELETE statement.
- prePersist - The prePersist event occurs for a given entity
before the respective EntityManager persist operation for that
entity is executed.
entity is executed. It should be noted that this event is only triggered on
*initial* persist of an entity
- postPersist - The postPersist event occurs for an entity after
the entity has been made persistent. It will be invoked after the
database insert operations. Generated primary key values are