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]; }