]>
Commit | Line | Data |
---|---|---|
1576905e JB |
1 | <?php |
2 | ||
3 | namespace Wallabag\CoreBundle\Entity; | |
4 | ||
5 | use Craue\ConfigBundle\Entity\BaseSetting; | |
6 | use Doctrine\ORM\Mapping as ORM; | |
7 | ||
8 | /** | |
9 | * InternalSetting. | |
10 | * | |
11 | * Re-define setting so we can override length attribute to fix utf8mb4 issue. | |
12 | * | |
13 | * @ORM\Entity(repositoryClass="Craue\ConfigBundle\Repository\SettingRepository") | |
14 | * @ORM\Table(name="`internal_setting`") | |
15 | * @ORM\AttributeOverrides({ | |
16 | * @ORM\AttributeOverride(name="name", | |
17 | * column=@ORM\Column( | |
18 | * length = 191 | |
19 | * ) | |
20 | * ), | |
21 | * @ORM\AttributeOverride(name="section", | |
22 | * column=@ORM\Column( | |
23 | * length = 191 | |
24 | * ) | |
25 | * ) | |
26 | * }) | |
27 | */ | |
28 | class InternalSetting extends BaseSetting | |
29 | { | |
30 | /** | |
31 | * @var string|null | |
32 | * | |
33 | * @ORM\Column(name="value", type="string", nullable=true, length=191) | |
34 | */ | |
35 | protected $value; | |
36 | } |