1
0
mirror of synced 2025-01-30 03:51:43 +03:00

DDC-952 - Remove unnecessary instance variable and comment on one feature.

This commit is contained in:
Benjamin Eberlei 2011-03-16 00:03:43 +01:00
parent b7e522d7a7
commit 4b98e3ea8e

View File

@ -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.