Skip to content

Commit

Permalink
Merge branch 'DDC-2578' into 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Aug 10, 2013
2 parents ec36e2c + efe4208 commit c095b88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/AbstractQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ public function execute($parameters = null, $hydrationMode = null)
return $stmt;
}

$data = $this->_em->getHydrator($this->_hydrationMode)->hydrateAll(
$data = $this->_em->newHydrator($this->_hydrationMode)->hydrateAll(
$stmt, $this->_resultSetMapping, $this->_hints
);

Expand Down
15 changes: 3 additions & 12 deletions lib/Doctrine/ORM/EntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,6 @@
*/
private $eventManager;

/**
* The maintained (cached) hydrators. One instance per type.
*
* @var array
*/
private $hydrators = array();

/**
* The proxy factory used to create dynamic proxies.
*
Expand Down Expand Up @@ -840,17 +833,15 @@ public function getUnitOfWork()
* This method caches the hydrator instances which is used for all queries that don't
* selectively iterate over the result.
*
* @deprecated
*
* @param int $hydrationMode
*
* @return \Doctrine\ORM\Internal\Hydration\AbstractHydrator
*/
public function getHydrator($hydrationMode)
{
if ( ! isset($this->hydrators[$hydrationMode])) {
$this->hydrators[$hydrationMode] = $this->newHydrator($hydrationMode);
}

return $this->hydrators[$hydrationMode];
return $this->newHydrator($hydrationMode);
}

/**
Expand Down

0 comments on commit c095b88

Please sign in to comment.