From afa91b8836c7999fbf767265e648974277444d30 Mon Sep 17 00:00:00 2001 From: Retidurc Silvernight Date: Thu, 16 Jun 2022 14:30:46 +0200 Subject: [PATCH] Expose Doctrine settings in Netxcloud settings Signed-off-by: Retidurc Silvernight --- lib/private/DB/ConnectionFactory.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/private/DB/ConnectionFactory.php b/lib/private/DB/ConnectionFactory.php index 95f3185bcdb17..e2894d2b3e6f0 100644 --- a/lib/private/DB/ConnectionFactory.php +++ b/lib/private/DB/ConnectionFactory.php @@ -233,6 +233,10 @@ public function createConnectionParams(string $configPrefix = '') { ]; } + if ($this->config->getValue('persistent',false)){ + $connectionParams['persistent'] = true; + } + return $connectionParams; }