Put color on own database. Umm.. Any relationship placed on the note controller.

This commit is contained in:
Matias De lellis committed 2016-05-26 18:09:55 -03:00
1 parent b7264d4377
commit 6df7fc0ba8
7 files changed
+163 -21

No files matched your search

+10 -1
View File
@@ -9,14 +9,23 @@ class Note extends Entity implements JsonSerializable {
protected $title;
protected $content;
protected $color;
protected $timestamp;
protected $colorId;
protected $userId;
protected $color;
public function setColor($color) {
$this->color = $color;
}
public function jsonSerialize() {
return [
'id' => $this->id,
'title' => $this->title,
'content' => $this->content,
'timestamp' => $this->timestamp,
'colorid' => $this->colorId,
'color' => $this->color
];
}