protected static function createDatabaseConfiguration()
    {
        $config          = new JConfig();
        $dsn             = $config->dbtype . '://' . $config->user . ':' . $config->password . '@' . $config->host . '/' . $config->db;
        $dataMapperClass = PrefixedDoctrineDataMapper::class;

        $ini = <<<INI
databaseUrl="$dsn"
definitionPath="entities"
dataMapper="$dataMapperClass"
INI;
        file_put_contents(JPATH_ROOT . '/config/database.ini', $ini);
    }