Last active
November 29, 2018 20:18
-
-
Save ScullWM/e38288d1b4e7b38753823d1ce8a11e9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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