Commit new state
This commit is contained in:
@@ -3,9 +3,8 @@
|
||||
namespace OCA\Deck\Db;
|
||||
|
||||
use JsonSerializable;
|
||||
use OCP\AppFramework\Db\Entity;
|
||||
|
||||
class Board extends Entity implements JsonSerializable {
|
||||
class Board extends \OCA\Deck\Db\Entity implements JsonSerializable {
|
||||
|
||||
public $id;
|
||||
protected $title;
|
||||
@@ -13,9 +12,12 @@ class Board extends Entity implements JsonSerializable {
|
||||
protected $color;
|
||||
protected $archived;
|
||||
protected $labels;
|
||||
|
||||
public function __construct() {
|
||||
$this->addType('id','integer');
|
||||
$this->addRelation('labels');
|
||||
}
|
||||
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
|
||||
Reference in New Issue
Block a user