dispatch the event after the snapshot was taken
This commit is contained in:
parent
5e28273548
commit
fa8000fa5c
@ -328,17 +328,17 @@ class UnitOfWork implements PropertyChangedListener
|
||||
$conn->rollback();
|
||||
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
|
||||
foreach ($this->visitedCollections as $coll) {
|
||||
$coll->takeSnapshot();
|
||||
}
|
||||
|
||||
// Raise postFlush
|
||||
if ($this->evm->hasListeners(Events::postFlush)) {
|
||||
$this->evm->dispatchEvent(Events::postFlush, new Event\PostFlushEventArgs($this->em));
|
||||
}
|
||||
|
||||
// Clear up
|
||||
$this->entityInsertions =
|
||||
$this->entityUpdates =
|
||||
|
Loading…
x
Reference in New Issue
Block a user