diff --git a/src/Doctrine/SchemaConnection.php b/src/Doctrine/SchemaConnection.php index 5943bf5..ce4e29d 100644 --- a/src/Doctrine/SchemaConnection.php +++ b/src/Doctrine/SchemaConnection.php @@ -36,10 +36,10 @@ public function connect(): bool if ($this->currentSchema === $schema) { return $connection; } + $this->currentSchema = $schema; $this->ensurePostgreSql(); $this->applySearchPath($schema); - $this->currentSchema = $schema; return $connection; }