Skip to content

Commit

Permalink
Merge pull request #132 from jdecool/fix-custom-entity-manager
Browse files Browse the repository at this point in the history
Define 'ekino_wordpress.model_manager_name' automatically
  • Loading branch information
eko committed Mar 8, 2017
2 parents d95b9f2 + ab51713 commit 4bd4d4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DependencyInjection/EkinoWordpressExtension.php
Expand Up @@ -138,6 +138,8 @@ protected function loadTablePrefix(ContainerBuilder $container, $prefix)
*/
protected function loadEntityManager(ContainerBuilder $container, $em)
{
$container->setParameter('ekino_wordpress.model_manager_name', $em);

$reference = new Reference(sprintf('doctrine.orm.%s_entity_manager', $em));

foreach (static::$entities as $entityName) {
Expand Down

0 comments on commit 4bd4d4f

Please sign in to comment.