Replace usage of deprecated IDb

This commit is contained in:
LiamHD
2017-06-05 14:10:49 +02:00
committed by Matthias Becker
parent 2f0a606e6d
commit 6583f04f9e
2 changed files with 2 additions and 3 deletions

View File

@@ -294,7 +294,6 @@ Types:
* **OCP\\AppFramework\\Utility\\IControllerMethodReflector**
* **OCP\\Contacts\\IManager**
* **OCP\\IDateTimeZone**
* **OCP\\IDb**
* **OCP\\IDBConnection**
* **OCP\\Diagnostics\\IEventLogger**
* **OCP\\Diagnostics\\IQueryLogger**

View File

@@ -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');
}