diff --git a/.github/workflows/test-application.yaml b/.github/workflows/test-application.yaml index d519b0e3..35725d93 100644 --- a/.github/workflows/test-application.yaml +++ b/.github/workflows/test-application.yaml @@ -168,6 +168,7 @@ jobs: SULU_ADMIN_EMAIL: DATABASE_URL: mysql://root:root@127.0.0.1:3306/sulu_test?serverVersion=${{ matrix.mysql-version }} COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + LOCK_DSN: flock strategy: fail-fast: false diff --git a/composer.json b/composer.json index 9f3f2048..f7f27214 100644 --- a/composer.json +++ b/composer.json @@ -39,6 +39,7 @@ "scheb/2fa-bundle": "^6.1", "scheb/2fa-email": "^6.1", "scheb/2fa-trusted-device": "^6.1", + "stof/doctrine-extensions-bundle": "^1.8", "sulu/sulu": "~2.5.9", "symfony/config": "^6.2", "symfony/dotenv": "^6.2", diff --git a/config/packages/stof_doctrine_extensions.yaml b/config/packages/stof_doctrine_extensions.yaml index 1ee27055..36442458 100644 --- a/config/packages/stof_doctrine_extensions.yaml +++ b/config/packages/stof_doctrine_extensions.yaml @@ -2,3 +2,11 @@ # See the official DoctrineExtensions documentation for more details: https://github.com/doctrine-extensions/DoctrineExtensions/tree/main/doc stof_doctrine_extensions: default_locale: '%default_locale%' + +when@prod: &prod + stof_doctrine_extensions: + # fix issue with gedmo/extensions 1.8.0 and stof/doctrine-extensions-bundle: 3.12.0 + # @see https://github.com/stof/StofDoctrineExtensionsBundle/issues/457 + metadata_cache_pool: doctrine.system_cache_pool + +when@stage: *prod