AbstractHydrator.php
9 months ago
ArrayHydrator.php
9 months ago
HydrationException.php
9 months ago
IterableResult.php
9 months ago
ObjectHydrator.php
9 months ago
ScalarColumnHydrator.php
9 months ago
ScalarHydrator.php
9 months ago
SimpleObjectHydrator.php
9 months ago
SingleScalarHydrator.php
9 months ago
index.php
9 months ago
ScalarHydrator.php
20 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\ORM\Internal\Hydration; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | class ScalarHydrator extends AbstractHydrator |
| 6 | { |
| 7 | protected function hydrateAllData() |
| 8 | { |
| 9 | $result = []; |
| 10 | while ($data = $this->statement()->fetchAssociative()) { |
| 11 | $this->hydrateRowData($data, $result); |
| 12 | } |
| 13 | return $result; |
| 14 | } |
| 15 | protected function hydrateRowData(array $row, array &$result) |
| 16 | { |
| 17 | $result[] = $this->gatherScalarRowData($row); |
| 18 | } |
| 19 | } |
| 20 |