From 195a734d767c6f632d59819fe890e4cd2944b3e8 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 5 Nov 2024 16:19:51 -0300 Subject: [PATCH] fix: deprecated Signed-off-by: Vitor Mattos --- lib/Db/SignRequestMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/SignRequestMapper.php b/lib/Db/SignRequestMapper.php index 027dbe5901..021e897a35 100644 --- a/lib/Db/SignRequestMapper.php +++ b/lib/Db/SignRequestMapper.php @@ -442,7 +442,7 @@ private function getFilesAssociatedFilesWithMeQueryBuilder(string $userId, ?arra // when the database is PostgreSQL. The problem is that the command // addGroupBy add quotes over all text send as argument. With // PostgreSQL json columns don't have problem if not added to group by. - if (!$qb->getConnection()->getDatabasePlatform() instanceof PostgreSQLPlatform) { + if (!$qb->getConnection()->getDatabaseProvider() instanceof PostgreSQLPlatform) { $qb->addGroupBy('f.metadata'); }