Skip to content

Commit 25a5fe0

Browse files
committed
Address GH feedback
1 parent f3c1d71 commit 25a5fe0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

UPGRADE.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
Use of the PARTIAL keyword is not deprecated anymore in DQL when used with a hydrator
66
that is not creating entities, such as the ArrayHydrator.
77

8+
## Deprecate `\Doctrine\ORM\Query\Parser::setCustomOutputTreeWalker()`
9+
10+
Use the `\Doctrine\ORM\Query::HINT_CUSTOM_OUTPUT_WALKER` query hint to set the output walker
11+
class instead of setting it through the `\Doctrine\ORM\Query\Parser::setCustomOutputTreeWalker()` method
12+
on the parser instance.
13+
814
# Upgrade to 2.19
915

1016
## Deprecate calling `ClassMetadata::getAssociationMappedByTargetField()` with the owning side of an association

src/Query/Parser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function setCustomOutputTreeWalker($className)
203203
Deprecation::trigger(
204204
'doctrine/orm',
205205
'https://github.com/doctrine/orm/pull/11641',
206-
'%s is deprecated, set the output walker class in a query hint instead',
206+
'%s is deprecated, set the output walker class with the \Doctrine\ORM\Query::HINT_CUSTOM_OUTPUT_WALKER query hint instead',
207207
__METHOD__
208208
);
209209

0 commit comments

Comments
 (0)