Skip to content

Commit

Permalink
Fixes issue #9 with multiple entity managers
Browse files Browse the repository at this point in the history
#9

Signed-off-by: Markus Mahner <[email protected]>
  • Loading branch information
mhnrm committed Jul 18, 2017
1 parent a97394c commit 63609c4
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 63609c4

Please sign in to comment.