Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

More explanation about move events

  • Loading branch information...
commit 5299dfb7f794c175df9d5989b6a0bdabd4094020 1 parent 3314a0b
Pierre-Louis LAUNAY authored February 22, 2013

Showing 1 changed file with 15 additions and 0 deletions. Show diff stats Hide diff stats

  1. 15  en/reference/events.rst
15  en/reference/events.rst
Source Rendered
@@ -146,3 +146,18 @@ Listening to Lifecycle Events
146 146
 -----------------------------
147 147
 
148 148
 This works exactly the same as with the `ORM events <http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html>`_.
  149
+
  150
+Move events
  151
+-----------
  152
+
  153
+When I move a document, the document is not be modified, except the ID.
  154
+The preFlush and onFlush events may modify the document before moving the document.
  155
+
  156
+When $dm->flush is calling after $dm->move(), the order of events is:
  157
+
  158
+1. preFlush
  159
+2. onFlush
  160
+3. preMove
  161
+4. postMove
  162
+5. postFlush
  163
+

0 notes on commit 5299dfb

Please sign in to comment.
Something went wrong with that request. Please try again.