protected function loadOrmEntityManagerMappingInformation(array $entityManager, Definition $ormConfigDef, ContainerBuilder $container)
    {
        // reset state of drivers and alias map. They are only used by this methods and children.
        $this->drivers  = [];
        $this->aliasMap = [];

        $this->loadMappingInformation($entityManager, $container);
        $this->registerMappingDrivers($entityManager, $container);

        $ormConfigDef->addMethodCall('setEntityNamespaces', [$this->aliasMap]);
    }
protected function loadOrmEntityManagerMappingInformation(array $entityManager, Definition $ormConfigDef, ContainerBuilder $container)
    {
        // reset state of drivers and alias map. They are only used by this methods and children.
        $this->drivers  = [];
        $this->aliasMap = [];

        $this->loadMappingInformation($entityManager, $container);
        $this->registerMappingDrivers($entityManager, $container);

        $ormConfigDef->addMethodCall('setEntityNamespaces', [$this->aliasMap]);
    }
protected function loadOrmEntityManagerMappingInformation ( array $ entityManager , Definition $ ormConfigDef , ContainerBuilder $ container ) { // reset state of drivers and alias map. They are only used by this methods and children. $ this -> drivers = [ ] ; $ this -> aliasMap = [ ] ; $ this -> loadMappingInformation ( $ entityManager , $ container ) ; $ this -> registerMappingDrivers ( $ entityManager , $ container ) ; $ ormConfigDef -> addMethodCall ( 'setEntityNamespaces' , [ $ this -> aliasMap ] ) ; }
Loads an ORM entity managers bundle mapping information.

There are two distinct configuration possibilities for mapping information:

1. Specify a bundle and optionally details where the entity and mapping information reside.
2. Specify an arbitrary mapping location.

@param array            $entityManager A configured ORM entity manager
@param Definition       $ormConfigDef  A Definition instance
@param ContainerBuilder $container     A ContainerBuilder instance

@example

doctrine.orm:
mappings:
MyBundle1: ~
MyBundle2: yml
MyBundle3: { type: annotation, dir: Entities/ }
MyBundle4: { type: xml, dir: Resources/config/doctrine/mapping }
MyBundle5:
type: yml
dir: bundle-mappings/
alias: BundleAlias
arbitrary_key:
type: xml
dir: %kernel.root_dir%/../src/vendor/DoctrineExtensions/lib/DoctrineExtensions/Entities
prefix: DoctrineExtensions\Entities\
alias: DExt

In the case of bundles everything is really optional (which leads to autodetection for this bundle) but
in the mappings key everything except alias is a required argument.
Loads an ORM entity managers bundle mapping information .