From 4b98e3ea8e3b31febfcdfea178f45c4e062f155b Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Wed, 16 Mar 2011 00:03:43 +0100 Subject: [PATCH] DDC-952 - Remove unnecessary instance variable and comment on one feature. --- lib/Doctrine/ORM/UnitOfWork.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 3704be04e..b40c1c3b9 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -225,13 +225,6 @@ class UnitOfWork implements PropertyChangedListener */ private $eagerLoadingEntities = array(); - /** - * Map of Collections that should be eager loaded when requested. - * - * @var array - */ - private $eagerLoadingCollections = array(); - /** * Initializes a new UnitOfWork instance, bound to the given EntityManager. * @@ -1900,7 +1893,8 @@ class UnitOfWork implements PropertyChangedListener $class->reflFields[$field]->setValue($entity, $value); } } - + + // Loading the entity right here, if its in the eager loading map get rid of it there. unset($this->eagerLoadingEntities[$class->name][$idHash]); // Properly initialize any unfetched associations, if partial objects are not allowed.