We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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'];
The text was updated successfully, but these errors were encountered:
Fixes issue egzakt#9 with multiple entity managers
63609c4
egzakt#9 Signed-off-by: Markus Mahner <[email protected]>
Merge pull request #16 from mhnrm/master
c1a2531
Fixes issue #9 with multiple entity managers
Thanks for merging!
Sorry, something went wrong.
No branches or pull requests
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'];
The text was updated successfully, but these errors were encountered: