From 9c93ea5eebe423e9c11e66d59068e79cb21e4589 Mon Sep 17 00:00:00 2001 From: Aleksey Tupichenkov Date: Tue, 21 Oct 2025 00:09:58 +0300 Subject: [PATCH] fix: fix recursive call - getDatabasePlatform - detectDatabasePlatform - ... - connect --- src/Doctrine/SchemaConnection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }