File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1010use Doctrine \DBAL \Driver \Connection as DriverConnection ;
1111use Doctrine \DBAL \Platforms \AbstractPlatform ;
1212use Doctrine \DBAL \Schema \AbstractSchemaManager ;
13+ use Doctrine \DBAL \Types \Type ;
1314use Doctrine \DBAL \VersionAwarePlatformDriver ;
1415use Pfilsx \PostgreSQLDoctrine \DBAL \Platform \PostgreSQLPlatform ;
1516use Pfilsx \PostgreSQLDoctrine \DBAL \Schema \PostgreSQLSchemaManager ;
17+ use Pfilsx \PostgreSQLDoctrine \DBAL \Type \EnumType ;
1618
1719final class PostgreSQLDriverWrapper implements VersionAwarePlatformDriver
1820{
@@ -21,6 +23,9 @@ final class PostgreSQLDriverWrapper implements VersionAwarePlatformDriver
2123 public function __construct (Driver $ innerDriver )
2224 {
2325 $ this ->innerDriver = $ innerDriver ;
26+ if (!Type::hasType (EnumType::NAME )) {
27+ Type::addType (EnumType::NAME , EnumType::class);
28+ }
2429 }
2530
2631
You can’t perform that action at this time.
0 commit comments