Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi entity managers #9

Open
ghost opened this issue Oct 30, 2014 · 1 comment
Open

Multi entity managers #9

ghost opened this issue Oct 30, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 30, 2014

If you use the DatabaseConfigBundle with multiple entity managers, you get this error:

[Symfony\Component\Debug\Exception\ContextErrorException]
Notice: Undefined index: entity_managers in ...\vendor\unifik\database-confi
g-bundle\Unifik\DatabaseConfigBundle\DependencyInjection\Compiler\Container
Builder.php line 76

Just change
$defaultConnection = $mergedConfig['entity_managers'][$defaultEntityManager]['connection'];

to

$defaultConnection = $mergedConfig['orm']['entity_managers'][$defaultEntityManager]['connection'];

mhnrm added a commit to mhnrm/UnifikDatabaseConfigBundle that referenced this issue Jul 18, 2017
ndenoncourt added a commit that referenced this issue Jul 18, 2017
Fixes issue #9 with multiple entity managers
@mhnrm
Copy link
Contributor

mhnrm commented Jul 18, 2017

Thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant