1
0
mirror of synced 2025-01-31 12:32:59 +03:00

#470 DDC-54 DDC-3005 - query iteration must cause eager hydrationComplete logic to be fired

This commit is contained in:
Marco Pivetta 2015-01-13 01:42:38 +01:00
parent 0ffc752f6f
commit f571a9ef88
2 changed files with 8 additions and 0 deletions

View File

@ -525,6 +525,10 @@ class ObjectHydrator extends AbstractHydrator
$resultKey = $index; $resultKey = $index;
} }
} }
if (isset($this->_hints[Query::HINT_INTERNAL_ITERATION]) && $this->_hints[Query::HINT_INTERNAL_ITERATION]) {
$this->_uow->hydrationComplete();
}
} }
if ( ! isset($resultKey) ) { if ( ! isset($resultKey) ) {

View File

@ -144,5 +144,9 @@ class SimpleObjectHydrator extends AbstractHydrator
$entity = $uow->createEntity($entityName, $data, $this->_hints); $entity = $uow->createEntity($entityName, $data, $this->_hints);
$result[] = $entity; $result[] = $entity;
if (isset($this->_hints[Query::HINT_INTERNAL_ITERATION]) && $this->_hints[Query::HINT_INTERNAL_ITERATION]) {
$this->_uow->hydrationComplete();
}
} }
} }