Skip to content

Commit

Permalink
Define 'ekino_wordpress.model_manager_name' automatically if custom e…
Browse files Browse the repository at this point in the history
…ntity manager is defined
  • Loading branch information
jdecool committed Mar 8, 2017
1 parent d95b9f2 commit ab51713
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 ab51713

Please sign in to comment.