1
0
mirror of synced 2024-12-13 14:56:01 +03:00

Fixed typo in hints. Caused slow loading of eager entities.

This commit is contained in:
Stefan Kleff 2013-03-12 16:17:14 +01:00
parent 905c0b9d91
commit d937d1fc82

View File

@ -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'])) {