From 53c9ffda302af24e137607b244591b79419e6116 Mon Sep 17 00:00:00 2001 From: Sander Marechal Date: Thu, 20 Jun 2013 10:20:16 +0200 Subject: [PATCH] Get rid of variable --- lib/Doctrine/ORM/PersistentCollection.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/PersistentCollection.php b/lib/Doctrine/ORM/PersistentCollection.php index d5a922aaf..dd5a90d18 100644 --- a/lib/Doctrine/ORM/PersistentCollection.php +++ b/lib/Doctrine/ORM/PersistentCollection.php @@ -521,8 +521,7 @@ final class PersistentCollection implements Collection, Selectable && $this->association['fetch'] === Mapping\ClassMetadataInfo::FETCH_EXTRA_LAZY && isset($this->association['indexBy']) ) { - $persister = $this->em->getUnitOfWork()->getCollectionPersister($this->association); - return $persister->get($this, $key); + return $this->em->getUnitOfWork()->getCollectionPersister($this->association)->get($this, $key); } $this->initialize();