From bf6c0346d8d35a719dd1bff1cb4d573d422f99ff Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 31 May 2017 09:31:18 +0200 Subject: WIP Signed-off-by: Thomas Citharel --- src/Wallabag/CoreBundle/Entity/Entry.php | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'src/Wallabag/CoreBundle/Entity/Entry.php') diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php index a0503c39..6ca17126 100644 --- a/src/Wallabag/CoreBundle/Entity/Entry.php +++ b/src/Wallabag/CoreBundle/Entity/Entry.php @@ -233,13 +233,21 @@ class Entry */ private $tags; - /* + /** + * @var boolean + * + * @ORM\Column(name="recommended", type="boolean", nullable=true) + */ + private $recommended; + + /** * @param User $user */ public function __construct(User $user) { $this->user = $user; $this->tags = new ArrayCollection(); + $this->changes = new ArrayCollection(); } /** @@ -778,4 +786,20 @@ class Entry return $this; } + + /** + * @return bool + */ + public function isRecommended() + { + return $this->recommended; + } + + /** + * @param bool $recommended + */ + public function setRecommended($recommended) + { + $this->recommended = $recommended; + } } -- cgit v1.2.3