diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-07-23 18:34:17 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-07-23 18:34:17 +0200 |
commit | 9b1fe46fe995bc103d3c5cfa9a552d050ff0ead8 (patch) | |
tree | 7b86abb65272df89f61e849a08edef5326207b8a /db/itemmapper.php | |
parent | b88d42074dcd0842d0db3ca8ed24b0b9ccb78a7a (diff) |
Add timestamps for all entities in milisecond unix time format
Diffstat (limited to 'db/itemmapper.php')
-rw-r--r-- | db/itemmapper.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db/itemmapper.php b/db/itemmapper.php index 220b4f153..091022c6c 100644 --- a/db/itemmapper.php +++ b/db/itemmapper.php @@ -14,16 +14,16 @@ namespace OCA\News\Db; use Exception; +use OCA\News\Utility\Time; use OCP\IDBConnection; class ItemMapper extends NewsMapper { - public function __construct(IDBConnection $db) { - parent::__construct($db, 'news_items', Item::class); + public function __construct(IDBConnection $db, Time $time) { + parent::__construct($db, 'news_items', Item::class, $time); } - private function makeSelectQuery($prependTo = '', $oldestFirst = false, $distinctFingerprint = false) { if ($oldestFirst) { |