]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: add workaround for oci and limit queries 38016/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Tue, 2 May 2023 09:12:48 +0000 (11:12 +0200)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Tue, 2 May 2023 12:26:28 +0000 (14:26 +0200)
DBAL uses a helper column "doctrine_rownum" for top-n queries

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
lib/public/AppFramework/Db/QBMapper.php

index cbe3d39d4d741377f2b684c7b12922e1886a0d0b..57b996b2c0f668ae34f500b0239e05dfc7dd0755 100644 (file)
@@ -317,6 +317,7 @@ abstract class QBMapper {
         * @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);
        }