X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FEntity%2FConfig.php;h=b902ae2cb2ef00d055d5c6ae5605c413ea8519d2;hb=6fb06904ecde15b1b07d0a2af945338b416cf0e2;hp=70364ab684b33638cc5d68286d0342adeb5aa197;hpb=9f01d0fde09fa055a7db9f26e77c5e6b3d6c2224;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Entity/Config.php b/src/Wallabag/CoreBundle/Entity/Config.php index 70364ab6..b902ae2c 100644 --- a/src/Wallabag/CoreBundle/Entity/Config.php +++ b/src/Wallabag/CoreBundle/Entity/Config.php @@ -93,16 +93,16 @@ 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="view_mode", type="integer", nullable=true) + * @ORM\Column(name="list_mode", type="integer", nullable=true) */ - private $viewMode; + private $listMode; /** * @ORM\OneToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="config") @@ -349,19 +349,19 @@ class Config /** * @return int */ - public function getViewMode() + public function getListMode() { - return $this->viewMode; + return $this->listMode; } /** - * @param int $viewMode + * @param int $listMode * * @return Config */ - public function setViewMode($viewMode) + public function setListMode($listMode) { - $this->viewMode = $viewMode; + $this->listMode = $listMode; return $this; }