Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit d937d1fc82aa4d2a28e9a9baa5efa79e4516b33c 1 parent 905c0b9
@stefankleff authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/Doctrine/ORM/Persisters/BasicEntityPersister.php
View
10 lib/Doctrine/ORM/Persisters/BasicEntityPersister.php
@@ -851,7 +851,7 @@ public function loadCriteria(Criteria $criteria)
$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 @@ public function loadAll(array $criteria = array(), array $orderBy = null, $limit
$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 @@ public function getManyToManyCollection(array $assoc, $sourceEntity, $offset = n
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 @@ private function loadCollectionFromStatement($assoc, $stmt, $coll)
{
$rsm = $this->rsm;
$hints = array(
- 'deferEagerLoads' => true,
- 'collection' => $coll
+ 'deferEagerLoad' => true,
+ 'collection' => $coll
);
if (isset($assoc['indexBy'])) {
Please sign in to comment.
Something went wrong with that request. Please try again.