diff options
author | Jeremy <jeremy.benoist@gmail.com> | 2015-02-11 21:06:32 +0100 |
---|---|---|
committer | Jeremy <jeremy.benoist@gmail.com> | 2015-02-16 21:31:58 +0100 |
commit | 55f58c9c5e8c523b7547c5d8199f0efef6941b93 (patch) | |
tree | aa7c8e7ad28ac09dc9e5b18183478c4976e70174 /src/Wallabag/CoreBundle/Entity/Config.php | |
parent | 2f6a596760c62efd9e43602f787fa44400d522b3 (diff) | |
download | wallabag-55f58c9c5e8c523b7547c5d8199f0efef6941b93.tar.gz wallabag-55f58c9c5e8c523b7547c5d8199f0efef6941b93.tar.zst wallabag-55f58c9c5e8c523b7547c5d8199f0efef6941b93.zip |
Update UserConfig schema
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Config.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/Config.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Config.php b/src/Wallabag/CoreBundle/Entity/Config.php index 045ca308..14977d32 100644 --- a/src/Wallabag/CoreBundle/Entity/Config.php +++ b/src/Wallabag/CoreBundle/Entity/Config.php | |||
@@ -3,6 +3,7 @@ | |||
3 | namespace Wallabag\CoreBundle\Entity; | 3 | namespace Wallabag\CoreBundle\Entity; |
4 | 4 | ||
5 | use Doctrine\ORM\Mapping as ORM; | 5 | use Doctrine\ORM\Mapping as ORM; |
6 | use Symfony\Component\Validator\Constraints as Assert; | ||
6 | 7 | ||
7 | /** | 8 | /** |
8 | * Config | 9 | * Config |
@@ -15,16 +16,17 @@ class Config | |||
15 | /** | 16 | /** |
16 | * @var integer | 17 | * @var integer |
17 | * | 18 | * |
18 | * @ORM\Column(name="id", type="integer", nullable=false) | 19 | * @ORM\Column(name="id", type="integer") |
19 | * @ORM\Id | 20 | * @ORM\Id |
20 | * @ORM\GeneratedValue(strategy="IDENTITY") | 21 | * @ORM\GeneratedValue(strategy="AUTO") |
21 | */ | 22 | */ |
22 | private $id; | 23 | private $id; |
23 | 24 | ||
24 | /** | 25 | /** |
25 | * @var string | 26 | * @var string |
26 | * | 27 | * |
27 | * @ORM\Column(name="name", type="string", nullable=true) | 28 | * @Assert\NotBlank() |
29 | * @ORM\Column(name="name", type="string", nullable=false) | ||
28 | */ | 30 | */ |
29 | private $name; | 31 | private $name; |
30 | 32 | ||