lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php 1 location
|
@@ 471-473 (lines=3) @@
|
468 |
|
} |
469 |
|
|
470 |
|
// Invoke the postLoad lifecycle callbacks and listeners |
471 |
|
if ( ! empty($metadata->lifecycleCallbacks[Events::postLoad])) { |
472 |
|
$metadata->invokeLifecycleCallbacks(Events::postLoad, $document, array(new LifecycleEventArgs($document, $this->dm))); |
473 |
|
} |
474 |
|
if ($this->evm->hasListeners(Events::postLoad)) { |
475 |
|
$this->evm->dispatchEvent(Events::postLoad, new LifecycleEventArgs($document, $this->dm)); |
476 |
|
} |
lib/Doctrine/ODM/MongoDB/UnitOfWork.php 1 location
|
@@ 685-687 (lines=3) @@
|
682 |
|
} |
683 |
|
|
684 |
|
// Fire PreFlush lifecycle callbacks |
685 |
|
if ( ! empty($class->lifecycleCallbacks[Events::preFlush])) { |
686 |
|
$class->invokeLifecycleCallbacks(Events::preFlush, $document, array(new Event\PreFlushEventArgs($this->dm))); |
687 |
|
} |
688 |
|
|
689 |
|
$this->computeOrRecomputeChangeSet($class, $document); |
690 |
|
} |