Permalink
Browse files

More explanation about move events

  • Loading branch information...
1 parent 3314a0b commit 5299dfb7f794c175df9d5989b6a0bdabd4094020 Pierre-Louis LAUNAY committed Feb 22, 2013
Showing with 15 additions and 0 deletions.
  1. +15 −0 en/reference/events.rst
View
@@ -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.