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
|
@@ 663-665 (lines=3) @@
|
660 |
|
} |
661 |
|
|
662 |
|
// Fire PreFlush lifecycle callbacks |
663 |
|
if ( ! empty($class->lifecycleCallbacks[Events::preFlush])) { |
664 |
|
$class->invokeLifecycleCallbacks(Events::preFlush, $document, array(new Event\PreFlushEventArgs($this->dm))); |
665 |
|
} |
666 |
|
|
667 |
|
$this->computeOrRecomputeChangeSet($class, $document); |
668 |
|
} |