Skip to content

Commit f8e55cc

Browse files
Etrimicurry684
authored andcommitted
Fix hydrationMode=Query::HYDRATE_ARRAY #36
1 parent b4db30c commit f8e55cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapter/Doctrine/ORMAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ protected function getResults(AdapterQuery $query): \Traversable
194194
}
195195

196196
foreach ($builder->getQuery()->iterate([], $this->hydrationMode) as $result) {
197-
yield $entity = $result[0];
197+
yield $entity = array_values($result)[0];
198198
if (Query::HYDRATE_OBJECT === $this->hydrationMode) {
199199
$this->manager->detach($entity);
200200
}

0 commit comments

Comments
 (0)