From 1ff68cdb5bd5b93f450f2560686e64d5dfda5908 Mon Sep 17 00:00:00 2001 From: Alexis Lefebvre Date: Mon, 16 Dec 2024 17:09:39 +0100 Subject: [PATCH] feat: pass configuration to getConnection() --- src/Services/DatabaseTools/ORMDatabaseTool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/DatabaseTools/ORMDatabaseTool.php b/src/Services/DatabaseTools/ORMDatabaseTool.php index 2ec3369..2b304f1 100644 --- a/src/Services/DatabaseTools/ORMDatabaseTool.php +++ b/src/Services/DatabaseTools/ORMDatabaseTool.php @@ -171,7 +171,7 @@ protected function createDatabaseIfNotExists(): void // Unset url to avoid issue: // “An exception occurred in driver: SQLSTATE[HY000] [1049] Unknown database 'test'” - $tmpConnection = DriverManager::getConnection($params); + $tmpConnection = DriverManager::getConnection($params, $this->connection->getConfiguration()); $schemaManager = $tmpConnection->createSchemaManager();