lib/Doctrine/ODM/MongoDB/UnitOfWork.php 1 location
|
@@ 604-606 (lines=3) @@
|
601 |
|
} |
602 |
|
|
603 |
|
// Fire PreFlush lifecycle callbacks |
604 |
|
if ( ! empty($class->lifecycleCallbacks[Events::preFlush])) { |
605 |
|
$class->invokeLifecycleCallbacks(Events::preFlush, $document, array(new Event\PreFlushEventArgs($this->dm))); |
606 |
|
} |
607 |
|
|
608 |
|
$this->computeOrRecomputeChangeSet($class, $document); |
609 |
|
} |
lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php 1 location
|
@@ 453-455 (lines=3) @@
|
450 |
|
} |
451 |
|
|
452 |
|
// Invoke the postLoad lifecycle callbacks and listeners |
453 |
|
if ( ! empty($metadata->lifecycleCallbacks[Events::postLoad])) { |
454 |
|
$metadata->invokeLifecycleCallbacks(Events::postLoad, $document, array(new LifecycleEventArgs($document, $this->dm))); |
455 |
|
} |
456 |
|
if ($this->evm->hasListeners(Events::postLoad)) { |
457 |
|
$this->evm->dispatchEvent(Events::postLoad, new LifecycleEventArgs($document, $this->dm)); |
458 |
|
} |