From c9d2716c0979bf738e21ccc53f42751dfc6c11c8 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Tue, 2 May 2023 11:12:48 +0200 Subject: [PATCH] fix: add workaround for oci and limit queries DBAL uses a helper column "doctrine_rownum" for top-n queries Signed-off-by: Daniel Kesselberg --- lib/public/AppFramework/Db/QBMapper.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/public/AppFramework/Db/QBMapper.php b/lib/public/AppFramework/Db/QBMapper.php index 57f4cba2ff51a..2809763a088a8 100644 --- a/lib/public/AppFramework/Db/QBMapper.php +++ b/lib/public/AppFramework/Db/QBMapper.php @@ -318,6 +318,7 @@ private function buildDebugMessage(string $msg, IQueryBuilder $sql): string { * @since 14.0.0 */ protected function mapRowToEntity(array $row): Entity { + unset($row['DOCTRINE_ROWNUM']); // remove doctrine/dbal helper column return \call_user_func($this->entityClass .'::fromRow', $row); }