From b0c27a9332b49494bb5fd82fac9b7a8505dba5a7 Mon Sep 17 00:00:00 2001 From: Matt Edholm Date: Wed, 6 May 2026 12:46:02 -0400 Subject: [PATCH] fix: gate dama doctrine test bundle config under when@test Bundle was registered for test env only but its YAML config loaded unconditionally, which broke `bin/console cache:clear` in dev/prod when the bundle is enabled but the env doesn't load it. The file now only contributes to the test container. Co-Authored-By: Claude Opus 4.7 (1M context) --- config/packages/dama_doctrine_test_bundle.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config/packages/dama_doctrine_test_bundle.yaml b/config/packages/dama_doctrine_test_bundle.yaml index 80b0091..3482cba 100644 --- a/config/packages/dama_doctrine_test_bundle.yaml +++ b/config/packages/dama_doctrine_test_bundle.yaml @@ -1,4 +1,5 @@ -dama_doctrine_test: - enable_static_connection: true - enable_static_meta_data_cache: true - enable_static_query_cache: true +when@test: + dama_doctrine_test: + enable_static_connection: true + enable_static_meta_data_cache: true + enable_static_query_cache: true