summaryrefslogtreecommitdiffstats
path: root/lib/Db/ItemMapperV2.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Db/ItemMapperV2.php')
-rw-r--r--lib/Db/ItemMapperV2.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Db/ItemMapperV2.php b/lib/Db/ItemMapperV2.php
index a67275320..0c3191540 100644
--- a/lib/Db/ItemMapperV2.php
+++ b/lib/Db/ItemMapperV2.php
@@ -12,7 +12,6 @@
namespace OCA\News\Db;
-use Doctrine\DBAL\FetchMode;
use OCA\News\Utility\Time;
use OCP\AppFramework\Db\DoesNotExistException;
use OCP\AppFramework\Db\Entity;
@@ -152,7 +151,7 @@ class ItemMapperV2 extends NewsMapperV2
->groupBy('feed_id')
->where('');
- return $this->db->executeQuery($query)->fetch(FetchMode::ASSOCIATIVE);
+ return $this->db->executeQuery($query->getSQL());
}
/**