ormLoad() public méthode

Usage example:
public ormLoad ( array $config, ContainerBuilder $container )
$config array An array of configuration settings
$container Symfony\Component\DependencyInjection\ContainerBuilder A ContainerBuilder instance
 public function testAnnotationsBundleMappingDetectionWithVendorNamespace()
 {
     $container = $this->getContainer('AnnotationsBundle', 'Vendor');
     $loader = new DoctrineExtension();
     $loader->dbalLoad(array(), $container);
     $loader->ormLoad(array('mappings' => array('AnnotationsBundle' => array())), $container);
     $calls = $container->getDefinition('doctrine.orm.default_metadata_driver')->getMethodCalls();
     $this->assertEquals('doctrine.orm.default_annotation_metadata_driver', (string) $calls[0][1][0]);
     $this->assertEquals('DoctrineBundle\\Tests\\DependencyInjection\\Fixtures\\Bundles\\Vendor\\AnnotationsBundle\\Entity', $calls[0][1][1]);
 }
 public function testAnnotationsBundleMappingDetection()
 {
     $container = $this->getContainer('AnnotationsBundle');
     $loader = new DoctrineExtension();
     $loader->dbalLoad(array(), $container);
     $loader->ormLoad(array(), $container);
     $this->assertEquals(array(), $container->getParameter('doctrine.orm.metadata_driver.mapping_dirs'));
     $this->assertEquals('%doctrine.orm.metadata_driver.mapping_dirs%', $container->getParameter('doctrine.orm.xml_mapping_dirs'));
     $this->assertEquals('%doctrine.orm.metadata_driver.mapping_dirs%', $container->getParameter('doctrine.orm.yml_mapping_dirs'));
     $this->assertEquals(array(__DIR__ . '/Fixtures/Bundles/AnnotationsBundle/Entity'), $container->getParameter('doctrine.orm.metadata_driver.entity_dirs'));
     $calls = $container->getDefinition('doctrine.orm.metadata_driver')->getMethodCalls();
     $this->assertEquals('doctrine.orm.metadata_driver.annotation', (string) $calls[0][1][0]);
     $this->assertEquals('DoctrineBundle\\Tests\\DependencyInjection\\Fixtures\\Bundles\\AnnotationsBundle\\Entity', $calls[0][1][1]);
 }