File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ $databases = [
1818 * Only one active connection is allowed at a time.
1919 * By default, the application uses the 'mariadb' connection.
2020 * You can switch to another connection by activating it under doctrine->connection->orm_default-->params.
21+ * Set 'persistent' to true to reuse database connections across requests (supported by pdo_mysql and pdo_pgsql).
2122 */
2223 'mariadb' => [
2324 'host' => 'localhost',
@@ -26,16 +27,18 @@ $databases = [
2627 'password' => '',
2728 'port' => 3306,
2829 'driver' => 'pdo_mysql',
30+ 'persistent' => false,
2931 'collation' => 'utf8mb4_general_ci',
3032 'table_prefix' => '',
3133 ],
3234 'postgresql' => [
33- 'host' => 'localhost ',
35+ 'host' => '127.0.0.1 ',
3436 'dbname' => 'dotkernel',
3537 'user' => '',
3638 'password' => '',
3739 'port' => 5432,
3840 'driver' => 'pdo_pgsql',
41+ 'persistent' => false,
3942 'collation' => 'utf8mb4_general_ci',
4043 'table_prefix' => '',
4144 ],
@@ -49,12 +52,25 @@ return [
4952 ],
5053 'databases' => $databases,
5154 'doctrine' => [
52- 'connection' => [
55+ 'connection' => [
5356 'orm_default' => [
5457 'params' => $databases['mariadb'],
5558// 'params' => $databases['postgresql'],
5659 ],
5760 ],
61+ 'configuration' => [
62+ 'orm_default' => [
63+ /**
64+ * Starting with doctrine/orm 3.8, the second-level cache requires
65+ * the doctrine/orm-plugin-second-level-cache package.
66+ * To enable it, run `composer require doctrine/orm-plugin-second-level-cache`
67+ * and set 'enabled' to true.
68+ */
69+ 'second_level_cache' => [
70+ 'enabled' => false,
71+ ],
72+ ],
73+ ],
5874 ],
5975 'routes' => [
6076 'page' => [
You can’t perform that action at this time.
0 commit comments