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