mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
Replace usage of deprecated IDb
This commit is contained in:
@@ -294,7 +294,6 @@ Types:
|
||||
* **OCP\\AppFramework\\Utility\\IControllerMethodReflector**
|
||||
* **OCP\\Contacts\\IManager**
|
||||
* **OCP\\IDateTimeZone**
|
||||
* **OCP\\IDb**
|
||||
* **OCP\\IDBConnection**
|
||||
* **OCP\\Diagnostics\\IEventLogger**
|
||||
* **OCP\\Diagnostics\\IQueryLogger**
|
||||
|
||||
@@ -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