From 2043b72c95fd516f47f16f50208c1688556cd166 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Fri, 17 Nov 2023 11:31:37 +0100 Subject: [PATCH] Fix --- src/Doctrine/Mapping/ClassMetadataFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Doctrine/Mapping/ClassMetadataFactory.php b/src/Doctrine/Mapping/ClassMetadataFactory.php index 057c3411..a8b42c18 100644 --- a/src/Doctrine/Mapping/ClassMetadataFactory.php +++ b/src/Doctrine/Mapping/ClassMetadataFactory.php @@ -47,7 +47,7 @@ protected function initialize(): void 'memory' => true, ], $config); - $em = new EntityManager($connection, $config); + $em = EntityManager::create($connection, $config); $this->setEntityManager($em); parent::initialize();