1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Cdf\BiCoreBundle\Entity; |
4
|
|
|
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Cdf\BiCoreBundle\Entity\Colonnetabelle. |
9
|
|
|
* |
10
|
|
|
* @ORM\Entity() |
11
|
|
|
* @ORM\Table(name="Colonnetabelle", indexes={@ORM\Index(name="fk_Colonnetabelle_Operatori1_idx", columns={"operatori_id"})}) |
12
|
|
|
* @ORM\InheritanceType("SINGLE_TABLE") |
13
|
|
|
* @ORM\DiscriminatorColumn(name="discr", type="string") |
14
|
|
|
* @ORM\DiscriminatorMap({"base":"BaseColonnetabelle", "extended":"Colonnetabelle"}) |
15
|
|
|
* @SuppressWarnings(PHPMD) |
16
|
|
|
*/ |
17
|
|
|
class BaseColonnetabelle |
18
|
|
|
{ |
19
|
|
|
/** |
20
|
|
|
* @ORM\Id |
21
|
|
|
* @ORM\Column(type="integer") |
22
|
|
|
* @ORM\GeneratedValue(strategy="AUTO") |
23
|
|
|
*/ |
24
|
|
|
protected $id; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @ORM\Column(type="string", length=45, nullable=true) |
28
|
|
|
*/ |
29
|
|
|
protected $nometabella; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @ORM\Column(type="string", length=45, nullable=true) |
33
|
|
|
*/ |
34
|
|
|
protected $nomecampo; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @ORM\Column(type="boolean", nullable=true, options={"default":true}) |
38
|
|
|
*/ |
39
|
|
|
protected $mostraindex; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @ORM\Column(type="integer", nullable=true) |
43
|
|
|
*/ |
44
|
|
|
protected $ordineindex; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @ORM\Column(type="integer", nullable=true) |
48
|
|
|
*/ |
49
|
|
|
protected $larghezzaindex; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @ORM\Column(type="string", length=255, nullable=true) |
53
|
|
|
*/ |
54
|
|
|
protected $etichettaindex; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @ORM\Column(type="boolean", nullable=true, options={"default":false}) |
58
|
|
|
*/ |
59
|
|
|
protected $registrastorico; |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @ORM\Column(type="boolean", nullable=true, options={"default":true}) |
63
|
|
|
*/ |
64
|
|
|
protected $editabile; |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @ORM\Column(type="integer", nullable=true) |
68
|
|
|
*/ |
69
|
|
|
protected $operatori_id; |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @ORM\ManyToOne(targetEntity="Operatori", inversedBy="colonnetabelles") |
73
|
|
|
* @ORM\JoinColumn(name="operatori_id", referencedColumnName="id", nullable=false) |
74
|
|
|
*/ |
75
|
|
|
protected $operatori; |
76
|
|
|
|
77
|
4 |
|
public function __construct() |
78
|
|
|
{ |
79
|
4 |
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* Set the value of id. |
83
|
|
|
* |
84
|
|
|
* @param int $id |
85
|
|
|
* |
86
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Colonnetabelle |
87
|
|
|
*/ |
88
|
|
|
public function setId($id) |
89
|
|
|
{ |
90
|
|
|
$this->id = $id; |
91
|
|
|
|
92
|
|
|
return $this; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* Get the value of id. |
97
|
|
|
* |
98
|
|
|
* @return int |
99
|
|
|
*/ |
100
|
3 |
|
public function getId() |
101
|
|
|
{ |
102
|
3 |
|
return $this->id; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* Set the value of nometabella. |
107
|
|
|
* |
108
|
|
|
* @param string $nometabella |
109
|
|
|
* |
110
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Colonnetabelle |
111
|
|
|
*/ |
112
|
4 |
|
public function setNometabella($nometabella) |
113
|
|
|
{ |
114
|
4 |
|
$this->nometabella = $nometabella; |
115
|
|
|
|
116
|
4 |
|
return $this; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* Get the value of nometabella. |
121
|
|
|
* |
122
|
|
|
* @return string |
123
|
|
|
*/ |
124
|
5 |
|
public function getNometabella() |
125
|
|
|
{ |
126
|
5 |
|
return $this->nometabella; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* Set the value of nomecampo. |
131
|
|
|
* |
132
|
|
|
* @param string $nomecampo |
133
|
|
|
* |
134
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Colonnetabelle |
135
|
|
|
*/ |
136
|
2 |
|
public function setNomecampo($nomecampo) |
137
|
|
|
{ |
138
|
2 |
|
$this->nomecampo = $nomecampo; |
139
|
|
|
|
140
|
2 |
|
return $this; |
141
|
|
|
} |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* Get the value of nomecampo. |
145
|
|
|
* |
146
|
|
|
* @return string |
147
|
|
|
*/ |
148
|
5 |
|
public function getNomecampo() |
149
|
|
|
{ |
150
|
5 |
|
return $this->nomecampo; |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
/** |
154
|
|
|
* Set the value of mostraindex. |
155
|
|
|
* |
156
|
|
|
* @param bool $mostraindex |
157
|
|
|
* |
158
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Colonnetabelle |
159
|
|
|
*/ |
160
|
3 |
|
public function setMostraindex($mostraindex) |
161
|
|
|
{ |
162
|
3 |
|
$this->mostraindex = $mostraindex; |
163
|
|
|
|
164
|
3 |
|
return $this; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* Get the value of mostraindex. |
169
|
|
|
* |
170
|
|
|
* @return bool |
171
|
|
|
*/ |
172
|
4 |
|
public function getMostraindex() |
173
|
|
|
{ |
174
|
4 |
|
return $this->mostraindex; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* Set the value of ordineindex. |
179
|
|
|
* |
180
|
|
|
* @param int $ordineindex |
181
|
|
|
* |
182
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Colonnetabelle |
183
|
|
|
*/ |
184
|
2 |
|
public function setOrdineindex($ordineindex) |
185
|
|
|
{ |
186
|
2 |
|
$this->ordineindex = $ordineindex; |
187
|
|
|
|
188
|
2 |
|
return $this; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* Get the value of ordineindex. |
193
|
|
|
* |
194
|
|
|
* @return int |
195
|
|
|
*/ |
196
|
5 |
|
public function getOrdineindex() |
197
|
|
|
{ |
198
|
5 |
|
return $this->ordineindex; |
199
|
|
|
} |
200
|
|
|
|
201
|
|
|
/** |
202
|
|
|
* Set the value of larghezzaindex. |
203
|
|
|
* |
204
|
|
|
* @param int $larghezzaindex |
205
|
|
|
* |
206
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Colonnetabelle |
207
|
|
|
*/ |
208
|
2 |
|
public function setLarghezzaindex($larghezzaindex) |
209
|
|
|
{ |
210
|
2 |
|
$this->larghezzaindex = $larghezzaindex; |
211
|
|
|
|
212
|
2 |
|
return $this; |
213
|
|
|
} |
214
|
|
|
|
215
|
|
|
/** |
216
|
|
|
* Get the value of larghezzaindex. |
217
|
|
|
* |
218
|
|
|
* @return int |
219
|
|
|
*/ |
220
|
5 |
|
public function getLarghezzaindex() |
221
|
|
|
{ |
222
|
5 |
|
return $this->larghezzaindex; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
/** |
226
|
|
|
* Set the value of etichettaindex. |
227
|
|
|
* |
228
|
|
|
* @param string $etichettaindex |
229
|
|
|
* |
230
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Colonnetabelle |
231
|
|
|
*/ |
232
|
2 |
|
public function setEtichettaindex($etichettaindex) |
233
|
|
|
{ |
234
|
2 |
|
$this->etichettaindex = $etichettaindex; |
235
|
|
|
|
236
|
2 |
|
return $this; |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
/** |
240
|
|
|
* Get the value of etichettaindex. |
241
|
|
|
* |
242
|
|
|
* @return string |
243
|
|
|
*/ |
244
|
5 |
|
public function getEtichettaindex() |
245
|
|
|
{ |
246
|
5 |
|
return $this->etichettaindex; |
247
|
|
|
} |
248
|
|
|
|
249
|
|
|
/** |
250
|
|
|
* Set the value of registrastorico. |
251
|
|
|
* |
252
|
|
|
* @param bool $registrastorico |
253
|
|
|
* |
254
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Colonnetabelle |
255
|
|
|
*/ |
256
|
3 |
|
public function setRegistrastorico($registrastorico) |
257
|
|
|
{ |
258
|
3 |
|
$this->registrastorico = $registrastorico; |
259
|
|
|
|
260
|
3 |
|
return $this; |
261
|
|
|
} |
262
|
|
|
|
263
|
|
|
/** |
264
|
|
|
* Get the value of registrastorico. |
265
|
|
|
* |
266
|
|
|
* @return bool |
267
|
|
|
*/ |
268
|
4 |
|
public function getRegistrastorico() |
269
|
|
|
{ |
270
|
4 |
|
return $this->registrastorico; |
271
|
|
|
} |
272
|
|
|
|
273
|
|
|
/** |
274
|
|
|
* Set the value of editabile. |
275
|
|
|
* |
276
|
|
|
* @param bool $editabile |
277
|
|
|
* |
278
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Colonnetabelle |
279
|
|
|
*/ |
280
|
3 |
|
public function setEditabile($editabile) |
281
|
|
|
{ |
282
|
3 |
|
$this->editabile = $editabile; |
283
|
|
|
|
284
|
3 |
|
return $this; |
285
|
|
|
} |
286
|
|
|
|
287
|
|
|
/** |
288
|
|
|
* Get the value of editabile. |
289
|
|
|
* |
290
|
|
|
* @return bool |
291
|
|
|
*/ |
292
|
5 |
|
public function getEditabile() |
293
|
|
|
{ |
294
|
5 |
|
return $this->editabile; |
295
|
|
|
} |
296
|
|
|
|
297
|
|
|
/** |
298
|
|
|
* Set the value of operatori_id. |
299
|
|
|
* |
300
|
|
|
* @param int $operatori_id |
301
|
|
|
* |
302
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Colonnetabelle |
303
|
|
|
*/ |
304
|
|
|
public function setOperatoriId($operatori_id) |
305
|
|
|
{ |
306
|
|
|
$this->operatori_id = $operatori_id; |
307
|
|
|
|
308
|
|
|
return $this; |
309
|
|
|
} |
310
|
|
|
|
311
|
|
|
/** |
312
|
|
|
* Get the value of operatori_id. |
313
|
|
|
* |
314
|
|
|
* @return int |
315
|
|
|
*/ |
316
|
1 |
|
public function getOperatoriId() |
317
|
|
|
{ |
318
|
1 |
|
return $this->operatori_id; |
319
|
|
|
} |
320
|
|
|
|
321
|
|
|
/** |
322
|
|
|
* Set Operatori entity (many to one). |
323
|
|
|
* |
324
|
|
|
* @param \Cdf\BiCoreBundle\Entity\Operatori $operatori |
325
|
|
|
* |
326
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Colonnetabelle |
327
|
|
|
*/ |
328
|
|
|
public function setOperatori(Operatori $operatori = null) |
329
|
|
|
{ |
330
|
|
|
$this->operatori = $operatori; |
331
|
|
|
|
332
|
|
|
return $this; |
333
|
|
|
} |
334
|
|
|
|
335
|
|
|
/** |
336
|
|
|
* Get Operatori entity (many to one). |
337
|
|
|
* |
338
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Operatori |
339
|
|
|
*/ |
340
|
1 |
|
public function getOperatori() |
341
|
|
|
{ |
342
|
1 |
|
return $this->operatori; |
343
|
|
|
} |
344
|
|
|
|
345
|
|
|
public function __sleep() |
346
|
|
|
{ |
347
|
|
|
return array('id', 'nometabella', 'nomecampo', 'mostraindex', 'ordineindex', 'larghezzaindex', 'etichettaindex', 'editabile', 'registrastorico', 'operatori_id'); |
348
|
|
|
} |
349
|
|
|
} |
350
|
|
|
|