*/
private $taggingRules;
+ /**
+ * @ORM\OneToMany(targetEntity="Wallabag\CoreBundle\Entity\IgnoreOriginUserRule", mappedBy="config", cascade={"remove"})
+ * @ORM\OrderBy({"id" = "ASC"})
+ */
+ private $ignoreOriginRules;
+
/*
* @param User $user
*/
{
$this->user = $user;
$this->taggingRules = new ArrayCollection();
+ $this->ignoreOriginRules = new ArrayCollection();
}
/**
{
return $this->taggingRules;
}
+
+ /**
+ * @return Config
+ */
+ public function addIgnoreOriginRule(IgnoreOriginUserRule $rule)
+ {
+ $this->ignoreOriginRules[] = $rule;
+
+ return $this;
+ }
+
+ /**
+ * @return ArrayCollection<IgnoreOriginUserRule>
+ */
+ public function getIgnoreOriginRules()
+ {
+ return $this->ignoreOriginRules;
+ }
}