Skip to content
This repository has been archived by the owner on Apr 7, 2018. It is now read-only.

Commit

Permalink
More explanation about move events
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Louis LAUNAY committed Feb 22, 2013
1 parent 3314a0b commit 5299dfb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions en/reference/events.rst
Expand Up @@ -146,3 +146,18 @@ Listening to Lifecycle Events
-----------------------------

This works exactly the same as with the `ORM events <http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html>`_.

Move events
-----------

When I move a document, the document is not be modified, except the ID.
The preFlush and onFlush events may modify the document before moving the document.

When $dm->flush is calling after $dm->move(), the order of events is:

1. preFlush
2. onFlush
3. preMove
4. postMove
5. postFlush

0 comments on commit 5299dfb

Please sign in to comment.