X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2FWallabag%2FUserBundle%2FEntity%2FUser.php;h=2a8c99263c7233641618fb81943ee017b88d3b73;hb=22a4b20ed04a9c709fbbe3e254ad8b2d7757a38b;hp=3a167de740608567ae03b6e42f88ab8d7d512bf6;hpb=35941d57ee4d06ec3557d4b126d5f6fd263bcf3a;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/UserBundle/Entity/User.php b/src/Wallabag/UserBundle/Entity/User.php index 3a167de7..2a8c9926 100644 --- a/src/Wallabag/UserBundle/Entity/User.php +++ b/src/Wallabag/UserBundle/Entity/User.php @@ -64,6 +64,11 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf */ protected $entries; + /** + * @ORM\OneToMany(targetEntity="Wallabag\CoreBundle\Entity\Notification", mappedBy="user", cascade={"remove"}) + */ + protected $notifications; + /** * @ORM\OneToOne(targetEntity="Wallabag\CoreBundle\Entity\Config", mappedBy="user", cascade={"remove"}) */ @@ -266,4 +271,20 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf { return $this->clients; } + + /** + * @return ArrayCollection + */ + public function getNotifications() + { + return $this->notifications; + } + + /** + * @param ArrayCollection $notifications + */ + public function setNotifications($notifications) + { + $this->notifications = $notifications; + } }