1
0
mirror of synced 2025-02-20 14:13:15 +03:00

dispatch the event after the snapshot was taken

This commit is contained in:
Daniel Freudenberger 2011-10-23 01:27:09 +02:00
parent 5e28273548
commit fa8000fa5c

View File

@ -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 =