src/Silvestra/Bundle/MediaBundle/SilvestraMediaBundle.php
private function addRegisterMappingsPass(ContainerBuilder $container)
    {
        $mappings = array(
            realpath(__DIR__ . '/Resources/config/doctrine/model') => 'Silvestra\Component\Media\Model',
        );

        $ormCompilerClass = 'Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass';
        if (class_exists($ormCompilerClass)) {
            $container->addCompilerPass(DoctrineOrmMappingsPass::createXmlMappingDriver($mappings));
        }
    }
private function addRegisterMappingsPass(ContainerBuilder $container)
    {
        $mappings = array(
            realpath(__DIR__ . '/Resources/config/doctrine/model') => 'Silvestra\Component\Media\Model',
        );

        $ormCompilerClass = 'Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass';
        if (class_exists($ormCompilerClass)) {
            $container->addCompilerPass(DoctrineOrmMappingsPass::createXmlMappingDriver($mappings));
        }
    }
private function addRegisterMappingsPass ( ContainerBuilder $ container ) { $ mappings = array ( realpath ( __DIR__ . '/Resources/config/doctrine/model' ) => 'Silvestra\Component\Media\Model' , ) ; $ ormCompilerClass = 'Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass' ; if ( class_exists ( $ ormCompilerClass ) ) { $ container -> addCompilerPass ( DoctrineOrmMappingsPass :: createXmlMappingDriver ( $ mappings ) ) ; } }
Add register mappings pass.

@param ContainerBuilder $container
Add register mappings pass .