From 11e36c03614df85d0ff4f93c788c5d8bd02039a0 Mon Sep 17 00:00:00 2001 From: alexmerlin Date: Wed, 26 Nov 2025 16:08:39 +0200 Subject: [PATCH] Issue #471: Clarify instructions regarding multiple connections in config/autoload/local.php.dist Signed-off-by: alexmerlin --- config/autoload/local.php.dist | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/autoload/local.php.dist b/config/autoload/local.php.dist index f37da1e..87176ea 100644 --- a/config/autoload/local.php.dist +++ b/config/autoload/local.php.dist @@ -5,6 +5,12 @@ declare(strict_types=1); $baseUrl = 'http://localhost:8080'; $databases = [ + /** + * You can add more database connections to this array. + * Only one active connection is allowed at a time. + * By default, the application uses the 'mariadb' connection. + * You can switch to another connection by activating it under doctrine->connection->orm_default-->params. + */ 'mariadb' => [ 'host' => 'localhost', 'dbname' => 'dotkernel', @@ -25,7 +31,6 @@ $databases = [ 'collation' => 'utf8mb4_general_ci', 'table_prefix' => '', ], - // you can add more database connections to this array ]; return [ @@ -61,6 +66,7 @@ return [ 'connection' => [ 'orm_default' => [ 'params' => $databases['mariadb'], +// 'params' => $databases['postgresql'], ], ], ],