mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
Add type to two mappers..
This commit is contained in:
@@ -12,7 +12,7 @@ use OCA\QuickNotes\Db\Attach;
|
|||||||
class AttachMapper extends QBMapper {
|
class AttachMapper extends QBMapper {
|
||||||
|
|
||||||
public function __construct(IDBConnection $db) {
|
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 {
|
class NoteMapper extends QBMapper {
|
||||||
|
|
||||||
public function __construct(IDBConnection $db) {
|
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