fix: doctrine native lazy objects

This commit is contained in:
2026-09-01 13:58:30 +02:00
parent a60e8357e8
commit 10ab2bd04b
7 changed files with 62 additions and 254 deletions
+1 -4
View File
@@ -7,7 +7,7 @@ doctrine:
# either here or in the DATABASE_URL env var (see .env file)
#server_version: '15'
orm:
auto_generate_proxy_classes: true
enable_native_lazy_objects: true
# Keep implicit controller-argument entity resolution on (many actions type-hint
# an entity against a matching {id}/{uuid} route param without #[MapEntity]).
# Setting this explicitly silences the "default will flip to false" deprecation;
@@ -15,7 +15,6 @@ doctrine:
# migrated to #[MapEntity], which is its own task.
controller_resolver:
auto_mapping: true
enable_lazy_ghost_objects: true
report_fields_where_declared: true
validate_xml_mapping: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
@@ -42,8 +41,6 @@ when@test:
when@prod:
doctrine:
orm:
auto_generate_proxy_classes: false
proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
query_cache_driver:
type: pool
pool: doctrine.system_cache_pool