Skip to content

Commit

Permalink
Merge pull request #16 from mhnrm/master
Browse files Browse the repository at this point in the history
Fixes issue #9 with multiple entity managers
  • Loading branch information
ndenoncourt authored Jul 18, 2017
2 parents a97394c + 63609c4 commit c1a2531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/ContainerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit c1a2531

Please sign in to comment.