lib/Doctrine/ODM/MongoDB/UnitOfWork.php 1 location
|
@@ 672-674 (lines=3) @@
|
| 669 |
|
} |
| 670 |
|
|
| 671 |
|
// Fire PreFlush lifecycle callbacks |
| 672 |
|
if ( ! empty($class->lifecycleCallbacks[Events::preFlush])) { |
| 673 |
|
$class->invokeLifecycleCallbacks(Events::preFlush, $document, array(new Event\PreFlushEventArgs($this->dm))); |
| 674 |
|
} |
| 675 |
|
|
| 676 |
|
$this->computeOrRecomputeChangeSet($class, $document); |
| 677 |
|
} |
lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php 1 location
|
@@ 476-478 (lines=3) @@
|
| 473 |
|
} |
| 474 |
|
|
| 475 |
|
// Invoke the postLoad lifecycle callbacks and listeners |
| 476 |
|
if ( ! empty($metadata->lifecycleCallbacks[Events::postLoad])) { |
| 477 |
|
$metadata->invokeLifecycleCallbacks(Events::postLoad, $document, array(new LifecycleEventArgs($document, $this->dm))); |
| 478 |
|
} |
| 479 |
|
if ($this->evm->hasListeners(Events::postLoad)) { |
| 480 |
|
$this->evm->dispatchEvent(Events::postLoad, new LifecycleEventArgs($document, $this->dm)); |
| 481 |
|
} |