* @ORM\JoinColumn(name="tag_id", referencedColumnName="id")
* }
* )
- *
- * @Groups({"entries_for_user", "export_all"})
*/
private $tags;
return $this->tags;
}
+ /**
+ * @VirtualProperty
+ * @SerializedName("tags")
+ * @Groups({"entries_for_user", "export_all"})
+ */
+ public function getSerializedTags()
+ {
+ $data = [];
+ foreach ($this->tags as $tag) {
+ $data[] = $tag->getLabel();
+ }
+
+ return $data;
+ }
+
/**
* @param Tag $tag
*/