private static function createEntityManagerWithParameters(array $options, Configuration $config, EventManager $evm = null)
    {
        try {
            return EntityManager::create(self::randomizeServerPoolConnection($options), $config, $evm);
        } catch (\Exception $e) {
            throw new InvalidArgumentException(
                'Enable to create new EntityManager with provided parameters',
                InvalidArgumentException::INVALID_ARGUMENT,
                $e
            );
        }
    }
private static function createEntityManagerWithParameters(array $options, Configuration $config, EventManager $evm = null)
    {
        try {
            return EntityManager::create(self::randomizeServerPoolConnection($options), $config, $evm);
        } catch (\Exception $e) {
            throw new InvalidArgumentException(
                'Enable to create new EntityManager with provided parameters',
                InvalidArgumentException::INVALID_ARGUMENT,
                $e
            );
        }
    }
private static function createEntityManagerWithParameters ( array $ options , Configuration $ config , EventManager $ evm = null ) { try { return EntityManager :: create ( self :: randomizeServerPoolConnection ( $ options ) , $ config , $ evm ) ; } catch ( \ Exception $ e ) { throw new InvalidArgumentException ( 'Enable to create new EntityManager with provided parameters' , InvalidArgumentException :: INVALID_ARGUMENT , $ e ) ; } }
Returns a new EntityManager with the provided parameters.

@param  array         $options
@param  Configuration $config
@param  EventManager  $evm

@return EntityManager

@throws InvalidArgumentException Occurs if $entityManager can not be created
Returns a new EntityManager with the provided parameters .