Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion config/autoload/local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ $databases = [
* 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.
* Set 'persistent' to true to reuse database connections across requests (supported by pdo_mysql and pdo_pgsql).
*/
'mariadb' => [
'host' => 'localhost',
Expand All @@ -18,6 +19,7 @@ $databases = [
'password' => '',
'port' => 3306,
'driver' => 'pdo_mysql',
'persistent' => false,
'collation' => 'utf8mb4_general_ci',
'table_prefix' => '',
],
Expand All @@ -28,6 +30,7 @@ $databases = [
'password' => '',
'port' => 5432,
'driver' => 'pdo_pgsql',
'persistent' => false,
'collation' => 'utf8mb4_general_ci',
'table_prefix' => '',
],
Expand All @@ -47,12 +50,25 @@ return [
],
'databases' => $databases,
'doctrine' => [
'connection' => [
'connection' => [
'orm_default' => [
'params' => $databases['mariadb'],
// 'params' => $databases['postgresql'],
],
],
'configuration' => [
'orm_default' => [
/**
* Starting with doctrine/orm 3.8, the second-level cache requires
* the doctrine/orm-plugin-second-level-cache package.
* To enable it, run `composer require doctrine/orm-plugin-second-level-cache`
* and set 'enabled' to true.
*/
'second_level_cache' => [
'enabled' => false,
],
],
],
],
'uploads' => [
'user' => [
Expand Down
Loading