Aldea.php
11.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
<?php
namespace UBV\SurUbvBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* UBV\SurUbvBundle\Entity\Aldea
*
* @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AldeaRepository")
* @ORM\Table(name="aldea", indexes={@ORM\Index(name="fk_aldea_aldea_tipo_idx", columns={"aldea_tipo_id"}), @ORM\Index(name="fk_aldea_ambiente1_idx", columns={"ambiente_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="codigo_sucre_UNIQUE", columns={"codigo_sucre"}), @ORM\UniqueConstraint(name="id_aldea_UNIQUE", columns={"id"})})
*/
class Aldea
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="IDENTITY")
* @ORM\SequenceGenerator(sequenceName="aldea_id_seq", allocationSize=1, initialValue=1)
*/
protected $id;
/**
* @ORM\Column(type="string", length=70)
*/
protected $descripcion;
/**
* @ORM\Column(type="string", length=15, nullable=true)
*/
protected $codigo_sucre;
/**
* @ORM\Column(type="string", length=15, nullable=true)
*/
protected $codigo_aldea;
/**
* @ORM\Column(type="string", length=2)
*/
protected $estatus;
/**
* @ORM\OneToMany(targetEntity="AldeaMallaCurricula", mappedBy="aldea")
* @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false)
*/
protected $aldeaMallaCurriculas;
/**
* @ORM\OneToMany(targetEntity="AldeaPrograma", mappedBy="aldea")
* @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false)
*/
protected $aldeaProgramas;
/**
* @ORM\OneToMany(targetEntity="AldeaTelefono", mappedBy="aldea")
* @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false)
*/
protected $aldeaTelefonos;
/**
* @ORM\OneToMany(targetEntity="Aspirante", mappedBy="aldea")
* @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false)
*/
protected $aspirantes;
/**
* @ORM\OneToMany(targetEntity="Candidato", mappedBy="aldea")
* @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false)
*/
protected $candidatos;
/**
* @ORM\OneToMany(targetEntity="DocenteAldea", mappedBy="aldea")
* @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false)
*/
protected $docenteAldeas;
/**
* @ORM\OneToMany(targetEntity="UnidadAdministrativa", mappedBy="aldea")
* @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false)
*/
protected $unidadAdministrativas;
/**
* @ORM\ManyToOne(targetEntity="AldeaTipo", inversedBy="aldeas")
* @ORM\JoinColumn(name="aldea_tipo_id", referencedColumnName="id", nullable=false)
*/
protected $aldeaTipo;
/**
* @ORM\ManyToOne(targetEntity="Ambiente", inversedBy="aldeas")
* @ORM\JoinColumn(name="ambiente_id", referencedColumnName="id", nullable=false)
*/
protected $ambiente;
public function __construct()
{
$this->aldeaMallaCurriculas = new ArrayCollection();
$this->aldeaProgramas = new ArrayCollection();
$this->aldeaTelefonos = new ArrayCollection();
$this->aspirantes = new ArrayCollection();
$this->docenteAldeas = new ArrayCollection();
$this->unidadAdministrativas = new ArrayCollection();
$this->candidatos = new ArrayCollection();
}
public function __sleep()
{
return array('id', 'descripcion', 'codigo_sucre', 'codigo_aldea', 'estatus', 'aldea_tipo_id', 'ambiente_id');
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set descripcion
*
* @param string $descripcion
* @return Aldea
*/
public function setDescripcion($descripcion)
{
$this->descripcion = $descripcion;
return $this;
}
/**
* Get descripcion
*
* @return string
*/
public function getDescripcion()
{
return $this->descripcion;
}
/**
* Set codigo_sucre
*
* @param string $codigoSucre
* @return Aldea
*/
public function setCodigoSucre($codigoSucre)
{
$this->codigo_sucre = $codigoSucre;
return $this;
}
/**
* Get codigo_sucre
*
* @return string
*/
public function getCodigoSucre()
{
return $this->codigo_sucre;
}
/**
* Set codigo_aldea
*
* @param string $codigoAldea
* @return Aldea
*/
public function setCodigoAldea($codigoAldea)
{
$this->codigo_aldea = $codigoAldea;
return $this;
}
/**
* Get codigo_aldea
*
* @return string
*/
public function getCodigoAldea()
{
return $this->codigo_aldea;
}
/**
* Set estatus
*
* @param string $estatus
* @return Aldea
*/
public function setEstatus($estatus)
{
$this->estatus = $estatus;
return $this;
}
/**
* Get estatus
*
* @return string
*/
public function getEstatus()
{
return $this->estatus;
}
/**
* Add aldeaMallaCurriculas
*
* @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas
* @return Aldea
*/
public function addAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas)
{
$this->aldeaMallaCurriculas[] = $aldeaMallaCurriculas;
return $this;
}
/**
* Remove aldeaMallaCurriculas
*
* @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas
*/
public function removeAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas)
{
$this->aldeaMallaCurriculas->removeElement($aldeaMallaCurriculas);
}
/**
* Get aldeaMallaCurriculas
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getAldeaMallaCurriculas()
{
return $this->aldeaMallaCurriculas;
}
/**
* Add aldeaProgramas
*
* @param \UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas
* @return Aldea
*/
public function addAldeaPrograma(\UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas)
{
$this->aldeaProgramas[] = $aldeaProgramas;
return $this;
}
/**
* Remove aldeaProgramas
*
* @param \UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas
*/
public function removeAldeaPrograma(\UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas)
{
$this->aldeaProgramas->removeElement($aldeaProgramas);
}
/**
* Get aldeaProgramas
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getAldeaProgramas()
{
return $this->aldeaProgramas;
}
/**
* Add aldeaTelefonos
*
* @param \UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos
* @return Aldea
*/
public function addAldeaTelefono(\UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos)
{
$this->aldeaTelefonos[] = $aldeaTelefonos;
return $this;
}
/**
* Remove aldeaTelefonos
*
* @param \UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos
*/
public function removeAldeaTelefono(\UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos)
{
$this->aldeaTelefonos->removeElement($aldeaTelefonos);
}
/**
* Get aldeaTelefonos
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getAldeaTelefonos()
{
return $this->aldeaTelefonos;
}
/**
* Add aspirantes
*
* @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes
* @return Aldea
*/
public function addAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes)
{
$this->aspirantes[] = $aspirantes;
return $this;
}
/**
* Remove aspirantes
*
* @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes
*/
public function removeAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes)
{
$this->aspirantes->removeElement($aspirantes);
}
/**
* Get aspirantes
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getAspirantes()
{
return $this->aspirantes;
}
/**
* Add docenteAldeas
*
* @param \UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas
* @return Aldea
*/
public function addDocenteAldea(\UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas)
{
$this->docenteAldeas[] = $docenteAldeas;
return $this;
}
/**
* Remove docenteAldeas
*
* @param \UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas
*/
public function removeDocenteAldea(\UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas)
{
$this->docenteAldeas->removeElement($docenteAldeas);
}
/**
* Get docenteAldeas
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getDocenteAldeas()
{
return $this->docenteAldeas;
}
/**
* Add unidadAdministrativas
*
* @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas
* @return Aldea
*/
public function addUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas)
{
$this->unidadAdministrativas[] = $unidadAdministrativas;
return $this;
}
/**
* Remove unidadAdministrativas
*
* @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas
*/
public function removeUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas)
{
$this->unidadAdministrativas->removeElement($unidadAdministrativas);
}
/**
* Get unidadAdministrativas
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getUnidadAdministrativas()
{
return $this->unidadAdministrativas;
}
/**
* Set aldeaTipo
*
* @param \UBV\SurUbvBundle\Entity\AldeaTipo $aldeaTipo
* @return Aldea
*/
public function setAldeaTipo(\UBV\SurUbvBundle\Entity\AldeaTipo $aldeaTipo)
{
$this->aldeaTipo = $aldeaTipo;
return $this;
}
/**
* Get aldeaTipo
*
* @return \UBV\SurUbvBundle\Entity\AldeaTipo
*/
public function getAldeaTipo()
{
return $this->aldeaTipo;
}
/**
* Set ambiente
*
* @param \UBV\SurUbvBundle\Entity\Ambiente $ambiente
* @return Aldea
*/
public function setAmbiente(\UBV\SurUbvBundle\Entity\Ambiente $ambiente)
{
$this->ambiente = $ambiente;
return $this;
}
/**
* Get ambiente
*
* @return \UBV\SurUbvBundle\Entity\Ambiente
*/
public function getAmbiente()
{
return $this->ambiente;
}
public function __toString()
{
return $this->getDescripcion();
}
/**
* Add candidatos
*
* @param \UBV\SurUbvBundle\Entity\Candidato $candidatos
* @return Aldea
*/
public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos)
{
$this->candidatos[] = $candidatos;
return $this;
}
/**
* Remove candidatos
*
* @param \UBV\SurUbvBundle\Entity\Candidato $candidatos
*/
public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos)
{
$this->candidatos->removeElement($candidatos);
}
/**
* Get candidatos
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCandidatos()
{
return $this->candidatos;
}
}