public function build($aConnection, $isDevMode = true)
    {
        Type::addType('file_id', FileIdType::class);

        return EntityManager::create(
            $aConnection,
            Setup::createYAMLMetadataConfiguration([__DIR__ . '/Mapping'], $isDevMode)
        );
    }
public function build($aConnection, $isDevMode = true)
    {
        Type::addType('file_id', FileIdType::class);

        return EntityManager::create(
            $aConnection,
            Setup::createYAMLMetadataConfiguration([__DIR__ . '/Mapping'], $isDevMode)
        );
    }
public function build ( $ aConnection , $ isDevMode = true ) { Type :: addType ( 'file_id' , FileIdType :: class ) ; return EntityManager :: create ( $ aConnection , Setup :: createYAMLMetadataConfiguration ( [ __DIR__ . '/Mapping' ] , $ isDevMode ) ) ; }
Decorates the doctrine entity manager
with library's mappings and custom types.

@param mixed $aConnection Connection parameters as db driver
@param bool  $isDevMode   Enables the dev mode, by default is enabled

@return EntityManager
Decorates the doctrine entity manager with library s mappings and custom types .