mirror of
https://github.com/JanGross/quicknotes.git
synced 2026-12-01 02:17:00 +01:00
Add type to two mappers..
This commit is contained in:
1 parent
bc7de52634
commit
dc51436288
2 files changed
+2
-2
No files matched your search
@@ -12,7 +12,7 @@ use OCA\QuickNotes\Db\Attach;
|
||||
class AttachMapper extends QBMapper {
|
||||
|
||||
public function __construct(IDBConnection $db) {
|
||||
parent::__construct($db, 'quicknotes_attach');
|
||||
parent::__construct($db, 'quicknotes_attach', Attach::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -10,7 +10,7 @@ use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||
class NoteMapper extends QBMapper {
|
||||
|
||||
public function __construct(IDBConnection $db) {
|
||||
parent::__construct($db, 'quicknotes_notes', 'OCA\QuickNotes\Db\Note');
|
||||
parent::__construct($db, 'quicknotes_notes', Note::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user