5
5
namespace Umbrellio \Postgres ;
6
6
7
7
use DateTimeInterface ;
8
- use Doctrine \DBAL \Connection ;
9
- use Doctrine \DBAL \DriverManager ;
10
- use Doctrine \DBAL \Platforms \AbstractPlatform ;
11
8
use Doctrine \DBAL \Types \Type ;
12
9
use Illuminate \Database \PostgresConnection as BasePostgresConnection ;
13
10
use Illuminate \Support \Traits \Macroable ;
@@ -66,20 +63,6 @@ public function useDefaultPostProcessor(): void
66
63
$ this ->registerInitialTypes ();
67
64
}
68
65
69
- /*
70
- public function getDoctrineConnection(): Connection
71
- {
72
- return DriverManager::getConnection($this->getConfig());
73
- }
74
-
75
- public function getDatabasePlatform(): AbstractPlatform
76
- {
77
- return $this
78
- ->getDoctrineConnection()
79
- ->getDatabasePlatform();
80
- }
81
- */
82
-
83
66
public function bindValues ($ statement , $ bindings )
84
67
{
85
68
if ($ this ->getPdo ()->getAttribute (PDO ::ATTR_EMULATE_PREPARES )) {
@@ -133,10 +116,6 @@ private function registerInitialTypes(): void
133
116
foreach ($ this ->initialTypes as $ type => $ typeClass ) {
134
117
if (! Type::hasType ($ type )) {
135
118
Type::addType ($ type , $ typeClass );
136
- } else {
137
- // $this
138
- // ->getDatabasePlatform()
139
- // ->registerDoctrineTypeMapping($typeClass, $type);
140
119
}
141
120
}
142
121
}
@@ -152,10 +131,6 @@ private function registerExtensions(): void
152
131
foreach ($ extension ::getTypes () as $ type => $ typeClass ) {
153
132
if (! Type::hasType ($ type )) {
154
133
Type::addType ($ type , $ typeClass );
155
- } else {
156
- // $this
157
- // ->getDatabasePlatform()
158
- // ->registerDoctrineTypeMapping($typeClass, $type);
159
134
}
160
135
}
161
136
});
0 commit comments