aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity/Entry.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Entry.php')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Entry.php26
1 files changed, 25 insertions, 1 deletions
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
233 */ 233 */
234 private $tags; 234 private $tags;
235 235
236 /* 236 /**
237 * @var boolean
238 *
239 * @ORM\Column(name="recommended", type="boolean", nullable=true)
240 */
241 private $recommended;
242
243 /**
237 * @param User $user 244 * @param User $user
238 */ 245 */
239 public function __construct(User $user) 246 public function __construct(User $user)
240 { 247 {
241 $this->user = $user; 248 $this->user = $user;
242 $this->tags = new ArrayCollection(); 249 $this->tags = new ArrayCollection();
250 $this->changes = new ArrayCollection();
243 } 251 }
244 252
245 /** 253 /**
@@ -778,4 +786,20 @@ class Entry
778 786
779 return $this; 787 return $this;
780 } 788 }
789
790 /**
791 * @return bool
792 */
793 public function isRecommended()
794 {
795 return $this->recommended;
796 }
797
798 /**
799 * @param bool $recommended
800 */
801 public function setRecommended($recommended)
802 {
803 $this->recommended = $recommended;
804 }
781} 805}