lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php 1 location
|
@@ 467-469 (lines=3) @@
|
464 |
|
} |
465 |
|
|
466 |
|
// Invoke the postLoad lifecycle callbacks and listeners |
467 |
|
if ( ! empty($metadata->lifecycleCallbacks[Events::postLoad])) { |
468 |
|
$metadata->invokeLifecycleCallbacks(Events::postLoad, $document, array(new LifecycleEventArgs($document, $this->dm))); |
469 |
|
} |
470 |
|
if ($this->evm->hasListeners(Events::postLoad)) { |
471 |
|
$this->evm->dispatchEvent(Events::postLoad, new LifecycleEventArgs($document, $this->dm)); |
472 |
|
} |
lib/Doctrine/ODM/MongoDB/UnitOfWork.php 1 location
|
@@ 669-671 (lines=3) @@
|
666 |
|
} |
667 |
|
|
668 |
|
// Fire PreFlush lifecycle callbacks |
669 |
|
if ( ! empty($class->lifecycleCallbacks[Events::preFlush])) { |
670 |
|
$class->invokeLifecycleCallbacks(Events::preFlush, $document, array(new Event\PreFlushEventArgs($this->dm))); |
671 |
|
} |
672 |
|
|
673 |
|
$this->computeOrRecomputeChangeSet($class, $document); |
674 |
|
} |