From 6bf6bae219041b2686d9b9cfd5d704d53f1bb14d Mon Sep 17 00:00:00 2001 From: ReenExe Date: Sat, 2 Jul 2016 22:51:44 +0300 Subject: [PATCH] clear code --- lib/Doctrine/ORM/UnitOfWork.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }