]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/UserBundle/Entity/User.php
Notifications
[github/wallabag/wallabag.git] / src / Wallabag / UserBundle / Entity / User.php
index 53c327f9b92baad663aea08adaf80f4e5f4993f5..815a1902d080f9f9259669b09b8f478dac0c9506 100644 (file)
@@ -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<NotificationInterface>
+     */
+    public function getNotifications()
+    {
+        return $this->notifications;
+    }
+
+    /**
+     * @param ArrayCollection<NotificationInterface> $notifications
+     */
+    public function setNotifications($notifications)
+    {
+        $this->notifications = $notifications;
+    }
 }