diff --git a/UPGRADE.md b/UPGRADE.md index 189d8d0a1b..6267aac15b 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -729,6 +729,13 @@ following classes and methods: Use `toIterable()` instead. +# Upgrade to 2.20 + +## PARTIAL DQL syntax is undeprecated for non-object hydration + +Use of the PARTIAL keyword is not deprecated anymore in DQL when used with a hydrator +that is not creating entities, such as the ArrayHydrator. + # Upgrade to 2.19 ## Deprecate calling `ClassMetadata::getAssociationMappedByTargetField()` with the owning side of an association diff --git a/docs/en/tutorials/getting-started.rst b/docs/en/tutorials/getting-started.rst index 3550daecf7..b972c119c5 100644 --- a/docs/en/tutorials/getting-started.rst +++ b/docs/en/tutorials/getting-started.rst @@ -139,12 +139,12 @@ step: // Create a simple "default" Doctrine ORM configuration for Attributes $config = ORMSetup::createAttributeMetadataConfiguration( - paths: array(__DIR__."/src"), + paths: [__DIR__ . '/src'], isDevMode: true, ); // or if you prefer XML // $config = ORMSetup::createXMLMetadataConfiguration( - // paths: array(__DIR__."/config/xml"), + // paths: [__DIR__ . '/config/xml'], // isDevMode: true, //);