コード例 #1
0
 /**
  * After the persist event has ended, unmark the document from being hydrated so that
  * it will be re-hydrated on the next request.
  *
  * TODO: There might be better ways to ensure that the document state is updated.
  *
  * @param PersistEvent $event
  */
 public function handleEndPersist(PersistEvent $event)
 {
     $this->documentRegistry->unmarkDocumentAsHydrated($event->getDocument());
 }