Skip to content

Instantly share code, notes, and snippets.

@ScullWM
Last active November 29, 2018 20:18
Show Gist options
  • Save ScullWM/e38288d1b4e7b38753823d1ce8a11e9a to your computer and use it in GitHub Desktop.
Save ScullWM/e38288d1b4e7b38753823d1ce8a11e9a to your computer and use it in GitHub Desktop.
<?php
namespace App\Doctrine\Driver;
use Doctrine\DBAL\Driver;
use Doctrine\DBAL\Driver\PDOPgSql\Driver as ParentDriver;
use App\Doctrine\Driver\Postgre10SqlSchemaManager;
use App\Doctrine\PostgreSQL100Platform;
class PDOPgSqlDriver extends ParentDriver implements Driver
{
public function createDatabasePlatformForVersion($version)
{
return new PostgreSQL100Platform();
}
public function getSchemaManager(\Doctrine\DBAL\Connection $conn)
{
return new Postgre10SqlSchemaManager($conn);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment