From 63609c4336b9f5f419ad388b0afafac50d9b79d6 Mon Sep 17 00:00:00 2001 From: Markus Mahner Date: Tue, 18 Jul 2017 11:21:43 +0200 Subject: [PATCH] Fixes issue #9 with multiple entity managers https://github.com/egzakt/UnifikDatabaseConfigBundle/issues/9 Signed-off-by: Markus Mahner --- DependencyInjection/Compiler/ContainerBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DependencyInjection/Compiler/ContainerBuilder.php b/DependencyInjection/Compiler/ContainerBuilder.php index 42544a5..5c467af 100644 --- a/DependencyInjection/Compiler/ContainerBuilder.php +++ b/DependencyInjection/Compiler/ContainerBuilder.php @@ -73,7 +73,7 @@ protected function initConnection() if (array_key_exists('connections', $params)) { $defaultEntityManager = $mergedConfig['orm']['default_entity_manager']; - $defaultConnection = $mergedConfig['entity_managers'][$defaultEntityManager]['connection']; + $defaultConnection = $mergedConfig['orm']['entity_managers'][$defaultEntityManager]['connection']; $params = $params['connections'][$defaultConnection]; }