]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Entity/Config.php
Merge pull request #2788 from Zettt/master
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Entity / Config.php
index bfc2fff87c070fdddb5c79c647c219eea4cb9d79..b902ae2cb2ef00d055d5c6ae5605c413ea8519d2 100644 (file)
@@ -71,7 +71,7 @@ class Config
      * @Assert\Range(
      *      min = 1,
      *      max = 100000,
-     *      maxMessage = "validator.rss_limit_too_hight"
+     *      maxMessage = "validator.rss_limit_too_high"
      * )
      */
     private $rssLimit;
@@ -93,10 +93,17 @@ class Config
     /**
      * @var int
      *
-     * @ORM\Column(name="action_mark_as_read", type="integer", nullable=true)
+     * @ORM\Column(name="action_mark_as_read", type="integer", nullable=true, options={"default" = 0})
      */
     private $actionMarkAsRead;
 
+    /**
+     * @var int
+     *
+     * @ORM\Column(name="list_mode", type="integer", nullable=true)
+     */
+    private $listMode;
+
     /**
      * @ORM\OneToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="config")
      */
@@ -339,6 +346,26 @@ class Config
         return $this;
     }
 
+    /**
+     * @return int
+     */
+    public function getListMode()
+    {
+        return $this->listMode;
+    }
+
+    /**
+     * @param int $listMode
+     *
+     * @return Config
+     */
+    public function setListMode($listMode)
+    {
+        $this->listMode = $listMode;
+
+        return $this;
+    }
+
     /**
      * @param TaggingRule $rule
      *