diff --git a/lib/Db/ItemMapperV2.php b/lib/Db/ItemMapperV2.php index 972295ee36..7c70c68798 100644 --- a/lib/Db/ItemMapperV2.php +++ b/lib/Db/ItemMapperV2.php @@ -14,7 +14,7 @@ use OC\DB\QueryBuilder\Literal; use OCA\News\Service\Exceptions\ServiceValidationException; -use Doctrine\DBAL\FetchMode; +use PDO; use OCA\News\Utility\Time; use OCP\AppFramework\Db\DoesNotExistException; use OCP\AppFramework\Db\Entity; @@ -201,7 +201,7 @@ public function deleteOverThreshold(int $threshold, bool $purgeUnread): ?int ->groupBy('feed_id'); $feeds = $this->db->executeQuery($feedQb->getSQL()) - ->fetchAll(FetchMode::ASSOCIATIVE); + ->fetchAll(); if ($feeds === []) { return null; @@ -227,7 +227,7 @@ public function deleteOverThreshold(int $threshold, bool $purgeUnread): ?int $rangeQuery->setFirstResult(max($threshold, $feed['articlesPerUpdate'])); $items = $this->db->executeQuery($rangeQuery->getSQL(), ['feedId' => $feed['feed_id']]) - ->fetchAll(FetchMode::COLUMN); + ->fetchAll(PDO::FETCH_COLUMN); $total_items = array_merge($total_items, $items); }