Fixed typo in hints. Caused slow loading of eager entities.
This commit is contained in:
parent
905c0b9d91
commit
d937d1fc82
@ -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'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user