1 | <?php |
||
26 | class RowsForSale extends AbstractPersonalTranslatable implements TranslatableInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var integer |
||
30 | * |
||
31 | * @ORM\Column(name="id", type="integer") |
||
32 | * @ORM\Id |
||
33 | * @ORM\GeneratedValue(strategy="AUTO") |
||
34 | */ |
||
35 | protected $id; |
||
36 | |||
37 | /** |
||
38 | * @var integer |
||
39 | * @Assert\NotBlank() |
||
40 | * |
||
41 | * @ORM\Column(name="row", type="integer") |
||
42 | * |
||
43 | * @Serializer\Groups({"get_ticket", "cget_ticket"}) |
||
44 | * @Type("integer") |
||
45 | * @Expose() |
||
46 | */ |
||
47 | protected $row; |
||
48 | |||
49 | /** |
||
50 | * @var VenueSector |
||
51 | * |
||
52 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\VenueSector") |
||
53 | * @Type("AppBundle\Entity\VenueSector") |
||
54 | * @Expose() |
||
55 | */ |
||
56 | protected $venueSector; |
||
57 | |||
58 | /** |
||
59 | * @var Collection |
||
60 | * |
||
61 | * @ORM\ManyToMany( |
||
62 | * targetEntity="AppBundle\Entity\PerformanceEvent", |
||
63 | * mappedBy="rowsForSale", |
||
64 | * cascade={"persist","detach","merge"} |
||
65 | * ) |
||
66 | */ |
||
67 | protected $performanceEvent; |
||
68 | |||
69 | /** |
||
70 | * @var ArrayCollection|Translation[] |
||
71 | * |
||
72 | * @ORM\OneToMany( |
||
73 | * targetEntity="AppBundle\Entity\Translations\RowsForSaleTranslation", |
||
74 | * mappedBy="object", |
||
75 | * cascade={"persist", "remove"} |
||
76 | * ) |
||
77 | */ |
||
78 | protected $translations; |
||
79 | |||
80 | |||
81 | /** |
||
82 | * @return Collection |
||
83 | */ |
||
84 | public function getPerformanceEvent() |
||
88 | |||
89 | /** |
||
90 | * @return VenueSector |
||
91 | */ |
||
92 | public function getVenueSector() |
||
96 | |||
97 | /** |
||
98 | * @param VenueSector $venueSector |
||
99 | */ |
||
100 | public function setVenueSector($venueSector) |
||
104 | |||
105 | /** |
||
106 | * @return int |
||
107 | */ |
||
108 | public function getRow() |
||
112 | |||
113 | /** |
||
114 | * @param int $row |
||
115 | */ |
||
116 | public function setRow($row) |
||
120 | |||
121 | /** |
||
122 | * @return int |
||
123 | */ |
||
124 | public function getId() |
||
128 | |||
129 | public function __toString() |
||
133 | } |
||
134 |