Skip to content

Commit d973fa1

Browse files
authored
Merge pull request #9076 from derrabus/remove/hydrate-row
2 parents f478fee + 4fa65f3 commit d973fa1

File tree

3 files changed

+8
-37
lines changed

3 files changed

+8
-37
lines changed

UPGRADE.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,14 @@ Using the `UUID` strategy for generating identifiers is not supported anymore.
3131

3232
## BC BREAK: Removed `Query::iterate()`
3333

34-
The deprecated methods `Query::iterate()` and `AbstractHydrator::iterate()`
35-
have been removed along with the `IterableResult` class. Use `toIterable()`
36-
instead.
34+
The deprecated method `Query::iterate()` has been removed along with the
35+
following classes and methods:
36+
37+
- `AbstractHydrator::iterate()`
38+
- `AbstractHydrator::hydrateRow()`
39+
- `IterableResult`
40+
41+
Use `toIterable()` instead.
3742

3843
# Upgrade to 2.11
3944

lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Doctrine\DBAL\Platforms\AbstractPlatform;
88
use Doctrine\DBAL\Result;
99
use Doctrine\DBAL\Types\Type;
10-
use Doctrine\Deprecations\Deprecation;
1110
use Doctrine\ORM\EntityManagerInterface;
1211
use Doctrine\ORM\Events;
1312
use Doctrine\ORM\Mapping\ClassMetadata;
@@ -183,38 +182,6 @@ public function hydrateAll(Result $stmt, object $resultSetMapping, array $hints
183182
return $result;
184183
}
185184

186-
/**
187-
* Hydrates a single row returned by the current statement instance during
188-
* row-by-row hydration with {@link toIterable()}.
189-
*
190-
* @deprecated
191-
*
192-
* @return mixed[]|false
193-
*/
194-
public function hydrateRow()
195-
{
196-
Deprecation::triggerIfCalledFromOutside(
197-
'doctrine/orm',
198-
'https://github.com/doctrine/orm/pull/9072',
199-
'%s is deprecated.',
200-
__METHOD__
201-
);
202-
203-
$row = $this->statement()->fetchAssociative();
204-
205-
if ($row === false) {
206-
$this->cleanup();
207-
208-
return false;
209-
}
210-
211-
$result = [];
212-
213-
$this->hydrateRowData($row, $result);
214-
215-
return $result;
216-
}
217-
218185
/**
219186
* When executed in a hydrate() loop we have to clear internal state to
220187
* decrease memory consumption.

psalm.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
<!-- We're calling the deprecated method for BC here. -->
3030
<file name="lib/Doctrine/ORM/Internal/SQLResultCasing.php"/>
3131
<!-- Remove on 3.0.x -->
32-
<referencedMethod name="Doctrine\ORM\Internal\Hydration\AbstractHydrator::hydrateRow"/>
3332
<referencedMethod name="Doctrine\ORM\Configuration::ensureProductionSettings"/>
3433
</errorLevel>
3534
</DeprecatedMethod>

0 commit comments

Comments
 (0)