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) {
            $container->findDefinition(sprintf('ekino.wordpress.manager.%s', $entityName))->replaceArgument(0, $reference);
        }
    }
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) {
            $container->findDefinition(sprintf('ekino.wordpress.manager.%s', $entityName))->replaceArgument(0, $reference);
        }
    }
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 ) { $ container -> findDefinition ( sprintf ( 'ekino.wordpress.manager.%s' , $ entityName ) ) -> replaceArgument ( 0 , $ reference ) ; } }
Sets Doctrine entity manager for Wordpress.

@param ContainerBuilder       $container
@param EntityManagerInterface $em
Sets Doctrine entity manager for Wordpress .