1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace RssApp\Model; |
||
6 | |||
7 | use Doctrine\ORM\Mapping as ORM; |
||
8 | use RssApp\Model; |
||
9 | |||
10 | /** |
||
11 | * @ORM\Table(indexes={@ORM\Index(name="type_id", columns={"type_id"}), @ORM\Index(name="section_id", columns={"section_id"})}) |
||
12 | * @ORM\Entity |
||
13 | */ |
||
14 | class Preference extends Model |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | * |
||
19 | * @ORM\Column(name="pref_name", type="string", length=250, nullable=false) |
||
20 | * @ORM\Id |
||
21 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
22 | */ |
||
23 | private $prefName; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
24 | |||
25 | /** |
||
26 | * @var int |
||
27 | * |
||
28 | * @ORM\Column(name="access_level", type="integer", nullable=false) |
||
29 | */ |
||
30 | private $accessLevel = 0; |
||
0 ignored issues
–
show
|
|||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | * |
||
35 | * @ORM\Column(name="def_value", type="text", length=65535, nullable=false) |
||
36 | */ |
||
37 | private $defValue; |
||
0 ignored issues
–
show
|
|||
38 | |||
39 | /** |
||
40 | * @var PreferenceType |
||
41 | * |
||
42 | * @ORM\ManyToOne(targetEntity="PreferenceType") |
||
43 | * @ORM\JoinColumns({ |
||
44 | * @ORM\JoinColumn(name="type_id", referencedColumnName="id") |
||
45 | * }) |
||
46 | */ |
||
47 | private $type; |
||
0 ignored issues
–
show
|
|||
48 | |||
49 | /** |
||
50 | * @var PreferenceSection |
||
51 | * |
||
52 | * @ORM\ManyToOne(targetEntity="PreferenceSection") |
||
53 | * @ORM\JoinColumns({ |
||
54 | * @ORM\JoinColumn(name="section_id", referencedColumnName="id") |
||
55 | * }) |
||
56 | */ |
||
57 | private $section; |
||
0 ignored issues
–
show
|
|||
58 | } |
||
59 |