diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index bd075b95b..c5f7837e8 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -982,7 +982,7 @@ class UnitOfWork implements PropertyChangedListener ); } - if ($this->entityChangeSets[$oid]) { + if (!empty($this->entityChangeSets[$oid])) { $persister->update($entity); }