]> Raphaël G. Git Repositories - blog/commitdiff
Update doctrine package config
authorRaphaël Gertz <git@rapsys.eu>
Thu, 16 Oct 2025 15:10:06 +0000 (17:10 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 16 Oct 2025 15:10:06 +0000 (17:10 +0200)
config/packages/doctrine.yaml

index 7eb11614b98f5f1aa71343b36c3269a59020a1db..cd55026148efb7428dea6403a88954fddb1df23b 100644 (file)
@@ -14,7 +14,10 @@ doctrine:
         report_fields_where_declared: true
         validate_xml_mapping: true
         naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
-        auto_mapping: true
+        identity_generation_preferences:
+            Doctrine\DBAL\Platforms\PostgreSQLPlatform: identity
+        controller_resolver:
+            auto_mapping: false
 
 when@test:
     doctrine: