Skip to content

Commit

Permalink
feat: pass configuration to getConnection()
Browse files Browse the repository at this point in the history
  • Loading branch information
alexislefebvre committed Dec 16, 2024
1 parent 537bcb4 commit 1ff68cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/DatabaseTools/ORMDatabaseTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 1ff68cd

Please sign in to comment.