From 4d87d388b868f5c10a04b16220c79317075855d2 Mon Sep 17 00:00:00 2001 From: fcki1984 <39592566+fcki1984@users.noreply.github.com> Date: Fri, 12 May 2023 21:19:06 +0800 Subject: [PATCH] Update ReaderMapper.php --- lib/Db/ReaderMapper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Db/ReaderMapper.php b/lib/Db/ReaderMapper.php index 516783a..50969a6 100644 --- a/lib/Db/ReaderMapper.php +++ b/lib/Db/ReaderMapper.php @@ -11,12 +11,12 @@ namespace OCA\Epubreader\Db; use OCP\IDBConnection; -use OCP\AppFramework\Db\Mapper; +use OCP\AppFramework\Db\QBMapper; use OCP\AppFramework\Db\Entity; use OCA\Epubreader\Utility\Time; -abstract class ReaderMapper extends Mapper { +abstract class ReaderMapper extends QBMapper { /** * @var Time @@ -28,12 +28,12 @@ abstract class ReaderMapper extends Mapper { $this->time = $time; } - public function update(Entity $entity) { + public function update(Entity $entity): Entity { $entity->setLastModified($this->time->getMicroTime()); return parent::update($entity); } - public function insert(Entity $entity) { + public function insert(Entity $entity): Entity { $entity->setLastModified($this->time->getMicroTime()); return parent::insert($entity); }