X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FUserBundle%2FEntity%2FUser.php;h=815a1902d080f9f9259669b09b8f478dac0c9506;hb=378aaefbbf60698c7b8faafc20f6b8cb22357e31;hp=53c327f9b92baad663aea08adaf80f4e5f4993f5;hpb=b5d7eb148c4cd62ff187b08765f0c13c7d330fcf;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/UserBundle/Entity/User.php b/src/Wallabag/UserBundle/Entity/User.php index 53c327f9..815a1902 100644 --- a/src/Wallabag/UserBundle/Entity/User.php +++ b/src/Wallabag/UserBundle/Entity/User.php @@ -87,6 +87,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"}) */ @@ -319,4 +324,20 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf return $this->clients->first(); } } + + /** + * @return ArrayCollection + */ + public function getNotifications() + { + return $this->notifications; + } + + /** + * @param ArrayCollection $notifications + */ + public function setNotifications($notifications) + { + $this->notifications = $notifications; + } }