From d937d1fc82aa4d2a28e9a9baa5efa79e4516b33c Mon Sep 17 00:00:00 2001 From: Stefan Kleff Date: Tue, 12 Mar 2013 16:17:14 +0100 Subject: [PATCH] Fixed typo in hints. Caused slow loading of eager entities. --- lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php index c6bd8e847..570f27ea8 100644 --- a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php +++ b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php @@ -851,7 +851,7 @@ class BasicEntityPersister $stmt = $this->conn->executeQuery($query, $params, $types); $hydrator = $this->em->newHydrator(($this->selectJoinSql) ? Query::HYDRATE_OBJECT : Query::HYDRATE_SIMPLEOBJECT); - return $hydrator->hydrateAll($stmt, $this->rsm, array('deferEagerLoads' => true)); + return $hydrator->hydrateAll($stmt, $this->rsm, array('deferEagerLoad' => true)); } /** @@ -908,7 +908,7 @@ class BasicEntityPersister $hydrator = $this->em->newHydrator(($this->selectJoinSql) ? Query::HYDRATE_OBJECT : Query::HYDRATE_SIMPLEOBJECT); - return $hydrator->hydrateAll($stmt, $this->rsm, array('deferEagerLoads' => true)); + return $hydrator->hydrateAll($stmt, $this->rsm, array('deferEagerLoad' => true)); } /** @@ -939,7 +939,7 @@ class BasicEntityPersister private function loadArrayFromStatement($assoc, $stmt) { $rsm = $this->rsm; - $hints = array('deferEagerLoads' => true); + $hints = array('deferEagerLoad' => true); if (isset($assoc['indexBy'])) { $rsm = clone ($this->rsm); // this is necessary because the "default rsm" should be changed. @@ -962,8 +962,8 @@ class BasicEntityPersister { $rsm = $this->rsm; $hints = array( - 'deferEagerLoads' => true, - 'collection' => $coll + 'deferEagerLoad' => true, + 'collection' => $coll ); if (isset($assoc['indexBy'])) {