diff --git a/lib/Doctrine/ORM/Query/ParserResult.php b/lib/Doctrine/ORM/Query/ParserResult.php index 7eb25b473b0..8b5ee1f7ee5 100644 --- a/lib/Doctrine/ORM/Query/ParserResult.php +++ b/lib/Doctrine/ORM/Query/ParserResult.php @@ -17,12 +17,6 @@ */ class ParserResult { - private const LEGACY_PROPERTY_MAPPING = [ - 'sqlExecutor' => '_sqlExecutor', - 'resultSetMapping' => '_resultSetMapping', - 'parameterMappings' => '_parameterMappings', - ]; - /** * The SQL executor used for executing the SQL. */ @@ -121,20 +115,4 @@ public function getSqlParameterPositions(string|int $dqlPosition): array { return $this->parameterMappings[$dqlPosition]; } - - public function __wakeup(): void - { - $this->__unserialize((array) $this); - } - - /** @param array $data */ - public function __unserialize(array $data): void - { - foreach (self::LEGACY_PROPERTY_MAPPING as $property => $legacyProperty) { - $this->$property = $data[sprintf("\0%s\0%s", self::class, $legacyProperty)] - ?? $data[sprintf("\0%s\0%s", self::class, $property)] - ?? $this->$property - ?? null; - } - } } diff --git a/tests/Doctrine/Tests/ORM/Functional/ParserResults/single_select_2_14_3.txt b/tests/Doctrine/Tests/ORM/Functional/ParserResults/single_select_2_14_3.txt deleted file mode 100644 index db83fe2de48..00000000000 Binary files a/tests/Doctrine/Tests/ORM/Functional/ParserResults/single_select_2_14_3.txt and /dev/null differ diff --git a/tests/Doctrine/Tests/ORM/Functional/ParserResults/single_select_2_15_0.txt b/tests/Doctrine/Tests/ORM/Functional/ParserResults/single_select_2_15_0.txt deleted file mode 100644 index 2c306211b86..00000000000 Binary files a/tests/Doctrine/Tests/ORM/Functional/ParserResults/single_select_2_15_0.txt and /dev/null differ