lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php 1 location
|
@@ 459-461 (lines=3) @@
|
456 |
|
} |
457 |
|
|
458 |
|
// Invoke the postLoad lifecycle callbacks and listeners |
459 |
|
if ( ! empty($metadata->lifecycleCallbacks[Events::postLoad])) { |
460 |
|
$metadata->invokeLifecycleCallbacks(Events::postLoad, $document, array(new LifecycleEventArgs($document, $this->dm))); |
461 |
|
} |
462 |
|
if ($this->evm->hasListeners(Events::postLoad)) { |
463 |
|
$this->evm->dispatchEvent(Events::postLoad, new LifecycleEventArgs($document, $this->dm)); |
464 |
|
} |
lib/Doctrine/ODM/MongoDB/UnitOfWork.php 1 location
|
@@ 660-662 (lines=3) @@
|
657 |
|
} |
658 |
|
|
659 |
|
// Fire PreFlush lifecycle callbacks |
660 |
|
if ( ! empty($class->lifecycleCallbacks[Events::preFlush])) { |
661 |
|
$class->invokeLifecycleCallbacks(Events::preFlush, $document, array(new Event\PreFlushEventArgs($this->dm))); |
662 |
|
} |
663 |
|
|
664 |
|
$this->computeOrRecomputeChangeSet($class, $document); |
665 |
|
} |