From 6feacc12a4bfc19066575a9c7ce4b874d244bb99 Mon Sep 17 00:00:00 2001 From: Julius Haertl Date: Sat, 2 Jul 2016 22:43:19 +0200 Subject: [PATCH] add relation to card --- db/card.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/card.php b/db/card.php index e193e3a8a..874aadc1b 100644 --- a/db/card.php +++ b/db/card.php @@ -20,6 +20,7 @@ class Card extends Entity implements JsonSerializable { $this->addType('id','integer'); $this->addType('stackId','integer'); $this->addType('order','integer'); + $this->addRelation('labels'); } public function jsonSerialize() { @@ -36,4 +37,4 @@ class Card extends Entity implements JsonSerializable { 'labels' => $this->labels, ]; } -} \ No newline at end of file +}