diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 349be6dcb44..4f8ce32db21 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -3124,7 +3124,7 @@ public function registerManaged($entity, array $id, array $data) */ public function clearEntityChangeSet($oid) { - $this->entityChangeSets[$oid] = []; + unset($this->entityChangeSets[$oid]); } /* PropertyChangedListener implementation */