We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c234b0 + 409dabb commit 1ab86aaCopy full SHA for 1ab86aa
src/Doctrine/SchemaConnection.php
@@ -12,6 +12,7 @@
12
class SchemaConnection extends DBALConnection
13
{
14
private static ?BaggageSchemaResolver $schemaResolver = null;
15
+ private ?string $currentSchema = null;
16
17
public static function setSchemaResolver(BaggageSchemaResolver $resolver): void
18
@@ -32,8 +33,13 @@ public function connect(): bool
32
33
return $connection;
34
}
35
36
+ if ($this->currentSchema === $schema) {
37
+ return $connection;
38
+ }
39
+
40
$this->ensurePostgreSql();
41
$this->applySearchPath($schema);
42
+ $this->currentSchema = $schema;
43
44
45
0 commit comments