diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 349be6dcb..4f8ce32db 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -3124,7 +3124,7 @@ class UnitOfWork implements PropertyChangedListener */ public function clearEntityChangeSet($oid) { - $this->entityChangeSets[$oid] = []; + unset($this->entityChangeSets[$oid]); } /* PropertyChangedListener implementation */