Skip to content

Commit c1f7a60

Browse files
authored
perf: Optimizing ScalarColumnHydrator::hydrateAllData (#12095)
1 parent e3c320c commit c1f7a60

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Internal/Hydration/ScalarColumnHydrator.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Doctrine\DBAL\Driver\Exception;
88
use Doctrine\ORM\Exception\MultipleSelectorsFoundException;
99

10-
use function array_column;
1110
use function count;
1211

1312
/**
@@ -27,8 +26,6 @@ protected function hydrateAllData(): array
2726
throw MultipleSelectorsFoundException::create($this->resultSetMapping()->fieldMappings);
2827
}
2928

30-
$result = $this->statement()->fetchAllNumeric();
31-
32-
return array_column($result, 0);
29+
return $this->statement()->fetchFirstColumn();
3330
}
3431
}

0 commit comments

Comments
 (0)