private function resolveEntityManagerName(
        ContainerBuilder $container,
        string $entityManagerName
    ) {
        if (!$container->has('doctrine.orm.' . $entityManagerName . '_metadata_driver')) {
            throw new EntityManagerNotFoundException($entityManagerName);
        }
    }
private function resolveEntityManagerName(
        ContainerBuilder $container,
        string $entityManagerName
    ) {
        if (!$container->has('doctrine.orm.' . $entityManagerName . '_metadata_driver')) {
            throw new EntityManagerNotFoundException($entityManagerName);
        }
    }
private function resolveEntityManagerName ( ContainerBuilder $ container , string $ entityManagerName ) { if ( ! $ container -> has ( 'doctrine.orm.' . $ entityManagerName . '_metadata_driver' ) ) { throw new EntityManagerNotFoundException ( $ entityManagerName ) ; } }
Throws an exception if given entityName is not available or does
not exist.

@param ContainerBuilder $container
@param string           $entityManagerName

@throws EntityManagerNotFoundException Entity manager not found
Throws an exception if given entityName is not available or does not exist .