diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/UsersConfig.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/UsersConfig.php | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/UsersConfig.php b/src/Wallabag/CoreBundle/Entity/UsersConfig.php index 0742edbc..52127631 100644 --- a/src/Wallabag/CoreBundle/Entity/UsersConfig.php +++ b/src/Wallabag/CoreBundle/Entity/UsersConfig.php | |||
@@ -22,11 +22,9 @@ class UsersConfig | |||
22 | private $id; | 22 | private $id; |
23 | 23 | ||
24 | /** | 24 | /** |
25 | * @var string | 25 | * @ORM\ManyToOne(targetEntity="User", inversedBy="config") |
26 | * | ||
27 | * @ORM\Column(name="user_id", type="decimal", precision=10, scale=0, nullable=true) | ||
28 | */ | 26 | */ |
29 | private $userId; | 27 | private $user; |
30 | 28 | ||
31 | /** | 29 | /** |
32 | * @var string | 30 | * @var string |
@@ -53,71 +51,71 @@ class UsersConfig | |||
53 | } | 51 | } |
54 | 52 | ||
55 | /** | 53 | /** |
56 | * Set userId | 54 | * Set name |
57 | * | 55 | * |
58 | * @param string $userId | 56 | * @param string $name |
59 | * @return UsersConfig | 57 | * @return UsersConfig |
60 | */ | 58 | */ |
61 | public function setUserId($userId) | 59 | public function setName($name) |
62 | { | 60 | { |
63 | $this->userId = $userId; | 61 | $this->name = $name; |
64 | 62 | ||
65 | return $this; | 63 | return $this; |
66 | } | 64 | } |
67 | 65 | ||
68 | /** | 66 | /** |
69 | * Get userId | 67 | * Get name |
70 | * | 68 | * |
71 | * @return string | 69 | * @return string |
72 | */ | 70 | */ |
73 | public function getUserId() | 71 | public function getName() |
74 | { | 72 | { |
75 | return $this->userId; | 73 | return $this->name; |
76 | } | 74 | } |
77 | 75 | ||
78 | /** | 76 | /** |
79 | * Set name | 77 | * Set value |
80 | * | 78 | * |
81 | * @param string $name | 79 | * @param string $value |
82 | * @return UsersConfig | 80 | * @return UsersConfig |
83 | */ | 81 | */ |
84 | public function setName($name) | 82 | public function setValue($value) |
85 | { | 83 | { |
86 | $this->name = $name; | 84 | $this->value = $value; |
87 | 85 | ||
88 | return $this; | 86 | return $this; |
89 | } | 87 | } |
90 | 88 | ||
91 | /** | 89 | /** |
92 | * Get name | 90 | * Get value |
93 | * | 91 | * |
94 | * @return string | 92 | * @return string |
95 | */ | 93 | */ |
96 | public function getName() | 94 | public function getValue() |
97 | { | 95 | { |
98 | return $this->name; | 96 | return $this->value; |
99 | } | 97 | } |
100 | 98 | ||
101 | /** | 99 | /** |
102 | * Set value | 100 | * Set user |
103 | * | 101 | * |
104 | * @param string $value | 102 | * @param \Wallabag\CoreBundle\Entity\User $user |
105 | * @return UsersConfig | 103 | * @return UsersConfig |
106 | */ | 104 | */ |
107 | public function setValue($value) | 105 | public function setUser(\Wallabag\CoreBundle\Entity\User $user = null) |
108 | { | 106 | { |
109 | $this->value = $value; | 107 | $this->user = $user; |
110 | 108 | ||
111 | return $this; | 109 | return $this; |
112 | } | 110 | } |
113 | 111 | ||
114 | /** | 112 | /** |
115 | * Get value | 113 | * Get user |
116 | * | 114 | * |
117 | * @return string | 115 | * @return \Wallabag\CoreBundle\Entity\User |
118 | */ | 116 | */ |
119 | public function getValue() | 117 | public function getUser() |
120 | { | 118 | { |
121 | return $this->value; | 119 | return $this->user; |
122 | } | 120 | } |
123 | } | 121 | } |