diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-05-21 18:09:38 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-08-22 20:18:27 +0200 |
commit | 9c545fe028013b30417c1a932cd6b9027bff752d (patch) | |
tree | 3de7e843c34d058355a3b3a4c090b61bca9c2078 /src/Wallabag/ApiBundle/Entity/Client.php | |
parent | db4d63fc1ae513335b751beb8f89e1eed61871c2 (diff) | |
download | wallabag-9c545fe028013b30417c1a932cd6b9027bff752d.tar.gz wallabag-9c545fe028013b30417c1a932cd6b9027bff752d.tar.zst wallabag-9c545fe028013b30417c1a932cd6b9027bff752d.zip |
Added name on client
- Fix typos in field name
- Added migration for name field in API client table
Manually cherry-picked from PR
https://github.com/wallabag/wallabag/pull/2171
Diffstat (limited to 'src/Wallabag/ApiBundle/Entity/Client.php')
-rw-r--r-- | src/Wallabag/ApiBundle/Entity/Client.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/Wallabag/ApiBundle/Entity/Client.php b/src/Wallabag/ApiBundle/Entity/Client.php index c04ed0f6..3e2f491c 100644 --- a/src/Wallabag/ApiBundle/Entity/Client.php +++ b/src/Wallabag/ApiBundle/Entity/Client.php | |||
@@ -18,8 +18,39 @@ class Client extends BaseClient | |||
18 | */ | 18 | */ |
19 | protected $id; | 19 | protected $id; |
20 | 20 | ||
21 | /** | ||
22 | * @var string | ||
23 | * | ||
24 | * @ORM\Column(name="name", type="text", nullable=true) | ||
25 | */ | ||
26 | protected $name; | ||
27 | |||
21 | public function __construct() | 28 | public function __construct() |
22 | { | 29 | { |
23 | parent::__construct(); | 30 | parent::__construct(); |
24 | } | 31 | } |
32 | |||
33 | /** | ||
34 | * Get name. | ||
35 | * | ||
36 | * @return string | ||
37 | */ | ||
38 | public function getName() | ||
39 | { | ||
40 | return $this->name; | ||
41 | } | ||
42 | |||
43 | /** | ||
44 | * Set name. | ||
45 | * | ||
46 | * @param string $name | ||
47 | * | ||
48 | * @return Client | ||
49 | */ | ||
50 | public function setName($name) | ||
51 | { | ||
52 | $this->name = $name; | ||
53 | |||
54 | return $this; | ||
55 | } | ||
25 | } | 56 | } |