dispatch the event after the snapshot was taken
This commit is contained in:
parent
5e28273548
commit
fa8000fa5c
@ -329,16 +329,16 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Raise postFlush
|
|
||||||
if ($this->evm->hasListeners(Events::postFlush)) {
|
|
||||||
$this->evm->dispatchEvent(Events::postFlush, new Event\PostFlushEventArgs($this->em));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take new snapshots from visited collections
|
// Take new snapshots from visited collections
|
||||||
foreach ($this->visitedCollections as $coll) {
|
foreach ($this->visitedCollections as $coll) {
|
||||||
$coll->takeSnapshot();
|
$coll->takeSnapshot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Raise postFlush
|
||||||
|
if ($this->evm->hasListeners(Events::postFlush)) {
|
||||||
|
$this->evm->dispatchEvent(Events::postFlush, new Event\PostFlushEventArgs($this->em));
|
||||||
|
}
|
||||||
|
|
||||||
// Clear up
|
// Clear up
|
||||||
$this->entityInsertions =
|
$this->entityInsertions =
|
||||||
$this->entityUpdates =
|
$this->entityUpdates =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user