From f693750602b8c0e5d6582826604ef65a4f0f6b02 Mon Sep 17 00:00:00 2001 From: bidi Date: Mon, 26 Feb 2024 18:19:19 +0200 Subject: [PATCH 1/2] updated configuration --- config/autoload/doctrine.global.php | 6 ++++++ config/autoload/local.php.dist | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config/autoload/doctrine.global.php b/config/autoload/doctrine.global.php index 454a4ad8..e5c277c2 100644 --- a/config/autoload/doctrine.global.php +++ b/config/autoload/doctrine.global.php @@ -5,6 +5,7 @@ use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManagerInterface; use Doctrine\Persistence\Mapping\Driver\MappingDriverChain; +use Frontend\App\Resolver\EntityListenerResolver; use Ramsey\Uuid\Doctrine\UuidBinaryOrderedTimeType; use Ramsey\Uuid\Doctrine\UuidBinaryType; use Ramsey\Uuid\Doctrine\UuidType; @@ -37,6 +38,11 @@ 'class' => MappingDriverChain::class, 'drivers' => [], ], + 'configuration' => [ + 'orm_default' => [ + 'entity_listener_resolver' => EntityListenerResolver::class, + ], + ], ], 'types' => [ UuidType::NAME => UuidType::class, diff --git a/config/autoload/local.php.dist b/config/autoload/local.php.dist index d1bc5324..0cfebe0d 100644 --- a/config/autoload/local.php.dist +++ b/config/autoload/local.php.dist @@ -26,7 +26,6 @@ $databases = [ ]; return [ - 'annotations_cache_dir' => getcwd() . '/data/cache/annotations', 'application' => [ 'name' => 'DotKernel', 'url' => $baseUrl, From 118f8ee25cea251820e2fafcb1b8195ba4b317cf Mon Sep 17 00:00:00 2001 From: bidi Date: Mon, 26 Feb 2024 18:23:54 +0200 Subject: [PATCH 2/2] phpcs fix --- config/autoload/doctrine.global.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/autoload/doctrine.global.php b/config/autoload/doctrine.global.php index e5c277c2..9d97a537 100644 --- a/config/autoload/doctrine.global.php +++ b/config/autoload/doctrine.global.php @@ -34,7 +34,7 @@ 'driver' => [ // default metadata driver, aggregates all other drivers into a single one. // Override `orm_default` only if you know what you're doing - 'orm_default' => [ + 'orm_default' => [ 'class' => MappingDriverChain::class, 'drivers' => [], ],