mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-04 10:46:21 +07:00
Replace usage of deprecated IDb
This commit is contained in:
@@ -310,12 +310,12 @@ Entities are returned from so called :doc:`Mappers <database>`. Let's create one
|
||||
<?php
|
||||
namespace OCA\OwnNotes\Db;
|
||||
|
||||
use OCP\IDb;
|
||||
use OCP\IDbConnection;
|
||||
use OCP\AppFramework\Db\Mapper;
|
||||
|
||||
class NoteMapper extends Mapper {
|
||||
|
||||
public function __construct(IDb $db) {
|
||||
public function __construct(IDbConnection $db) {
|
||||
parent::__construct($db, 'ownnotes_notes', '\OCA\OwnNotes\Db\Note');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user