Skip to content

Commit

Permalink
DDC-952 - Remove unnecessary instance variable and comment on one fea…
Browse files Browse the repository at this point in the history
…ture.
  • Loading branch information
beberlei committed Mar 15, 2011
1 parent b7e522d commit 4b98e3e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/Doctrine/ORM/UnitOfWork.php
Expand Up @@ -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.
*
Expand Down Expand Up @@ -1900,7 +1893,8 @@ public function createEntity($className, array $data, &$hints = array())
$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.
Expand Down

0 comments on commit 4b98e3e

Please sign in to comment.