#470 DDC-54 DDC-3005 - query iteration must cause eager hydrationComplete
logic to be fired
This commit is contained in:
parent
0ffc752f6f
commit
f571a9ef88
@ -525,6 +525,10 @@ class ObjectHydrator extends AbstractHydrator
|
||||
$resultKey = $index;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($this->_hints[Query::HINT_INTERNAL_ITERATION]) && $this->_hints[Query::HINT_INTERNAL_ITERATION]) {
|
||||
$this->_uow->hydrationComplete();
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! isset($resultKey) ) {
|
||||
|
@ -144,5 +144,9 @@ class SimpleObjectHydrator extends AbstractHydrator
|
||||
$entity = $uow->createEntity($entityName, $data, $this->_hints);
|
||||
|
||||
$result[] = $entity;
|
||||
|
||||
if (isset($this->_hints[Query::HINT_INTERNAL_ITERATION]) && $this->_hints[Query::HINT_INTERNAL_ITERATION]) {
|
||||
$this->_uow->hydrationComplete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user