Mapping/MappingBagCollection.php
public static function create(
        array $entities,
        string $bundleNamespace,
        string $componentNamespace,
        string $containerPrefix = '',
        string $managerName = 'default',
        string $containerObjectManagerName = 'object_manager',
        string $containerObjectRepositoryName = 'object_repository',
        bool $isOverwritable = false
    ): MappingBagCollection {
        $mappingBagCollection = new self();
        foreach ($entities as $entityName => $entityClass) {
            $mappingBagCollection
                ->addMappingBag(new MappingBag(
                    $bundleNamespace,
                    $componentNamespace,
                    $entityName,
                    $entityClass,
                    'Resources/config/doctrine/'.$entityClass.'.orm.yml',
                    $managerName,
                    true,
                    $containerObjectManagerName,
                    $containerObjectRepositoryName,
                    $containerPrefix,
                    $isOverwritable
                ));
        }

        return $mappingBagCollection;
    }
public static function create(
        array $entities,
        string $bundleNamespace,
        string $componentNamespace,
        string $containerPrefix = '',
        string $managerName = 'default',
        string $containerObjectManagerName = 'object_manager',
        string $containerObjectRepositoryName = 'object_repository',
        bool $isOverwritable = false
    ): MappingBagCollection {
        $mappingBagCollection = new self();
        foreach ($entities as $entityName => $entityClass) {
            $mappingBagCollection
                ->addMappingBag(new MappingBag(
                    $bundleNamespace,
                    $componentNamespace,
                    $entityName,
                    $entityClass,
                    'Resources/config/doctrine/'.$entityClass.'.orm.yml',
                    $managerName,
                    true,
                    $containerObjectManagerName,
                    $containerObjectRepositoryName,
                    $containerPrefix,
                    $isOverwritable
                ));
        }

        return $mappingBagCollection;
    }
public static function create ( array $ entities , string $ bundleNamespace , string $ componentNamespace , string $ containerPrefix = '' , string $ managerName = 'default' , string $ containerObjectManagerName = 'object_manager' , string $ containerObjectRepositoryName = 'object_repository' , bool $ isOverwritable = false ) : MappingBagCollection { $ mappingBagCollection = new self ( ) ; foreach ( $ entities as $ entityName => $ entityClass ) { $ mappingBagCollection -> addMappingBag ( new MappingBag ( $ bundleNamespace , $ componentNamespace , $ entityName , $ entityClass , 'Resources/config/doctrine/' . $ entityClass . '.orm.yml' , $ managerName , true , $ containerObjectManagerName , $ containerObjectRepositoryName , $ containerPrefix , $ isOverwritable ) ) ; } return $ mappingBagCollection ; }
Create by shortcut bloc.

@param array  $entities
@param string $bundleNamespace
@param string $componentNamespace
@param string $containerPrefix
@param string $managerName
@param string $containerObjectManagerName
@param string $containerObjectRepositoryName
@param bool   $isOverwritable

@return MappingBagCollection
Create by shortcut bloc .