Merge pull request #962 from netiul/master
Stop executeDeletions when there is nothing to to delete anymore
This commit is contained in:
commit
a03c8da683
@ -373,7 +373,7 @@ class UnitOfWork implements PropertyChangedListener
|
||||
|
||||
// Entity deletions come last and need to be in reverse commit order
|
||||
if ($this->entityDeletions) {
|
||||
for ($count = count($commitOrder), $i = $count - 1; $i >= 0; --$i) {
|
||||
for ($count = count($commitOrder), $i = $count - 1; $i >= 0 && $this->entityDeletions; --$i) {
|
||||
$this->executeDeletions($commitOrder[$i]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user