diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 609c191eb..2089d3565 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -2441,9 +2441,7 @@ class UnitOfWork implements PropertyChangedListener // TODO: if $coll is already scheduled for recreation ... what to do? // Just remove $coll from the scheduled recreations? - if (isset($this->collectionUpdates[$coid])) { - unset($this->collectionUpdates[$coid]); - } + unset($this->collectionUpdates[$coid]); $this->collectionDeletions[$coid] = $coll; }