Skip to content

Commit

Permalink
DDC-2953 - identifier groups should be reset at each hydrator prepara…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
Ocramius committed Feb 9, 2014
1 parent c14c7ad commit e2ca13b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php
Expand Up @@ -77,11 +77,12 @@ class ArrayHydrator extends AbstractHydrator
*/
protected function prepare()
{
$this->_isSimpleQuery = count($this->_rsm->aliasMap) <= 1;
$this->_identifierMap = array();
$this->_resultPointers = array();
$this->_idTemplate = array();
$this->_resultCounter = 0;
$this->_isSimpleQuery = count($this->_rsm->aliasMap) <= 1;
$this->_identifierMap = array();
$this->_identifiersGroups = array();
$this->_resultPointers = array();
$this->_idTemplate = array();
$this->_resultCounter = 0;

foreach ($this->_rsm->aliasMap as $dqlAlias => $className) {
$this->_resultPointers[$dqlAlias] = array();
Expand Down

0 comments on commit e2ca13b

Please sign in to comment.