1 | <?php |
||
23 | class Venue extends AbstractPersonalTranslatable implements TranslatableInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var integer |
||
27 | * |
||
28 | * @ORM\Column(name="id", type="integer") |
||
29 | * @ORM\Id |
||
30 | * @ORM\GeneratedValue(strategy="AUTO") |
||
31 | */ |
||
32 | protected $id; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | * @Gedmo\Translatable |
||
37 | * @Assert\NotBlank() |
||
38 | * @ORM\Column(type="string", length=255) |
||
39 | * @Type("string") |
||
40 | * @Expose() |
||
41 | */ |
||
42 | protected $title; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | * @Gedmo\Translatable |
||
47 | * @Assert\NotBlank() |
||
48 | * @ORM\Column(type="string", length=255) |
||
49 | * @Type("string") |
||
50 | * @Expose() |
||
51 | */ |
||
52 | protected $address; |
||
53 | |||
54 | /** |
||
55 | * @var string |
||
56 | * @Gedmo\Translatable |
||
57 | * @Assert\NotBlank() |
||
58 | * @ORM\Column(type="text", nullable=true) |
||
59 | * @Type("string") |
||
60 | * @Expose() |
||
61 | */ |
||
62 | protected $hallTemplate; |
||
63 | |||
64 | /** |
||
65 | * @var ArrayCollection|Translation[] |
||
66 | * |
||
67 | * @ORM\OneToMany( |
||
68 | * targetEntity="AppBundle\Entity\Translations\VenueTranslation", |
||
69 | * mappedBy="object", |
||
70 | * cascade={"persist", "remove"} |
||
71 | * ) |
||
72 | */ |
||
73 | protected $translations; |
||
74 | |||
75 | /** |
||
76 | * @var ArrayCollection|PerformanceEvent[] |
||
77 | * |
||
78 | * @ORM\OneToMany( |
||
79 | * targetEntity="AppBundle\Entity\PerformanceEvent", |
||
80 | * mappedBy="venue", |
||
81 | * cascade={"persist"}, |
||
82 | * orphanRemoval=true |
||
83 | * ) |
||
84 | */ |
||
85 | protected $performanceEvents; |
||
86 | |||
87 | /** |
||
88 | * @var ArrayCollection|VenueSector[] |
||
89 | * |
||
90 | * @ORM\OneToMany( |
||
91 | * targetEntity="AppBundle\Entity\VenueSector", |
||
92 | * mappedBy="object", |
||
93 | * cascade={"persist", "remove"} |
||
94 | * ) |
||
95 | */ |
||
96 | protected $venueSector; |
||
97 | |||
98 | /** |
||
99 | * @var ArrayCollection|PriceCategory[] |
||
100 | * |
||
101 | * @ORM\OneToMany( |
||
102 | * targetEntity="AppBundle\Entity\PriceCategory", |
||
103 | * mappedBy="object", |
||
104 | * cascade={"persist", "remove"} |
||
105 | * ) |
||
106 | */ |
||
107 | protected $priceCategory; |
||
108 | |||
109 | /** |
||
110 | * Venue constructor. |
||
111 | */ |
||
112 | public function __construct() |
||
119 | |||
120 | /** |
||
121 | * @return integer |
||
122 | */ |
||
123 | public function getId() |
||
127 | |||
128 | /** |
||
129 | * @return Venue |
||
130 | */ |
||
131 | 1 | public function unsetTranslations() |
|
137 | |||
138 | /** |
||
139 | * @return string |
||
140 | */ |
||
141 | public function getTitle() |
||
145 | |||
146 | /** |
||
147 | * @param string $title |
||
148 | * @return Venue |
||
149 | */ |
||
150 | public function setTitle($title) |
||
156 | |||
157 | /** |
||
158 | * @return string |
||
159 | */ |
||
160 | public function getAddress() |
||
164 | |||
165 | /** |
||
166 | * @param string $address |
||
167 | * @return Venue |
||
168 | */ |
||
169 | public function setAddress($address) |
||
175 | |||
176 | /** |
||
177 | * @return string |
||
178 | */ |
||
179 | public function getHallTemplate() |
||
183 | |||
184 | /** |
||
185 | * @param string $hallTemplate |
||
186 | * @return Venue |
||
187 | */ |
||
188 | public function setHallTemplate($hallTemplate) |
||
194 | |||
195 | /** |
||
196 | * @param PerformanceEvent $performanceEvent |
||
197 | * @return Venue |
||
198 | */ |
||
199 | public function addPerformanceEvent(PerformanceEvent $performanceEvent) |
||
205 | |||
206 | /** |
||
207 | * @param PerformanceEvent $performanceEvent |
||
208 | */ |
||
209 | public function removePerformanceEvent(PerformanceEvent $performanceEvent) |
||
213 | |||
214 | /** |
||
215 | * @return Collection |
||
216 | */ |
||
217 | public function getPerformanceEvents() |
||
221 | |||
222 | /** |
||
223 | * @param VenueSector $venueSector |
||
224 | * @return Venue |
||
225 | */ |
||
226 | public function addVenueSector(VenueSector $venueSector) |
||
232 | |||
233 | /** |
||
234 | * @param VenueSector $venueSector |
||
235 | */ |
||
236 | public function removeVenueSector(VenueSector $venueSector) |
||
240 | |||
241 | /** |
||
242 | * @return Collection |
||
243 | */ |
||
244 | public function getVenueSector() |
||
248 | |||
249 | |||
250 | /** |
||
251 | * @param PriceCategory $priceCategory |
||
252 | * @return Venue |
||
253 | */ |
||
254 | public function addPriceCategory(PriceCategory $priceCategory) |
||
260 | |||
261 | /** |
||
262 | * @param PriceCategory $priceCategory |
||
263 | */ |
||
264 | public function removePriceCategory(PriceCategory $priceCategory) |
||
268 | |||
269 | /** |
||
270 | * @return Collection |
||
271 | */ |
||
272 | public function getPriceCategory() |
||
276 | |||
277 | /** |
||
278 | * @return string |
||
279 | */ |
||
280 | public function __toString() |
||
284 | } |
||
285 |