Commit 63fa79cb2c8841d2d24d74ebec3cc3498be52f00
1 parent
0df4353688
Exists in
feature/pruebas
and in
8 other branches
modificaciones
Showing
185 changed files
with
0 additions
and
21378 deletions
Show diff stats
Too many changes.
To preserve performance only 100 of 185 files displayed.
src/UBV/PracticaBundle/Entity/Aldea.php
... | ... | @@ -1,497 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\Aldea | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AldeaRepository") | |
12 | - * @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"})}) | |
13 | - */ | |
14 | -class Aldea | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="aldea_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=70) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\Column(type="string", length=15, nullable=true) | |
31 | - */ | |
32 | - protected $codigo_sucre; | |
33 | - | |
34 | - /** | |
35 | - * @ORM\Column(type="string", length=15, nullable=true) | |
36 | - */ | |
37 | - protected $codigo_aldea; | |
38 | - | |
39 | - /** | |
40 | - * @ORM\Column(type="string", length=2) | |
41 | - */ | |
42 | - protected $estatus; | |
43 | - | |
44 | - /** | |
45 | - * @ORM\OneToMany(targetEntity="AldeaMallaCurricula", mappedBy="aldea") | |
46 | - * @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false) | |
47 | - */ | |
48 | - protected $aldeaMallaCurriculas; | |
49 | - | |
50 | - /** | |
51 | - * @ORM\OneToMany(targetEntity="AldeaPrograma", mappedBy="aldea") | |
52 | - * @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false) | |
53 | - */ | |
54 | - protected $aldeaProgramas; | |
55 | - | |
56 | - /** | |
57 | - * @ORM\OneToMany(targetEntity="AldeaTelefono", mappedBy="aldea") | |
58 | - * @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false) | |
59 | - */ | |
60 | - protected $aldeaTelefonos; | |
61 | - | |
62 | - /** | |
63 | - * @ORM\OneToMany(targetEntity="Aspirante", mappedBy="aldea") | |
64 | - * @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false) | |
65 | - */ | |
66 | - protected $aspirantes; | |
67 | - | |
68 | - /** | |
69 | - * @ORM\OneToMany(targetEntity="Candidato", mappedBy="aldea") | |
70 | - * @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false) | |
71 | - */ | |
72 | - protected $candidatos; | |
73 | - | |
74 | - /** | |
75 | - * @ORM\OneToMany(targetEntity="DocenteAldea", mappedBy="aldea") | |
76 | - * @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false) | |
77 | - */ | |
78 | - protected $docenteAldeas; | |
79 | - | |
80 | - /** | |
81 | - * @ORM\OneToMany(targetEntity="UnidadAdministrativa", mappedBy="aldea") | |
82 | - * @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false) | |
83 | - */ | |
84 | - protected $unidadAdministrativas; | |
85 | - | |
86 | - /** | |
87 | - * @ORM\ManyToOne(targetEntity="AldeaTipo", inversedBy="aldeas") | |
88 | - * @ORM\JoinColumn(name="aldea_tipo_id", referencedColumnName="id", nullable=false) | |
89 | - */ | |
90 | - protected $aldeaTipo; | |
91 | - | |
92 | - /** | |
93 | - * @ORM\ManyToOne(targetEntity="Ambiente", inversedBy="aldeas") | |
94 | - * @ORM\JoinColumn(name="ambiente_id", referencedColumnName="id", nullable=false) | |
95 | - */ | |
96 | - protected $ambiente; | |
97 | - | |
98 | - public function __construct() | |
99 | - { | |
100 | - $this->aldeaMallaCurriculas = new ArrayCollection(); | |
101 | - $this->aldeaProgramas = new ArrayCollection(); | |
102 | - $this->aldeaTelefonos = new ArrayCollection(); | |
103 | - $this->aspirantes = new ArrayCollection(); | |
104 | - $this->docenteAldeas = new ArrayCollection(); | |
105 | - $this->unidadAdministrativas = new ArrayCollection(); | |
106 | - $this->candidatos = new ArrayCollection(); | |
107 | - } | |
108 | - | |
109 | - public function __sleep() | |
110 | - { | |
111 | - return array('id', 'descripcion', 'codigo_sucre', 'codigo_aldea', 'estatus', 'aldea_tipo_id', 'ambiente_id'); | |
112 | - } | |
113 | - | |
114 | - /** | |
115 | - * Get id | |
116 | - * | |
117 | - * @return integer | |
118 | - */ | |
119 | - public function getId() | |
120 | - { | |
121 | - return $this->id; | |
122 | - } | |
123 | - | |
124 | - /** | |
125 | - * Set descripcion | |
126 | - * | |
127 | - * @param string $descripcion | |
128 | - * @return Aldea | |
129 | - */ | |
130 | - public function setDescripcion($descripcion) | |
131 | - { | |
132 | - $this->descripcion = $descripcion; | |
133 | - | |
134 | - return $this; | |
135 | - } | |
136 | - | |
137 | - /** | |
138 | - * Get descripcion | |
139 | - * | |
140 | - * @return string | |
141 | - */ | |
142 | - public function getDescripcion() | |
143 | - { | |
144 | - return $this->descripcion; | |
145 | - } | |
146 | - | |
147 | - /** | |
148 | - * Set codigo_sucre | |
149 | - * | |
150 | - * @param string $codigoSucre | |
151 | - * @return Aldea | |
152 | - */ | |
153 | - public function setCodigoSucre($codigoSucre) | |
154 | - { | |
155 | - $this->codigo_sucre = $codigoSucre; | |
156 | - | |
157 | - return $this; | |
158 | - } | |
159 | - | |
160 | - /** | |
161 | - * Get codigo_sucre | |
162 | - * | |
163 | - * @return string | |
164 | - */ | |
165 | - public function getCodigoSucre() | |
166 | - { | |
167 | - return $this->codigo_sucre; | |
168 | - } | |
169 | - | |
170 | - /** | |
171 | - * Set codigo_aldea | |
172 | - * | |
173 | - * @param string $codigoAldea | |
174 | - * @return Aldea | |
175 | - */ | |
176 | - public function setCodigoAldea($codigoAldea) | |
177 | - { | |
178 | - $this->codigo_aldea = $codigoAldea; | |
179 | - | |
180 | - return $this; | |
181 | - } | |
182 | - | |
183 | - /** | |
184 | - * Get codigo_aldea | |
185 | - * | |
186 | - * @return string | |
187 | - */ | |
188 | - public function getCodigoAldea() | |
189 | - { | |
190 | - return $this->codigo_aldea; | |
191 | - } | |
192 | - | |
193 | - /** | |
194 | - * Set estatus | |
195 | - * | |
196 | - * @param string $estatus | |
197 | - * @return Aldea | |
198 | - */ | |
199 | - public function setEstatus($estatus) | |
200 | - { | |
201 | - $this->estatus = $estatus; | |
202 | - | |
203 | - return $this; | |
204 | - } | |
205 | - | |
206 | - /** | |
207 | - * Get estatus | |
208 | - * | |
209 | - * @return string | |
210 | - */ | |
211 | - public function getEstatus() | |
212 | - { | |
213 | - return $this->estatus; | |
214 | - } | |
215 | - | |
216 | - /** | |
217 | - * Add aldeaMallaCurriculas | |
218 | - * | |
219 | - * @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas | |
220 | - * @return Aldea | |
221 | - */ | |
222 | - public function addAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas) | |
223 | - { | |
224 | - $this->aldeaMallaCurriculas[] = $aldeaMallaCurriculas; | |
225 | - | |
226 | - return $this; | |
227 | - } | |
228 | - | |
229 | - /** | |
230 | - * Remove aldeaMallaCurriculas | |
231 | - * | |
232 | - * @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas | |
233 | - */ | |
234 | - public function removeAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas) | |
235 | - { | |
236 | - $this->aldeaMallaCurriculas->removeElement($aldeaMallaCurriculas); | |
237 | - } | |
238 | - | |
239 | - /** | |
240 | - * Get aldeaMallaCurriculas | |
241 | - * | |
242 | - * @return \Doctrine\Common\Collections\Collection | |
243 | - */ | |
244 | - public function getAldeaMallaCurriculas() | |
245 | - { | |
246 | - return $this->aldeaMallaCurriculas; | |
247 | - } | |
248 | - | |
249 | - /** | |
250 | - * Add aldeaProgramas | |
251 | - * | |
252 | - * @param \UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas | |
253 | - * @return Aldea | |
254 | - */ | |
255 | - public function addAldeaPrograma(\UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas) | |
256 | - { | |
257 | - $this->aldeaProgramas[] = $aldeaProgramas; | |
258 | - | |
259 | - return $this; | |
260 | - } | |
261 | - | |
262 | - /** | |
263 | - * Remove aldeaProgramas | |
264 | - * | |
265 | - * @param \UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas | |
266 | - */ | |
267 | - public function removeAldeaPrograma(\UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas) | |
268 | - { | |
269 | - $this->aldeaProgramas->removeElement($aldeaProgramas); | |
270 | - } | |
271 | - | |
272 | - /** | |
273 | - * Get aldeaProgramas | |
274 | - * | |
275 | - * @return \Doctrine\Common\Collections\Collection | |
276 | - */ | |
277 | - public function getAldeaProgramas() | |
278 | - { | |
279 | - return $this->aldeaProgramas; | |
280 | - } | |
281 | - | |
282 | - /** | |
283 | - * Add aldeaTelefonos | |
284 | - * | |
285 | - * @param \UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos | |
286 | - * @return Aldea | |
287 | - */ | |
288 | - public function addAldeaTelefono(\UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos) | |
289 | - { | |
290 | - $this->aldeaTelefonos[] = $aldeaTelefonos; | |
291 | - | |
292 | - return $this; | |
293 | - } | |
294 | - | |
295 | - /** | |
296 | - * Remove aldeaTelefonos | |
297 | - * | |
298 | - * @param \UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos | |
299 | - */ | |
300 | - public function removeAldeaTelefono(\UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos) | |
301 | - { | |
302 | - $this->aldeaTelefonos->removeElement($aldeaTelefonos); | |
303 | - } | |
304 | - | |
305 | - /** | |
306 | - * Get aldeaTelefonos | |
307 | - * | |
308 | - * @return \Doctrine\Common\Collections\Collection | |
309 | - */ | |
310 | - public function getAldeaTelefonos() | |
311 | - { | |
312 | - return $this->aldeaTelefonos; | |
313 | - } | |
314 | - | |
315 | - /** | |
316 | - * Add aspirantes | |
317 | - * | |
318 | - * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes | |
319 | - * @return Aldea | |
320 | - */ | |
321 | - public function addAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) | |
322 | - { | |
323 | - $this->aspirantes[] = $aspirantes; | |
324 | - | |
325 | - return $this; | |
326 | - } | |
327 | - | |
328 | - /** | |
329 | - * Remove aspirantes | |
330 | - * | |
331 | - * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes | |
332 | - */ | |
333 | - public function removeAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) | |
334 | - { | |
335 | - $this->aspirantes->removeElement($aspirantes); | |
336 | - } | |
337 | - | |
338 | - /** | |
339 | - * Get aspirantes | |
340 | - * | |
341 | - * @return \Doctrine\Common\Collections\Collection | |
342 | - */ | |
343 | - public function getAspirantes() | |
344 | - { | |
345 | - return $this->aspirantes; | |
346 | - } | |
347 | - | |
348 | - /** | |
349 | - * Add docenteAldeas | |
350 | - * | |
351 | - * @param \UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas | |
352 | - * @return Aldea | |
353 | - */ | |
354 | - public function addDocenteAldea(\UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas) | |
355 | - { | |
356 | - $this->docenteAldeas[] = $docenteAldeas; | |
357 | - | |
358 | - return $this; | |
359 | - } | |
360 | - | |
361 | - /** | |
362 | - * Remove docenteAldeas | |
363 | - * | |
364 | - * @param \UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas | |
365 | - */ | |
366 | - public function removeDocenteAldea(\UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas) | |
367 | - { | |
368 | - $this->docenteAldeas->removeElement($docenteAldeas); | |
369 | - } | |
370 | - | |
371 | - /** | |
372 | - * Get docenteAldeas | |
373 | - * | |
374 | - * @return \Doctrine\Common\Collections\Collection | |
375 | - */ | |
376 | - public function getDocenteAldeas() | |
377 | - { | |
378 | - return $this->docenteAldeas; | |
379 | - } | |
380 | - | |
381 | - /** | |
382 | - * Add unidadAdministrativas | |
383 | - * | |
384 | - * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas | |
385 | - * @return Aldea | |
386 | - */ | |
387 | - public function addUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas) | |
388 | - { | |
389 | - $this->unidadAdministrativas[] = $unidadAdministrativas; | |
390 | - | |
391 | - return $this; | |
392 | - } | |
393 | - | |
394 | - /** | |
395 | - * Remove unidadAdministrativas | |
396 | - * | |
397 | - * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas | |
398 | - */ | |
399 | - public function removeUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas) | |
400 | - { | |
401 | - $this->unidadAdministrativas->removeElement($unidadAdministrativas); | |
402 | - } | |
403 | - | |
404 | - /** | |
405 | - * Get unidadAdministrativas | |
406 | - * | |
407 | - * @return \Doctrine\Common\Collections\Collection | |
408 | - */ | |
409 | - public function getUnidadAdministrativas() | |
410 | - { | |
411 | - return $this->unidadAdministrativas; | |
412 | - } | |
413 | - | |
414 | - /** | |
415 | - * Set aldeaTipo | |
416 | - * | |
417 | - * @param \UBV\SurUbvBundle\Entity\AldeaTipo $aldeaTipo | |
418 | - * @return Aldea | |
419 | - */ | |
420 | - public function setAldeaTipo(\UBV\SurUbvBundle\Entity\AldeaTipo $aldeaTipo) | |
421 | - { | |
422 | - $this->aldeaTipo = $aldeaTipo; | |
423 | - | |
424 | - return $this; | |
425 | - } | |
426 | - | |
427 | - /** | |
428 | - * Get aldeaTipo | |
429 | - * | |
430 | - * @return \UBV\SurUbvBundle\Entity\AldeaTipo | |
431 | - */ | |
432 | - public function getAldeaTipo() | |
433 | - { | |
434 | - return $this->aldeaTipo; | |
435 | - } | |
436 | - | |
437 | - /** | |
438 | - * Set ambiente | |
439 | - * | |
440 | - * @param \UBV\SurUbvBundle\Entity\Ambiente $ambiente | |
441 | - * @return Aldea | |
442 | - */ | |
443 | - public function setAmbiente(\UBV\SurUbvBundle\Entity\Ambiente $ambiente) | |
444 | - { | |
445 | - $this->ambiente = $ambiente; | |
446 | - | |
447 | - return $this; | |
448 | - } | |
449 | - | |
450 | - /** | |
451 | - * Get ambiente | |
452 | - * | |
453 | - * @return \UBV\SurUbvBundle\Entity\Ambiente | |
454 | - */ | |
455 | - public function getAmbiente() | |
456 | - { | |
457 | - return $this->ambiente; | |
458 | - } | |
459 | - | |
460 | - public function __toString() | |
461 | - { | |
462 | - return $this->getDescripcion(); | |
463 | - } | |
464 | - | |
465 | - /** | |
466 | - * Add candidatos | |
467 | - * | |
468 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
469 | - * @return Aldea | |
470 | - */ | |
471 | - public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
472 | - { | |
473 | - $this->candidatos[] = $candidatos; | |
474 | - | |
475 | - return $this; | |
476 | - } | |
477 | - | |
478 | - /** | |
479 | - * Remove candidatos | |
480 | - * | |
481 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
482 | - */ | |
483 | - public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
484 | - { | |
485 | - $this->candidatos->removeElement($candidatos); | |
486 | - } | |
487 | - | |
488 | - /** | |
489 | - * Get candidatos | |
490 | - * | |
491 | - * @return \Doctrine\Common\Collections\Collection | |
492 | - */ | |
493 | - public function getCandidatos() | |
494 | - { | |
495 | - return $this->candidatos; | |
496 | - } | |
497 | -} |
src/UBV/PracticaBundle/Entity/AldeaMallaCurricula.php
... | ... | @@ -1,237 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\AldeaMallaCurricula | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AldeaMallaCurriculaRepository") | |
12 | - * @ORM\Table(name="aldea_malla_curricula", indexes={@ORM\Index(name="fk_aldea_malla_curricula_aldea1_idx", columns={"aldea_id"}), @ORM\Index(name="fk_aldea_malla_curricula_malla_curricular1_idx", columns={"malla_curricular_id"}), @ORM\Index(name="fk_aldea_malla_curricula_turno1_idx", columns={"turno_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_aldea_malla_curricular_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class AldeaMallaCurricula | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="aldea_malla_curricula_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=2, nullable=true) | |
26 | - */ | |
27 | - protected $estatus; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="EstudianteDetalle", mappedBy="aldeaMallaCurricula") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="aldea_malla_curricula_id", nullable=false) | |
32 | - */ | |
33 | - protected $estudianteDetalles; | |
34 | - | |
35 | - /** | |
36 | - * @ORM\OneToMany(targetEntity="OfertaAcademica", mappedBy="aldeaMallaCurricula") | |
37 | - * @ORM\JoinColumn(name="id", referencedColumnName="aldea_malla_curricula_id", nullable=false) | |
38 | - */ | |
39 | - protected $ofertaAcademicas; | |
40 | - | |
41 | - /** | |
42 | - * @ORM\ManyToOne(targetEntity="Aldea", inversedBy="aldeaMallaCurriculas") | |
43 | - * @ORM\JoinColumn(name="aldea_id", referencedColumnName="id", nullable=false) | |
44 | - */ | |
45 | - protected $aldea; | |
46 | - | |
47 | - /** | |
48 | - * @ORM\ManyToOne(targetEntity="MallaCurricular", inversedBy="aldeaMallaCurriculas") | |
49 | - * @ORM\JoinColumn(name="malla_curricular_id", referencedColumnName="id", nullable=false) | |
50 | - */ | |
51 | - protected $mallaCurricular; | |
52 | - | |
53 | - /** | |
54 | - * @ORM\ManyToOne(targetEntity="Turno", inversedBy="aldeaMallaCurriculas") | |
55 | - * @ORM\JoinColumn(name="turno_id", referencedColumnName="id", nullable=false) | |
56 | - */ | |
57 | - protected $turno; | |
58 | - | |
59 | - public function __construct() | |
60 | - { | |
61 | - $this->estudianteDetalles = new ArrayCollection(); | |
62 | - $this->ofertaAcademicas = new ArrayCollection(); | |
63 | - } | |
64 | - | |
65 | - public function __sleep() | |
66 | - { | |
67 | - return array('id', 'estatus', 'aldea_id', 'malla_curricular_id', 'turno_id'); | |
68 | - } | |
69 | - | |
70 | - /** | |
71 | - * Get id | |
72 | - * | |
73 | - * @return integer | |
74 | - */ | |
75 | - public function getId() | |
76 | - { | |
77 | - return $this->id; | |
78 | - } | |
79 | - | |
80 | - /** | |
81 | - * Set estatus | |
82 | - * | |
83 | - * @param string $estatus | |
84 | - * @return AldeaMallaCurricula | |
85 | - */ | |
86 | - public function setEstatus($estatus) | |
87 | - { | |
88 | - $this->estatus = $estatus; | |
89 | - | |
90 | - return $this; | |
91 | - } | |
92 | - | |
93 | - /** | |
94 | - * Get estatus | |
95 | - * | |
96 | - * @return string | |
97 | - */ | |
98 | - public function getEstatus() | |
99 | - { | |
100 | - return $this->estatus; | |
101 | - } | |
102 | - | |
103 | - /** | |
104 | - * Add estudianteDetalles | |
105 | - * | |
106 | - * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles | |
107 | - * @return AldeaMallaCurricula | |
108 | - */ | |
109 | - public function addEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles) | |
110 | - { | |
111 | - $this->estudianteDetalles[] = $estudianteDetalles; | |
112 | - | |
113 | - return $this; | |
114 | - } | |
115 | - | |
116 | - /** | |
117 | - * Remove estudianteDetalles | |
118 | - * | |
119 | - * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles | |
120 | - */ | |
121 | - public function removeEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles) | |
122 | - { | |
123 | - $this->estudianteDetalles->removeElement($estudianteDetalles); | |
124 | - } | |
125 | - | |
126 | - /** | |
127 | - * Get estudianteDetalles | |
128 | - * | |
129 | - * @return \Doctrine\Common\Collections\Collection | |
130 | - */ | |
131 | - public function getEstudianteDetalles() | |
132 | - { | |
133 | - return $this->estudianteDetalles; | |
134 | - } | |
135 | - | |
136 | - /** | |
137 | - * Add ofertaAcademicas | |
138 | - * | |
139 | - * @param \UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas | |
140 | - * @return AldeaMallaCurricula | |
141 | - */ | |
142 | - public function addOfertaAcademica(\UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas) | |
143 | - { | |
144 | - $this->ofertaAcademicas[] = $ofertaAcademicas; | |
145 | - | |
146 | - return $this; | |
147 | - } | |
148 | - | |
149 | - /** | |
150 | - * Remove ofertaAcademicas | |
151 | - * | |
152 | - * @param \UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas | |
153 | - */ | |
154 | - public function removeOfertaAcademica(\UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas) | |
155 | - { | |
156 | - $this->ofertaAcademicas->removeElement($ofertaAcademicas); | |
157 | - } | |
158 | - | |
159 | - /** | |
160 | - * Get ofertaAcademicas | |
161 | - * | |
162 | - * @return \Doctrine\Common\Collections\Collection | |
163 | - */ | |
164 | - public function getOfertaAcademicas() | |
165 | - { | |
166 | - return $this->ofertaAcademicas; | |
167 | - } | |
168 | - | |
169 | - /** | |
170 | - * Set aldea | |
171 | - * | |
172 | - * @param \UBV\SurUbvBundle\Entity\Aldea $aldea | |
173 | - * @return AldeaMallaCurricula | |
174 | - */ | |
175 | - public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) | |
176 | - { | |
177 | - $this->aldea = $aldea; | |
178 | - | |
179 | - return $this; | |
180 | - } | |
181 | - | |
182 | - /** | |
183 | - * Get aldea | |
184 | - * | |
185 | - * @return \UBV\SurUbvBundle\Entity\Aldea | |
186 | - */ | |
187 | - public function getAldea() | |
188 | - { | |
189 | - return $this->aldea; | |
190 | - } | |
191 | - | |
192 | - /** | |
193 | - * Set mallaCurricular | |
194 | - * | |
195 | - * @param \UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurricular | |
196 | - * @return AldeaMallaCurricula | |
197 | - */ | |
198 | - public function setMallaCurricular(\UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurricular) | |
199 | - { | |
200 | - $this->mallaCurricular = $mallaCurricular; | |
201 | - | |
202 | - return $this; | |
203 | - } | |
204 | - | |
205 | - /** | |
206 | - * Get mallaCurricular | |
207 | - * | |
208 | - * @return \UBV\SurUbvBundle\Entity\MallaCurricular | |
209 | - */ | |
210 | - public function getMallaCurricular() | |
211 | - { | |
212 | - return $this->mallaCurricular; | |
213 | - } | |
214 | - | |
215 | - /** | |
216 | - * Set turno | |
217 | - * | |
218 | - * @param \UBV\SurUbvBundle\Entity\Turno $turno | |
219 | - * @return AldeaMallaCurricula | |
220 | - */ | |
221 | - public function setTurno(\UBV\SurUbvBundle\Entity\Turno $turno) | |
222 | - { | |
223 | - $this->turno = $turno; | |
224 | - | |
225 | - return $this; | |
226 | - } | |
227 | - | |
228 | - /** | |
229 | - * Get turno | |
230 | - * | |
231 | - * @return \UBV\SurUbvBundle\Entity\Turno | |
232 | - */ | |
233 | - public function getTurno() | |
234 | - { | |
235 | - return $this->turno; | |
236 | - } | |
237 | -} |
src/UBV/PracticaBundle/Entity/AldeaMallaCurriculaRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * AldeaMallaCurriculaRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class AldeaMallaCurriculaRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/AldeaPrograma.php
... | ... | @@ -1,128 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | - | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\AldeaPrograma | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AldeaProgramaRepository") | |
12 | - * @ORM\Table(name="aldea_programa", indexes={@ORM\Index(name="fk_aldea_programa_aldea1_idx", columns={"aldea_id"}), @ORM\Index(name="fk_aldea_programa_programa1_idx", columns={"programa_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="codigo_opsu_UNIQUE", columns={"codigo_opsu"}), @ORM\UniqueConstraint(name="id_aldea_programa_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class AldeaPrograma | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="aldea_programa_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="integer", nullable=true) | |
26 | - */ | |
27 | - protected $codigo_opsu; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\ManyToOne(targetEntity="Aldea", inversedBy="aldeaProgramas") | |
31 | - * @ORM\JoinColumn(name="aldea_id", referencedColumnName="id", nullable=false) | |
32 | - */ | |
33 | - protected $aldea; | |
34 | - | |
35 | - /** | |
36 | - * @ORM\ManyToOne(targetEntity="Programa", inversedBy="aldeaProgramas") | |
37 | - * @ORM\JoinColumn(name="programa_id", referencedColumnName="id", nullable=false) | |
38 | - */ | |
39 | - protected $programa; | |
40 | - | |
41 | - public function __construct() | |
42 | - { | |
43 | - } | |
44 | - | |
45 | - public function __sleep() | |
46 | - { | |
47 | - return array('id', 'codigo_opsu', 'aldea_id', 'programa_id'); | |
48 | - } | |
49 | - | |
50 | - /** | |
51 | - * Get id | |
52 | - * | |
53 | - * @return integer | |
54 | - */ | |
55 | - public function getId() | |
56 | - { | |
57 | - return $this->id; | |
58 | - } | |
59 | - | |
60 | - /** | |
61 | - * Set codigo_opsu | |
62 | - * | |
63 | - * @param integer $codigoOpsu | |
64 | - * @return AldeaPrograma | |
65 | - */ | |
66 | - public function setCodigoOpsu($codigoOpsu) | |
67 | - { | |
68 | - $this->codigo_opsu = $codigoOpsu; | |
69 | - | |
70 | - return $this; | |
71 | - } | |
72 | - | |
73 | - /** | |
74 | - * Get codigo_opsu | |
75 | - * | |
76 | - * @return integer | |
77 | - */ | |
78 | - public function getCodigoOpsu() | |
79 | - { | |
80 | - return $this->codigo_opsu; | |
81 | - } | |
82 | - | |
83 | - /** | |
84 | - * Set aldea | |
85 | - * | |
86 | - * @param \UBV\SurUbvBundle\Entity\Aldea $aldea | |
87 | - * @return AldeaPrograma | |
88 | - */ | |
89 | - public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) | |
90 | - { | |
91 | - $this->aldea = $aldea; | |
92 | - | |
93 | - return $this; | |
94 | - } | |
95 | - | |
96 | - /** | |
97 | - * Get aldea | |
98 | - * | |
99 | - * @return \UBV\SurUbvBundle\Entity\Aldea | |
100 | - */ | |
101 | - public function getAldea() | |
102 | - { | |
103 | - return $this->aldea; | |
104 | - } | |
105 | - | |
106 | - /** | |
107 | - * Set programa | |
108 | - * | |
109 | - * @param \UBV\SurUbvBundle\Entity\Programa $programa | |
110 | - * @return AldeaPrograma | |
111 | - */ | |
112 | - public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) | |
113 | - { | |
114 | - $this->programa = $programa; | |
115 | - | |
116 | - return $this; | |
117 | - } | |
118 | - | |
119 | - /** | |
120 | - * Get programa | |
121 | - * | |
122 | - * @return \UBV\SurUbvBundle\Entity\Programa | |
123 | - */ | |
124 | - public function getPrograma() | |
125 | - { | |
126 | - return $this->programa; | |
127 | - } | |
128 | -} |
src/UBV/PracticaBundle/Entity/AldeaProgramaRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * AldeaProgramaRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class AldeaProgramaRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/AldeaRepository.php
... | ... | @@ -1,35 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Query\Expr\Join; | |
6 | -use Doctrine\ORM\EntityRepository; | |
7 | - | |
8 | -use Doctrine\ORM\Query; | |
9 | - | |
10 | -/** | |
11 | - * AldeaRepository | |
12 | - * | |
13 | - * This class was generated by the Doctrine ORM. Add your own custom | |
14 | - * repository methods below. | |
15 | - */ | |
16 | -class AldeaRepository extends EntityRepository | |
17 | -{ | |
18 | - public function findAldeaByParroquiaId($parroquia_id) | |
19 | - { | |
20 | - $em = $this->getEntityManager(); | |
21 | - | |
22 | - //die(dump($pais_id)); | |
23 | - $result = $em->createQueryBuilder(); | |
24 | - | |
25 | - $dql = $result -> select ('aldea') | |
26 | - ->from('UBVSurUbvBundle:Aldea', 'aldea') | |
27 | - ->Join('aldea.ambiente', 'ambiente', 'ambiente.id = aldea.ambiente_id') | |
28 | - ->Join('ambiente.parroquia', 'parroquia', 'parroquia.id = ambiente.parroquia_id') | |
29 | - ->where('parroquia.id = :parroquia_id') | |
30 | - ->setParameter('parroquia_id',$parroquia_id) | |
31 | - ->getQuery() | |
32 | - ->getResult(Query::HYDRATE_ARRAY); | |
33 | - return $dql; | |
34 | - } | |
35 | -} |
src/UBV/PracticaBundle/Entity/AldeaTelefono.php
... | ... | @@ -1,127 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | - | |
7 | -/** | |
8 | - * UBV\SurUbvBundle\Entity\AldeaTelefono | |
9 | - * | |
10 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AldeaTelefonoRepository") | |
11 | - * @ORM\Table(name="aldea_telefono", indexes={@ORM\Index(name="fk_aldea_telefono_telefono_codigo_area1_idx", columns={"telefono_codigo_area_id"}), @ORM\Index(name="fk_aldea_telefono_aldea1_idx", columns={"aldea_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_aldea_telefono_UNIQUE", columns={"id"})}) | |
12 | - */ | |
13 | -class AldeaTelefono | |
14 | -{ | |
15 | - /** | |
16 | - * @ORM\Id | |
17 | - * @ORM\Column(type="integer") | |
18 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
19 | - * @ORM\SequenceGenerator(sequenceName="aldea_telefono_id_seq", allocationSize=1, initialValue=1) | |
20 | - */ | |
21 | - protected $id; | |
22 | - | |
23 | - /** | |
24 | - * @ORM\Column(type="integer") | |
25 | - */ | |
26 | - protected $descripcion; | |
27 | - | |
28 | - /** | |
29 | - * @ORM\ManyToOne(targetEntity="TelefonoCodigoArea", inversedBy="aldeaTelefonos") | |
30 | - * @ORM\JoinColumn(name="telefono_codigo_area_id", referencedColumnName="id", nullable=false) | |
31 | - */ | |
32 | - protected $telefonoCodigoArea; | |
33 | - | |
34 | - /** | |
35 | - * @ORM\ManyToOne(targetEntity="Aldea", inversedBy="aldeaTelefonos") | |
36 | - * @ORM\JoinColumn(name="aldea_id", referencedColumnName="id", nullable=false) | |
37 | - */ | |
38 | - protected $aldea; | |
39 | - | |
40 | - public function __construct() | |
41 | - { | |
42 | - } | |
43 | - | |
44 | - public function __sleep() | |
45 | - { | |
46 | - return array('id', 'descripcion', 'telefono_codigo_area_id', 'aldea_id'); | |
47 | - } | |
48 | - | |
49 | - /** | |
50 | - * Get id | |
51 | - * | |
52 | - * @return integer | |
53 | - */ | |
54 | - public function getId() | |
55 | - { | |
56 | - return $this->id; | |
57 | - } | |
58 | - | |
59 | - /** | |
60 | - * Set descripcion | |
61 | - * | |
62 | - * @param integer $descripcion | |
63 | - * @return AldeaTelefono | |
64 | - */ | |
65 | - public function setDescripcion($descripcion) | |
66 | - { | |
67 | - $this->descripcion = $descripcion; | |
68 | - | |
69 | - return $this; | |
70 | - } | |
71 | - | |
72 | - /** | |
73 | - * Get descripcion | |
74 | - * | |
75 | - * @return integer | |
76 | - */ | |
77 | - public function getDescripcion() | |
78 | - { | |
79 | - return $this->descripcion; | |
80 | - } | |
81 | - | |
82 | - /** | |
83 | - * Set telefonoCodigoArea | |
84 | - * | |
85 | - * @param \UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea | |
86 | - * @return AldeaTelefono | |
87 | - */ | |
88 | - public function setTelefonoCodigoArea(\UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea) | |
89 | - { | |
90 | - $this->telefonoCodigoArea = $telefonoCodigoArea; | |
91 | - | |
92 | - return $this; | |
93 | - } | |
94 | - | |
95 | - /** | |
96 | - * Get telefonoCodigoArea | |
97 | - * | |
98 | - * @return \UBV\SurUbvBundle\Entity\TelefonoCodigoArea | |
99 | - */ | |
100 | - public function getTelefonoCodigoArea() | |
101 | - { | |
102 | - return $this->telefonoCodigoArea; | |
103 | - } | |
104 | - | |
105 | - /** | |
106 | - * Set aldea | |
107 | - * | |
108 | - * @param \UBV\SurUbvBundle\Entity\Aldea $aldea | |
109 | - * @return AldeaTelefono | |
110 | - */ | |
111 | - public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) | |
112 | - { | |
113 | - $this->aldea = $aldea; | |
114 | - | |
115 | - return $this; | |
116 | - } | |
117 | - | |
118 | - /** | |
119 | - * Get aldea | |
120 | - * | |
121 | - * @return \UBV\SurUbvBundle\Entity\Aldea | |
122 | - */ | |
123 | - public function getAldea() | |
124 | - { | |
125 | - return $this->aldea; | |
126 | - } | |
127 | -} |
src/UBV/PracticaBundle/Entity/AldeaTelefonoRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * AldeaTelefonoRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class AldeaTelefonoRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/AldeaTipo.php
... | ... | @@ -1,121 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | -use Symfony\Component\Validator\Constraints as Assert; | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\AldeaTipo | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AldeaTipoRepository") | |
12 | - * @ORM\Table(name="aldea_tipo", uniqueConstraints={@ORM\UniqueConstraint(name="id_aldea_tipo_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class AldeaTipo | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="aldea_tipo_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=70) | |
26 | - * @Assert\NotBlank( message= "Por favor introduzca la Descripciรณn de la Aldea") | |
27 | - *@Assert\Length( | |
28 | - * min = 4, | |
29 | - * max = 70, | |
30 | - * minMessage = "Por favor introduzca un Tipo de Aldea mรกs especรญfico. Mรญnimo {{ limit }} caracteres", | |
31 | - * maxMessage = "Por favor introduzca un Tipo de Aldea mรกs breve. Mรกximo {{ limit }} caracteres", | |
32 | - *) | |
33 | - */ | |
34 | - protected $descripcion; | |
35 | - | |
36 | - /** | |
37 | - * @ORM\OneToMany(targetEntity="Aldea", mappedBy="aldeaTipo") | |
38 | - * @ORM\JoinColumn(name="id", referencedColumnName="aldea_tipo_id", nullable=false) | |
39 | - */ | |
40 | - protected $aldeas; | |
41 | - | |
42 | - public function __construct() | |
43 | - { | |
44 | - $this->aldeas = new ArrayCollection(); | |
45 | - } | |
46 | - | |
47 | - public function __sleep() | |
48 | - { | |
49 | - return array('id', 'descripcion'); | |
50 | - } | |
51 | - | |
52 | - /** | |
53 | - * Get id | |
54 | - * | |
55 | - * @return integer | |
56 | - */ | |
57 | - public function getId() | |
58 | - { | |
59 | - return $this->id; | |
60 | - } | |
61 | - | |
62 | - /** | |
63 | - * Set descripcion | |
64 | - * | |
65 | - * @param string $descripcion | |
66 | - * @return AldeaTipo | |
67 | - */ | |
68 | - public function setDescripcion($descripcion) | |
69 | - { | |
70 | - $this->descripcion = $descripcion; | |
71 | - | |
72 | - return $this; | |
73 | - } | |
74 | - | |
75 | - /** | |
76 | - * Get descripcion | |
77 | - * | |
78 | - * @return string | |
79 | - */ | |
80 | - public function getDescripcion() | |
81 | - { | |
82 | - return $this->descripcion; | |
83 | - } | |
84 | - | |
85 | - /** | |
86 | - * Add aldeas | |
87 | - * | |
88 | - * @param \UBV\SurUbvBundle\Entity\Aldea $aldeas | |
89 | - * @return AldeaTipo | |
90 | - */ | |
91 | - public function addAldea(\UBV\SurUbvBundle\Entity\Aldea $aldeas) | |
92 | - { | |
93 | - $this->aldeas[] = $aldeas; | |
94 | - | |
95 | - return $this; | |
96 | - } | |
97 | - | |
98 | - /** | |
99 | - * Remove aldeas | |
100 | - * | |
101 | - * @param \UBV\SurUbvBundle\Entity\Aldea $aldeas | |
102 | - */ | |
103 | - public function removeAldea(\UBV\SurUbvBundle\Entity\Aldea $aldeas) | |
104 | - { | |
105 | - $this->aldeas->removeElement($aldeas); | |
106 | - } | |
107 | - | |
108 | - /** | |
109 | - * Get aldeas | |
110 | - * | |
111 | - * @return \Doctrine\Common\Collections\Collection | |
112 | - */ | |
113 | - public function getAldeas() | |
114 | - { | |
115 | - return $this->aldeas; | |
116 | - } | |
117 | - | |
118 | - public function __toString() { | |
119 | - return $this->getDescripcion(); | |
120 | - } | |
121 | -} |
src/UBV/PracticaBundle/Entity/AldeaTipoRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * AldeaTipoRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class AldeaTipoRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/Ambiente.php
... | ... | @@ -1,325 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -use Symfony\Component\Validator\Constraints as Assert; | |
9 | - | |
10 | -/** | |
11 | - * UBV\SurUbvBundle\Entity\Ambiente | |
12 | - * | |
13 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AmbienteRepository") | |
14 | - * @ORM\Table(name="ambiente", indexes={@ORM\Index(name="fk_ambiente_parroquia1_idx", columns={"parroquia_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_ambiente_UNIQUE", columns={"id"})}) | |
15 | - */ | |
16 | -class Ambiente | |
17 | -{ | |
18 | - /** | |
19 | - * @ORM\Id | |
20 | - * @ORM\Column(type="integer") | |
21 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
22 | - * @ORM\SequenceGenerator(sequenceName="ambiente_id_seq", allocationSize=1, initialValue=1) | |
23 | - */ | |
24 | - protected $id; | |
25 | - | |
26 | - /** | |
27 | - * @ORM\Column(type="string", length=70, nullable=false) | |
28 | - * @Assert\NotBlank( message= "Por favor introduzca una Descripciรณn del Nombre del Ambiente") | |
29 | - * @Assert\Length( | |
30 | - * min = 10, | |
31 | - * max = 70, | |
32 | - * minMessage = "Por favor introduzca un Nombre del Ambiente mรกs especรญfico. Mรญnimo {{ limit }} caracteres", | |
33 | - * maxMessage = "Por favor introduzca un Nombre del Ambiente mรกs breve. Mรกximo {{ limit }} caracteres", | |
34 | - * | |
35 | - * ) | |
36 | - * @Assert\NotNull(message="Este Campo no puede Ser Nulo") | |
37 | - */ | |
38 | - protected $descripcion; | |
39 | - | |
40 | - /** | |
41 | - * @ORM\Column(type="string", length=6, nullable=false) | |
42 | - * @Assert\NotBlank( message= "Por favor introduzca el Cรณdigo del Ambiente") | |
43 | - * @Assert\Length( | |
44 | - * min = 6, | |
45 | - * max = 6, | |
46 | - * exactMessage = "Por favor introduzca un codigo Vรกlido. debe tener {{ limit }} caracteres", | |
47 | - * minMessage = "Por favor introduzca un codigo Vรกlido. Mรญnimo {{ limit }} caracteres", | |
48 | - * maxMessage = "Por favor introduzca un codigo Vรกlido. Mรกximo {{ limit }} caracteres", | |
49 | - * | |
50 | - * ) | |
51 | - * @Assert\NotNull(message="Este Campo no puede Ser Nulo") | |
52 | - */ | |
53 | - protected $codigo; | |
54 | - | |
55 | - /** | |
56 | - * @ORM\Column(type="text", nullable=false) | |
57 | - * @Assert\NotBlank( message= "Por favor introduzca una direcciรณn valida") | |
58 | - * @Assert\Length( | |
59 | - * min = 20, | |
60 | - * max = 200, | |
61 | - * minMessage = "Por favor introduzca una direcciรณn mรกs especรญfica. Mรญnimo {{ limit }} caracteres", | |
62 | - * maxMessage = "Por favor introduzca una direcciรณn mรกs breve. Mรกximo {{ limit }} caracteres", | |
63 | - * | |
64 | - * ) | |
65 | - * @Assert\NotNull(message="Este Campo no puede Ser Nulo") | |
66 | - */ | |
67 | - protected $direccion; | |
68 | - | |
69 | - /** | |
70 | - * @ORM\Column(type="text", nullable=true) | |
71 | - */ | |
72 | - protected $coordenadas_utm_norte; | |
73 | - | |
74 | - /** | |
75 | - * @ORM\Column(type="text", nullable=true) | |
76 | - */ | |
77 | - protected $coordenadas_utm_oeste; | |
78 | - | |
79 | - /** | |
80 | - * @ORM\OneToMany(targetEntity="Aldea", mappedBy="ambiente") | |
81 | - * @ORM\JoinColumn(name="id", referencedColumnName="ambiente_id", nullable=false) | |
82 | - */ | |
83 | - protected $aldeas; | |
84 | - | |
85 | - /** | |
86 | - * @ORM\OneToMany(targetEntity="AmbienteDetalle", mappedBy="ambiente") | |
87 | - * @ORM\JoinColumn(name="id", referencedColumnName="ambiente_id", nullable=false) | |
88 | - */ | |
89 | - protected $ambienteDetalles; | |
90 | - | |
91 | - /** | |
92 | - * @ORM\ManyToOne(targetEntity="Parroquia", inversedBy="ambientes", cascade={"persist", "remove"}) | |
93 | - * @ORM\JoinColumn(name="parroquia_id", referencedColumnName="id", nullable=false) | |
94 | - */ | |
95 | - protected $parroquia; | |
96 | - | |
97 | - public function __construct() | |
98 | - { | |
99 | - $this->aldeas = new ArrayCollection(); | |
100 | - $this->ambienteDetalles = new ArrayCollection(); | |
101 | - } | |
102 | - | |
103 | - public function __sleep() | |
104 | - { | |
105 | - return array('id', 'descripcion', 'codigo', 'direccion', 'coordenadas_utm_norte', 'coordenadas_utm_oeste', 'parroquia_id'); | |
106 | - } | |
107 | - | |
108 | - /** | |
109 | - * Get id | |
110 | - * | |
111 | - * @return integer | |
112 | - */ | |
113 | - public function getId() | |
114 | - { | |
115 | - return $this->id; | |
116 | - } | |
117 | - | |
118 | - /** | |
119 | - * Set descripcion | |
120 | - * | |
121 | - * @param string $descripcion | |
122 | - * @return Ambiente | |
123 | - */ | |
124 | - public function setDescripcion($descripcion) | |
125 | - { | |
126 | - $this->descripcion = $descripcion; | |
127 | - | |
128 | - return $this; | |
129 | - } | |
130 | - | |
131 | - /** | |
132 | - * Get descripcion | |
133 | - * | |
134 | - * @return string | |
135 | - */ | |
136 | - public function getDescripcion() | |
137 | - { | |
138 | - return $this->descripcion; | |
139 | - } | |
140 | - | |
141 | - /** | |
142 | - * Set codigo | |
143 | - * | |
144 | - * @param string $codigo | |
145 | - * @return Ambiente | |
146 | - */ | |
147 | - public function setCodigo($codigo) | |
148 | - { | |
149 | - $this->codigo = $codigo; | |
150 | - | |
151 | - return $this; | |
152 | - } | |
153 | - | |
154 | - /** | |
155 | - * Get codigo | |
156 | - * | |
157 | - * @return string | |
158 | - */ | |
159 | - public function getCodigo() | |
160 | - { | |
161 | - return $this->codigo; | |
162 | - } | |
163 | - | |
164 | - /** | |
165 | - * Set direccion | |
166 | - * | |
167 | - * @param string $direccion | |
168 | - * @return Ambiente | |
169 | - */ | |
170 | - public function setDireccion($direccion) | |
171 | - { | |
172 | - $this->direccion = $direccion; | |
173 | - | |
174 | - return $this; | |
175 | - } | |
176 | - | |
177 | - /** | |
178 | - * Get direccion | |
179 | - * | |
180 | - * @return string | |
181 | - */ | |
182 | - public function getDireccion() | |
183 | - { | |
184 | - return $this->direccion; | |
185 | - } | |
186 | - | |
187 | - /** | |
188 | - * Set coordenadas_utm_norte | |
189 | - * | |
190 | - * @param string $coordenadasUtmNorte | |
191 | - * @return Ambiente | |
192 | - */ | |
193 | - public function setCoordenadasUtmNorte($coordenadasUtmNorte) | |
194 | - { | |
195 | - $this->coordenadas_utm_norte = $coordenadasUtmNorte; | |
196 | - | |
197 | - return $this; | |
198 | - } | |
199 | - | |
200 | - /** | |
201 | - * Get coordenadas_utm_norte | |
202 | - * | |
203 | - * @return string | |
204 | - */ | |
205 | - public function getCoordenadasUtmNorte() | |
206 | - { | |
207 | - return $this->coordenadas_utm_norte; | |
208 | - } | |
209 | - | |
210 | - /** | |
211 | - * Set coordenadas_utm_oeste | |
212 | - * | |
213 | - * @param string $coordenadasUtmOeste | |
214 | - * @return Ambiente | |
215 | - */ | |
216 | - public function setCoordenadasUtmOeste($coordenadasUtmOeste) | |
217 | - { | |
218 | - $this->coordenadas_utm_oeste = $coordenadasUtmOeste; | |
219 | - | |
220 | - return $this; | |
221 | - } | |
222 | - | |
223 | - /** | |
224 | - * Get coordenadas_utm_oeste | |
225 | - * | |
226 | - * @return string | |
227 | - */ | |
228 | - public function getCoordenadasUtmOeste() | |
229 | - { | |
230 | - return $this->coordenadas_utm_oeste; | |
231 | - } | |
232 | - | |
233 | - /** | |
234 | - * Add aldeas | |
235 | - * | |
236 | - * @param \UBV\SurUbvBundle\Entity\Aldea $aldeas | |
237 | - * @return Ambiente | |
238 | - */ | |
239 | - public function addAldea(\UBV\SurUbvBundle\Entity\Aldea $aldeas) | |
240 | - { | |
241 | - $this->aldeas[] = $aldeas; | |
242 | - | |
243 | - return $this; | |
244 | - } | |
245 | - | |
246 | - /** | |
247 | - * Remove aldeas | |
248 | - * | |
249 | - * @param \UBV\SurUbvBundle\Entity\Aldea $aldeas | |
250 | - */ | |
251 | - public function removeAldea(\UBV\SurUbvBundle\Entity\Aldea $aldeas) | |
252 | - { | |
253 | - $this->aldeas->removeElement($aldeas); | |
254 | - } | |
255 | - | |
256 | - /** | |
257 | - * Get aldeas | |
258 | - * | |
259 | - * @return \Doctrine\Common\Collections\Collection | |
260 | - */ | |
261 | - public function getAldeas() | |
262 | - { | |
263 | - return $this->aldeas; | |
264 | - } | |
265 | - | |
266 | - /** | |
267 | - * Add ambienteDetalles | |
268 | - * | |
269 | - * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles | |
270 | - * @return Ambiente | |
271 | - */ | |
272 | - public function addAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles) | |
273 | - { | |
274 | - $this->ambienteDetalles[] = $ambienteDetalles; | |
275 | - | |
276 | - return $this; | |
277 | - } | |
278 | - | |
279 | - /** | |
280 | - * Remove ambienteDetalles | |
281 | - * | |
282 | - * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles | |
283 | - */ | |
284 | - public function removeAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles) | |
285 | - { | |
286 | - $this->ambienteDetalles->removeElement($ambienteDetalles); | |
287 | - } | |
288 | - | |
289 | - /** | |
290 | - * Get ambienteDetalles | |
291 | - * | |
292 | - * @return \Doctrine\Common\Collections\Collection | |
293 | - */ | |
294 | - public function getAmbienteDetalles() | |
295 | - { | |
296 | - return $this->ambienteDetalles; | |
297 | - } | |
298 | - | |
299 | - /** | |
300 | - * Set parroquia | |
301 | - * | |
302 | - * @param \UBV\SurUbvBundle\Entity\Parroquia $parroquia | |
303 | - * @return Ambiente | |
304 | - */ | |
305 | - public function setParroquia(\UBV\SurUbvBundle\Entity\Parroquia $parroquia) | |
306 | - { | |
307 | - $this->parroquia = $parroquia; | |
308 | - | |
309 | - return $this; | |
310 | - } | |
311 | - | |
312 | - /** | |
313 | - * Get parroquia | |
314 | - * | |
315 | - * @return \UBV\SurUbvBundle\Entity\Parroquia | |
316 | - */ | |
317 | - public function getParroquia() | |
318 | - { | |
319 | - return $this->parroquia; | |
320 | - } | |
321 | - | |
322 | - public function __toString() { | |
323 | - return $this->getDescripcion(); | |
324 | - } | |
325 | -} |
src/UBV/PracticaBundle/Entity/AmbienteDetalle.php
... | ... | @@ -1,254 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | -use Symfony\Component\Validator\Constraints as Assert; | |
8 | - | |
9 | -/** | |
10 | - * UBV\SurUbvBundle\Entity\AmbienteDetalle | |
11 | - * | |
12 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AmbienteDetalleRepository") | |
13 | - * @ORM\Table(name="ambiente_detalle", indexes={@ORM\Index(name="fk_ambiente_detalle_ambiente1_idx", columns={"ambiente_id"}), @ORM\Index(name="fk_ambiente_detalle_ambiente_detalle1_idx", columns={"dependencia_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_ambiente_detalle_UNIQUE", columns={"id"})}) | |
14 | - */ | |
15 | -class AmbienteDetalle | |
16 | -{ | |
17 | - /** | |
18 | - * @ORM\Id | |
19 | - * @ORM\Column(type="integer") | |
20 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
21 | - * @ORM\SequenceGenerator(sequenceName="ambiente_detalle_id_seq", allocationSize=1, initialValue=1) | |
22 | - */ | |
23 | - protected $id; | |
24 | - | |
25 | - /** | |
26 | - *@Assert\NotNull(message= "Por favor introduzca un nombre", groups={"Default"}) | |
27 | - *@Assert\NotBlank( message= "Por favor introduzca un nombre Notas Valido", groups={"Default"}) | |
28 | - *@Assert\Length( | |
29 | - * min = "2", | |
30 | - * max = "70", | |
31 | - * minMessage = "El Detalle del Ambiente debe tener ser minimo {{ limit }}", | |
32 | - * maxMessage = "El Detalle del Ambiente debe tener no debe exceder de {{ limit }}" | |
33 | - *) | |
34 | - *@Assert\Type(type="string", message="El valor {{ value }} no es valido {{ type }}.") | |
35 | - *) | |
36 | - *@Assert\Regex( | |
37 | - * pattern="/\d/", | |
38 | - * match=false, | |
39 | - * message=" El Eje Regional no debe contener numeros") | |
40 | - * @ORM\Column(type="string", length=70) | |
41 | - */ | |
42 | - protected $descripcion; | |
43 | - | |
44 | - /** | |
45 | - * @ORM\Column(type="string", length=2) | |
46 | - */ | |
47 | - protected $estatus; | |
48 | - | |
49 | - /** | |
50 | - * @ORM\OneToMany(targetEntity="AmbienteDetalle", mappedBy="ambienteDetalle") | |
51 | - * @ORM\JoinColumn(name="id", referencedColumnName="dependencia_id", nullable=false) | |
52 | - */ | |
53 | - protected $ambienteDetalles; | |
54 | - | |
55 | - /** | |
56 | - * @ORM\OneToMany(targetEntity="AmbienteEspacio", mappedBy="ambienteDetalle") | |
57 | - * @ORM\JoinColumn(name="id", referencedColumnName="ambiente_detalle_id", nullable=false) | |
58 | - */ | |
59 | - protected $ambienteEspacios; | |
60 | - | |
61 | - /** | |
62 | - * @ORM\ManyToOne(targetEntity="Ambiente", inversedBy="ambienteDetalles") | |
63 | - * @ORM\JoinColumn(name="ambiente_id", referencedColumnName="id", nullable=false) | |
64 | - */ | |
65 | - protected $ambiente; | |
66 | - | |
67 | - /** | |
68 | - * @ORM\ManyToOne(targetEntity="AmbienteDetalle", inversedBy="ambienteDetalles") | |
69 | - * @ORM\JoinColumn(name="dependencia_id", referencedColumnName="id") | |
70 | - */ | |
71 | - protected $ambienteDetalle; | |
72 | - | |
73 | - public function __construct() | |
74 | - { | |
75 | - $this->ambienteDetalles = new ArrayCollection(); | |
76 | - $this->ambienteEspacios = new ArrayCollection(); | |
77 | - } | |
78 | - | |
79 | - public function __sleep() | |
80 | - { | |
81 | - return array('id', 'descripcion', 'estatus', 'ambiente_id', 'dependencia_id'); | |
82 | - } | |
83 | - | |
84 | - /** | |
85 | - * Get id | |
86 | - * | |
87 | - * @return integer | |
88 | - */ | |
89 | - public function getId() | |
90 | - { | |
91 | - return $this->id; | |
92 | - } | |
93 | - | |
94 | - /** | |
95 | - * Set descripcion | |
96 | - * | |
97 | - * @param string $descripcion | |
98 | - * @return AmbienteDetalle | |
99 | - */ | |
100 | - public function setDescripcion($descripcion) | |
101 | - { | |
102 | - $this->descripcion = $descripcion; | |
103 | - | |
104 | - return $this; | |
105 | - } | |
106 | - | |
107 | - /** | |
108 | - * Get descripcion | |
109 | - * | |
110 | - * @return string | |
111 | - */ | |
112 | - public function getDescripcion() | |
113 | - { | |
114 | - return $this->descripcion; | |
115 | - } | |
116 | - | |
117 | - /** | |
118 | - * Set estatus | |
119 | - * | |
120 | - * @param string $estatus | |
121 | - * @return AmbienteDetalle | |
122 | - */ | |
123 | - public function setEstatus($estatus) | |
124 | - { | |
125 | - $this->estatus = $estatus; | |
126 | - | |
127 | - return $this; | |
128 | - } | |
129 | - | |
130 | - /** | |
131 | - * Get estatus | |
132 | - * | |
133 | - * @return string | |
134 | - */ | |
135 | - public function getEstatus() | |
136 | - { | |
137 | - return $this->estatus; | |
138 | - } | |
139 | - | |
140 | - /** | |
141 | - * Add ambienteDetalles | |
142 | - * | |
143 | - * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles | |
144 | - * @return AmbienteDetalle | |
145 | - */ | |
146 | - public function addAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles) | |
147 | - { | |
148 | - $this->ambienteDetalles[] = $ambienteDetalles; | |
149 | - | |
150 | - return $this; | |
151 | - } | |
152 | - | |
153 | - /** | |
154 | - * Remove ambienteDetalles | |
155 | - * | |
156 | - * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles | |
157 | - */ | |
158 | - public function removeAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles) | |
159 | - { | |
160 | - $this->ambienteDetalles->removeElement($ambienteDetalles); | |
161 | - } | |
162 | - | |
163 | - /** | |
164 | - * Get ambienteDetalles | |
165 | - * | |
166 | - * @return \Doctrine\Common\Collections\Collection | |
167 | - */ | |
168 | - public function getAmbienteDetalles() | |
169 | - { | |
170 | - return $this->ambienteDetalles; | |
171 | - } | |
172 | - | |
173 | - /** | |
174 | - * Add ambienteEspacios | |
175 | - * | |
176 | - * @param \UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios | |
177 | - * @return AmbienteDetalle | |
178 | - */ | |
179 | - public function addAmbienteEspacio(\UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios) | |
180 | - { | |
181 | - $this->ambienteEspacios[] = $ambienteEspacios; | |
182 | - | |
183 | - return $this; | |
184 | - } | |
185 | - | |
186 | - /** | |
187 | - * Remove ambienteEspacios | |
188 | - * | |
189 | - * @param \UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios | |
190 | - */ | |
191 | - public function removeAmbienteEspacio(\UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios) | |
192 | - { | |
193 | - $this->ambienteEspacios->removeElement($ambienteEspacios); | |
194 | - } | |
195 | - | |
196 | - /** | |
197 | - * Get ambienteEspacios | |
198 | - * | |
199 | - * @return \Doctrine\Common\Collections\Collection | |
200 | - */ | |
201 | - public function getAmbienteEspacios() | |
202 | - { | |
203 | - return $this->ambienteEspacios; | |
204 | - } | |
205 | - | |
206 | - /** | |
207 | - * Set ambiente | |
208 | - * | |
209 | - * @param \UBV\SurUbvBundle\Entity\Ambiente $ambiente | |
210 | - * @return AmbienteDetalle | |
211 | - */ | |
212 | - public function setAmbiente(\UBV\SurUbvBundle\Entity\Ambiente $ambiente) | |
213 | - { | |
214 | - $this->ambiente = $ambiente; | |
215 | - | |
216 | - return $this; | |
217 | - } | |
218 | - | |
219 | - /** | |
220 | - * Get ambiente | |
221 | - * | |
222 | - * @return \UBV\SurUbvBundle\Entity\Ambiente | |
223 | - */ | |
224 | - public function getAmbiente() | |
225 | - { | |
226 | - return $this->ambiente; | |
227 | - } | |
228 | - | |
229 | - /** | |
230 | - * Set ambienteDetalle | |
231 | - * | |
232 | - * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalle | |
233 | - * @return AmbienteDetalle | |
234 | - */ | |
235 | - public function setAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalle = null) | |
236 | - { | |
237 | - $this->ambienteDetalle = $ambienteDetalle; | |
238 | - | |
239 | - return $this; | |
240 | - } | |
241 | - | |
242 | - /** | |
243 | - * Get ambienteDetalle | |
244 | - * | |
245 | - * @return \UBV\SurUbvBundle\Entity\AmbienteDetalle | |
246 | - */ | |
247 | - public function getAmbienteDetalle() | |
248 | - { | |
249 | - return $this->ambienteDetalle; | |
250 | - } | |
251 | - public function __toString() { | |
252 | - return $this->getDescripcion(); | |
253 | - } | |
254 | -} |
src/UBV/PracticaBundle/Entity/AmbienteDetalleRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * AmbienteDetalleRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class AmbienteDetalleRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/AmbienteEspacio.php
... | ... | @@ -1,214 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | -use Symfony\Component\Validator\Constraints as Assert; | |
8 | - | |
9 | -/** | |
10 | - * UBV\SurUbvBundle\Entity\AmbienteEspacio | |
11 | - * | |
12 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AmbienteEspacioRepository") | |
13 | - * @ORM\Table(name="ambiente_espacio", indexes={@ORM\Index(name="fk_ambiente_espacio_tipo_espacio1_idx", columns={"tipo_espacio_id"}), @ORM\Index(name="fk_ambiente_espacio_ambiente_detalle1_idx", columns={"ambiente_detalle_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_ambiente_espacio_UNIQUE", columns={"id"})}) | |
14 | - */ | |
15 | -class AmbienteEspacio | |
16 | -{ | |
17 | - /** | |
18 | - * @ORM\Id | |
19 | - * @ORM\Column(type="integer") | |
20 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
21 | - * @ORM\SequenceGenerator(sequenceName="ambiente_espacio_id_seq", allocationSize=1, initialValue=1) | |
22 | - */ | |
23 | - protected $id; | |
24 | - | |
25 | - /** | |
26 | - *@Assert\NotNull(message= "Por favor introduzca un nombre", groups={"Default"}) | |
27 | - *@Assert\NotBlank( message= "Por favor introduzca un nombre Notas Valido", groups={"Default"}) | |
28 | - *@Assert\Length( | |
29 | - * min = "2", | |
30 | - * max = "70", | |
31 | - * minMessage = "El Espacio debe tener ser minimo {{ limit }}", | |
32 | - * maxMessage = "El Espacio no debe exceder de {{ limit }}" | |
33 | - *) | |
34 | - *@Assert\Type(type="string", message="El valor {{ value }} no es valido {{ type }}.") | |
35 | - *) | |
36 | - *@Assert\Regex( | |
37 | - * pattern="/\d/", | |
38 | - * match=false, | |
39 | - * message=" El Espacio no debe contener numeros") | |
40 | - * @ORM\Column(type="string", length=70) | |
41 | - */ | |
42 | - protected $descripcion; | |
43 | - | |
44 | - /** | |
45 | - *@Assert\NotNull(message= "Por favor introduzca un Codigo", groups={"Default"}) | |
46 | - *@Assert\NotBlank( message= "Por favor introduzca un Codigo Notas Valido", groups={"Default"}) | |
47 | - * @Assert\Type(type="string", message="El valor {{ value }} no es valido {{ type }}.") | |
48 | - * @ORM\Column(type="integer") | |
49 | - */ | |
50 | - protected $capacidad; | |
51 | - | |
52 | - /** | |
53 | - * @ORM\OneToMany(targetEntity="CargaAcademica", mappedBy="ambienteEspacio") | |
54 | - * @ORM\JoinColumn(name="id", referencedColumnName="ambiente_espacio_id", nullable=false) | |
55 | - */ | |
56 | - protected $cargaAcademicas; | |
57 | - | |
58 | - /** | |
59 | - * @ORM\ManyToOne(targetEntity="TipoEspacio", inversedBy="ambienteEspacios") | |
60 | - * @ORM\JoinColumn(name="tipo_espacio_id", referencedColumnName="id", nullable=false) | |
61 | - */ | |
62 | - protected $tipoEspacio; | |
63 | - | |
64 | - /** | |
65 | - * @ORM\ManyToOne(targetEntity="AmbienteDetalle", inversedBy="ambienteEspacios") | |
66 | - * @ORM\JoinColumn(name="ambiente_detalle_id", referencedColumnName="id", nullable=false) | |
67 | - */ | |
68 | - protected $ambienteDetalle; | |
69 | - | |
70 | - public function __construct() | |
71 | - { | |
72 | - $this->cargaAcademicas = new ArrayCollection(); | |
73 | - } | |
74 | - | |
75 | - public function __sleep() | |
76 | - { | |
77 | - return array('id', 'descripcion', 'capacidad', 'tipo_espacio_id', 'ambiente_detalle_id'); | |
78 | - } | |
79 | - | |
80 | - /** | |
81 | - * Get id | |
82 | - * | |
83 | - * @return integer | |
84 | - */ | |
85 | - public function getId() | |
86 | - { | |
87 | - return $this->id; | |
88 | - } | |
89 | - | |
90 | - /** | |
91 | - * Set descripcion | |
92 | - * | |
93 | - * @param string $descripcion | |
94 | - * @return AmbienteEspacio | |
95 | - */ | |
96 | - public function setDescripcion($descripcion) | |
97 | - { | |
98 | - $this->descripcion = $descripcion; | |
99 | - | |
100 | - return $this; | |
101 | - } | |
102 | - | |
103 | - /** | |
104 | - * Get descripcion | |
105 | - * | |
106 | - * @return string | |
107 | - */ | |
108 | - public function getDescripcion() | |
109 | - { | |
110 | - return $this->descripcion; | |
111 | - } | |
112 | - | |
113 | - /** | |
114 | - * Set capacidad | |
115 | - * | |
116 | - * @param integer $capacidad | |
117 | - * @return AmbienteEspacio | |
118 | - */ | |
119 | - public function setCapacidad($capacidad) | |
120 | - { | |
121 | - $this->capacidad = $capacidad; | |
122 | - | |
123 | - return $this; | |
124 | - } | |
125 | - | |
126 | - /** | |
127 | - * Get capacidad | |
128 | - * | |
129 | - * @return integer | |
130 | - */ | |
131 | - public function getCapacidad() | |
132 | - { | |
133 | - return $this->capacidad; | |
134 | - } | |
135 | - | |
136 | - /** | |
137 | - * Add cargaAcademicas | |
138 | - * | |
139 | - * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas | |
140 | - * @return AmbienteEspacio | |
141 | - */ | |
142 | - public function addCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) | |
143 | - { | |
144 | - $this->cargaAcademicas[] = $cargaAcademicas; | |
145 | - | |
146 | - return $this; | |
147 | - } | |
148 | - | |
149 | - /** | |
150 | - * Remove cargaAcademicas | |
151 | - * | |
152 | - * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas | |
153 | - */ | |
154 | - public function removeCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) | |
155 | - { | |
156 | - $this->cargaAcademicas->removeElement($cargaAcademicas); | |
157 | - } | |
158 | - | |
159 | - /** | |
160 | - * Get cargaAcademicas | |
161 | - * | |
162 | - * @return \Doctrine\Common\Collections\Collection | |
163 | - */ | |
164 | - public function getCargaAcademicas() | |
165 | - { | |
166 | - return $this->cargaAcademicas; | |
167 | - } | |
168 | - | |
169 | - /** | |
170 | - * Set tipoEspacio | |
171 | - * | |
172 | - * @param \UBV\SurUbvBundle\Entity\TipoEspacio $tipoEspacio | |
173 | - * @return AmbienteEspacio | |
174 | - */ | |
175 | - public function setTipoEspacio(\UBV\SurUbvBundle\Entity\TipoEspacio $tipoEspacio) | |
176 | - { | |
177 | - $this->tipoEspacio = $tipoEspacio; | |
178 | - | |
179 | - return $this; | |
180 | - } | |
181 | - | |
182 | - /** | |
183 | - * Get tipoEspacio | |
184 | - * | |
185 | - * @return \UBV\SurUbvBundle\Entity\TipoEspacio | |
186 | - */ | |
187 | - public function getTipoEspacio() | |
188 | - { | |
189 | - return $this->tipoEspacio; | |
190 | - } | |
191 | - | |
192 | - /** | |
193 | - * Set ambienteDetalle | |
194 | - * | |
195 | - * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalle | |
196 | - * @return AmbienteEspacio | |
197 | - */ | |
198 | - public function setAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalle) | |
199 | - { | |
200 | - $this->ambienteDetalle = $ambienteDetalle; | |
201 | - | |
202 | - return $this; | |
203 | - } | |
204 | - | |
205 | - /** | |
206 | - * Get ambienteDetalle | |
207 | - * | |
208 | - * @return \UBV\SurUbvBundle\Entity\AmbienteDetalle | |
209 | - */ | |
210 | - public function getAmbienteDetalle() | |
211 | - { | |
212 | - return $this->ambienteDetalle; | |
213 | - } | |
214 | -} |
src/UBV/PracticaBundle/Entity/AmbienteEspacioRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * AmbienteEspacioRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class AmbienteEspacioRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/AmbienteRepository.php
... | ... | @@ -1,34 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | -use Doctrine\ORM\Query\Expr\Join; | |
7 | - | |
8 | -use Doctrine\ORM\Query; | |
9 | - | |
10 | -/** | |
11 | - * AmbienteRepository | |
12 | - * | |
13 | - * This class was generated by the Doctrine ORM. Add your own custom | |
14 | - * repository methods below. | |
15 | - */ | |
16 | -class AmbienteRepository extends EntityRepository | |
17 | -{ | |
18 | - public function findEstadosByPaisId($parroquia_id) | |
19 | - { | |
20 | - $em = $this->getEntityManager(); | |
21 | - | |
22 | - //die(dump($pais_id)); | |
23 | - $result = $em->createQueryBuilder(); | |
24 | - | |
25 | - $dql = $result -> select ('ambiente') | |
26 | - ->from('UBVSurUbvBundle:Ambiente', 'ambiente') | |
27 | - ->Join('ambiente.parroquia', 'parroquia', 'parroquia.id = ambiente.parroquia') | |
28 | - ->where('parroquia.id = :parroquia_id') | |
29 | - ->setParameter('parroquia_id',$parroquia_id) | |
30 | - ->getQuery() | |
31 | - ->getResult(Query::HYDRATE_ARRAY); | |
32 | - return $dql; | |
33 | - } | |
34 | -} |
src/UBV/PracticaBundle/Entity/Arancel.php
... | ... | @@ -1,253 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\Arancel | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\ArancelRepository") | |
12 | - * @ORM\Table(name="arancel", uniqueConstraints={@ORM\UniqueConstraint(name="id_arancel_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class Arancel | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="arancel_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="date") | |
26 | - */ | |
27 | - protected $fecha_inicio; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\Column(type="date") | |
31 | - */ | |
32 | - protected $fecha_fin; | |
33 | - | |
34 | - /** | |
35 | - * @ORM\Column(type="string", length=120) | |
36 | - */ | |
37 | - protected $descripcion; | |
38 | - | |
39 | - /** | |
40 | - * @ORM\Column(type="float") | |
41 | - */ | |
42 | - protected $cantidad_ut; | |
43 | - | |
44 | - /** | |
45 | - * @ORM\Column(type="boolean") | |
46 | - */ | |
47 | - protected $estatus; | |
48 | - | |
49 | - /** | |
50 | - * @ORM\Column(type="boolean") | |
51 | - */ | |
52 | - protected $clase; | |
53 | - | |
54 | - /** | |
55 | - * @ORM\ManyToMany(targetEntity="Deposito", mappedBy="arancels") | |
56 | - */ | |
57 | - protected $depositos; | |
58 | - | |
59 | - public function __construct() | |
60 | - { | |
61 | - $this->depositos = new ArrayCollection(); | |
62 | - } | |
63 | - | |
64 | - public function __sleep() | |
65 | - { | |
66 | - return array('id', 'fecha_inicio', 'fecha_fin', 'descripcion', 'cantidad_ut', 'estatus', 'clase'); | |
67 | - } | |
68 | - | |
69 | - /** | |
70 | - * Get id | |
71 | - * | |
72 | - * @return integer | |
73 | - */ | |
74 | - public function getId() | |
75 | - { | |
76 | - return $this->id; | |
77 | - } | |
78 | - | |
79 | - /** | |
80 | - * Set fecha_inicio | |
81 | - * | |
82 | - * @param \DateTime $fechaInicio | |
83 | - * @return Arancel | |
84 | - */ | |
85 | - public function setFechaInicio($fechaInicio) | |
86 | - { | |
87 | - $this->fecha_inicio = $fechaInicio; | |
88 | - | |
89 | - return $this; | |
90 | - } | |
91 | - | |
92 | - /** | |
93 | - * Get fecha_inicio | |
94 | - * | |
95 | - * @return \DateTime | |
96 | - */ | |
97 | - public function getFechaInicio() | |
98 | - { | |
99 | - return $this->fecha_inicio; | |
100 | - } | |
101 | - | |
102 | - /** | |
103 | - * Set fecha_fin | |
104 | - * | |
105 | - * @param \DateTime $fechaFin | |
106 | - * @return Arancel | |
107 | - */ | |
108 | - public function setFechaFin($fechaFin) | |
109 | - { | |
110 | - $this->fecha_fin = $fechaFin; | |
111 | - | |
112 | - return $this; | |
113 | - } | |
114 | - | |
115 | - /** | |
116 | - * Get fecha_fin | |
117 | - * | |
118 | - * @return \DateTime | |
119 | - */ | |
120 | - public function getFechaFin() | |
121 | - { | |
122 | - return $this->fecha_fin; | |
123 | - } | |
124 | - | |
125 | - /** | |
126 | - * Set descripcion | |
127 | - * | |
128 | - * @param string $descripcion | |
129 | - * @return Arancel | |
130 | - */ | |
131 | - public function setDescripcion($descripcion) | |
132 | - { | |
133 | - $this->descripcion = $descripcion; | |
134 | - | |
135 | - return $this; | |
136 | - } | |
137 | - | |
138 | - /** | |
139 | - * Get descripcion | |
140 | - * | |
141 | - * @return string | |
142 | - */ | |
143 | - public function getDescripcion() | |
144 | - { | |
145 | - return $this->descripcion; | |
146 | - } | |
147 | - | |
148 | - /** | |
149 | - * Set cantidad_ut | |
150 | - * | |
151 | - * @param float $cantidadUt | |
152 | - * @return Arancel | |
153 | - */ | |
154 | - public function setCantidadUt($cantidadUt) | |
155 | - { | |
156 | - $this->cantidad_ut = $cantidadUt; | |
157 | - | |
158 | - return $this; | |
159 | - } | |
160 | - | |
161 | - /** | |
162 | - * Get cantidad_ut | |
163 | - * | |
164 | - * @return float | |
165 | - */ | |
166 | - public function getCantidadUt() | |
167 | - { | |
168 | - return $this->cantidad_ut; | |
169 | - } | |
170 | - | |
171 | - /** | |
172 | - * Set estatus | |
173 | - * | |
174 | - * @param boolean $estatus | |
175 | - * @return Arancel | |
176 | - */ | |
177 | - public function setEstatus($estatus) | |
178 | - { | |
179 | - $this->estatus = $estatus; | |
180 | - | |
181 | - return $this; | |
182 | - } | |
183 | - | |
184 | - /** | |
185 | - * Set clase | |
186 | - * | |
187 | - * @param boolean $clase | |
188 | - * @return Arancel | |
189 | - */ | |
190 | - public function setClase($clase) | |
191 | - { | |
192 | - $this->clase = $clase; | |
193 | - | |
194 | - return $this; | |
195 | - } | |
196 | - | |
197 | - /** | |
198 | - * Get clase | |
199 | - * | |
200 | - * @return boolean | |
201 | - */ | |
202 | - public function getClase() | |
203 | - { | |
204 | - return $this->clase; | |
205 | - } | |
206 | - | |
207 | - /** | |
208 | - * Get depositos | |
209 | - * | |
210 | - * @return \Doctrine\Common\Collections\Collection | |
211 | - */ | |
212 | - public function getDepositos() | |
213 | - { | |
214 | - return $this->depositos; | |
215 | - } | |
216 | - | |
217 | - public function __toString() { | |
218 | - return $this->getDescripcion(); | |
219 | - } | |
220 | - | |
221 | - /** | |
222 | - * Get estatus | |
223 | - * | |
224 | - * @return boolean | |
225 | - */ | |
226 | - public function getEstatus() | |
227 | - { | |
228 | - return $this->estatus; | |
229 | - } | |
230 | - | |
231 | - /** | |
232 | - * Add depositos | |
233 | - * | |
234 | - * @param \UBV\SurUbvBundle\Entity\Deposito $depositos | |
235 | - * @return Arancel | |
236 | - */ | |
237 | - public function addDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) | |
238 | - { | |
239 | - $this->depositos[] = $depositos; | |
240 | - | |
241 | - return $this; | |
242 | - } | |
243 | - | |
244 | - /** | |
245 | - * Remove depositos | |
246 | - * | |
247 | - * @param \UBV\SurUbvBundle\Entity\Deposito $depositos | |
248 | - */ | |
249 | - public function removeDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) | |
250 | - { | |
251 | - $this->depositos->removeElement($depositos); | |
252 | - } | |
253 | -} |
src/UBV/PracticaBundle/Entity/ArancelRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * ArancelRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class ArancelRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/AreaConocimiento.php
... | ... | @@ -1,99 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\AreaConocimiento | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AreaConocimientoRepository") | |
12 | - * @ORM\Table(name="area_conocimiento", uniqueConstraints={@ORM\UniqueConstraint(name="id_area_conocimiento_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class AreaConocimiento | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="area_conocimiento_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=45) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToOne(targetEntity="CentroEstudio", mappedBy="areaConocimiento") | |
31 | - */ | |
32 | - protected $centroEstudio; | |
33 | - | |
34 | - public function __construct() | |
35 | - { | |
36 | - $this->centroEstudios = new ArrayCollection(); | |
37 | - } | |
38 | - | |
39 | - public function __sleep() | |
40 | - { | |
41 | - return array('id', 'descripcion'); | |
42 | - } | |
43 | - | |
44 | - /** | |
45 | - * Get id | |
46 | - * | |
47 | - * @return integer | |
48 | - */ | |
49 | - public function getId() | |
50 | - { | |
51 | - return $this->id; | |
52 | - } | |
53 | - | |
54 | - /** | |
55 | - * Set descripcion | |
56 | - * | |
57 | - * @param string $descripcion | |
58 | - * @return AreaConocimiento | |
59 | - */ | |
60 | - public function setDescripcion($descripcion) | |
61 | - { | |
62 | - $this->descripcion = $descripcion; | |
63 | - | |
64 | - return $this; | |
65 | - } | |
66 | - | |
67 | - /** | |
68 | - * Get descripcion | |
69 | - * | |
70 | - * @return string | |
71 | - */ | |
72 | - public function getDescripcion() | |
73 | - { | |
74 | - return $this->descripcion; | |
75 | - } | |
76 | - | |
77 | - /** | |
78 | - * Set centroEstudio | |
79 | - * | |
80 | - * @param \UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio | |
81 | - * @return AreaConocimiento | |
82 | - */ | |
83 | - public function setCentroEstudio(\UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio = null) | |
84 | - { | |
85 | - $this->centroEstudio = $centroEstudio; | |
86 | - | |
87 | - return $this; | |
88 | - } | |
89 | - | |
90 | - /** | |
91 | - * Get centroEstudio | |
92 | - * | |
93 | - * @return \UBV\SurUbvBundle\Entity\CentroEstudio | |
94 | - */ | |
95 | - public function getCentroEstudio() | |
96 | - { | |
97 | - return $this->centroEstudio; | |
98 | - } | |
99 | -} |
src/UBV/PracticaBundle/Entity/AreaConocimientoRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * AreaConocimientoRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class AreaConocimientoRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/Aspirante.php
... | ... | @@ -1,446 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Symfony\Component\Validator\Constraints as Assert; | |
7 | -/** | |
8 | - * UBV\SurUbvBundle\Entity\Aspirante | |
9 | - * | |
10 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AspiranteRepository") | |
11 | - * @ORM\Table(name="aspirante", indexes={@ORM\Index(name="fk_aspirante_persona1_idx", columns={"persona_id"}), @ORM\Index(name="fk_aspirante_aspirante_tipo1_idx", columns={"aspirante_tipo_id"}), @ORM\Index(name="fk_aspirante_grado_academico1_idx", columns={"grado_academico_id"}), @ORM\Index(name="fk_aspirante_aldea1_idx", columns={"aldea_id"}), @ORM\Index(name="fk_aspirante_programa1_idx", columns={"programa_id"}), @ORM\Index(name="fk_aspirante_aspirante_estatus1_idx", columns={"aspirante_estatus_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_aspirante_UNIQUE", columns={"id"})}) | |
12 | - */ | |
13 | -class Aspirante | |
14 | -{ | |
15 | - /** | |
16 | - * @ORM\Id | |
17 | - * @ORM\Column(type="integer") | |
18 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
19 | - * @ORM\SequenceGenerator(sequenceName="aspirante_id_seq", allocationSize=1, initialValue=1) | |
20 | - */ | |
21 | - protected $id; | |
22 | - | |
23 | - /** | |
24 | - * @Assert\NotNull(message= "Por favor introduzca el objetivo de la solicitud", groups={"Default"}) | |
25 | - * @Assert\NotBlank( message= "Por favor introduzca el objetivo de la solicitud", groups={"Default"}) | |
26 | - * | |
27 | - * @ORM\Column(type="float", nullable=true) | |
28 | - */ | |
29 | - protected $promedio_nota; | |
30 | - | |
31 | - /** | |
32 | - * @Assert\NotBlank( message= "Por favor introduzca el objetivo de la solicitud", groups={"Default"}) | |
33 | - * @ORM\Column(type="date", nullable=false) | |
34 | - */ | |
35 | - protected $ano_grado; | |
36 | - | |
37 | - /** | |
38 | - * @Assert\NotBlank( message= "Por favor introduzca el objetivo de la solicitud", groups={"Default"}) | |
39 | - * @ORM\Column(type="string", length=10, nullable=false) | |
40 | - */ | |
41 | - protected $periodo_asignado; | |
42 | - | |
43 | - /** | |
44 | - * @Assert\NotNull(message= "Por favor introduzca el objetivo de la solicitud", groups={"Pre-Grado"}) | |
45 | - * @Assert\NotBlank( message= "Por favor introduzca el objetivo de la solicitud", groups={"Pre-Grado"}) | |
46 | - * @ORM\Column(type="string", length=15, nullable=true) | |
47 | - */ | |
48 | - protected $codigo_opsu; | |
49 | - | |
50 | - /** | |
51 | - * @ORM\Column(type="string", length=70, nullable=false) | |
52 | - * @Assert\NotBlank( message= "Por favor introduzca el objetivo de la solicitud", groups={"Default"}) | |
53 | - * ) | |
54 | - */ | |
55 | - protected $institucion_tipo; | |
56 | - | |
57 | - /** | |
58 | - * @ORM\Column(type="string", length=70, nullable=false) | |
59 | - * | |
60 | - * @Assert\NotBlank( message= "Por favor introduzca el objetivo de la solicitud", groups={"Default"}) | |
61 | - * ) | |
62 | - */ | |
63 | - protected $institucion; | |
64 | - | |
65 | - /** | |
66 | - * @ORM\Column(type="boolean", nullable=false) | |
67 | - */ | |
68 | - protected $trabajo; | |
69 | - | |
70 | - /** | |
71 | - * @ORM\ManyToOne(targetEntity="Persona", inversedBy="aspirantes") | |
72 | - * @ORM\JoinColumn(name="persona_id", referencedColumnName="id", nullable=false) | |
73 | - */ | |
74 | - protected $persona; | |
75 | - | |
76 | - /** | |
77 | - * @ORM\ManyToOne(targetEntity="AspiranteTipo", inversedBy="aspirantes") | |
78 | - * @ORM\JoinColumn(name="aspirante_tipo_id", referencedColumnName="id", nullable=false) | |
79 | - */ | |
80 | - protected $aspiranteTipo; | |
81 | - | |
82 | - /** | |
83 | - * @ORM\ManyToOne(targetEntity="GradoAcademico", inversedBy="aspirantes") | |
84 | - * @ORM\JoinColumn(name="grado_academico_id", referencedColumnName="id", nullable=false) | |
85 | - */ | |
86 | - protected $gradoAcademico; | |
87 | - | |
88 | - /** | |
89 | - * @ORM\ManyToOne(targetEntity="Aldea", inversedBy="aspirantes") | |
90 | - * @ORM\JoinColumn(name="aldea_id", referencedColumnName="id", nullable=false) | |
91 | - */ | |
92 | - protected $aldea; | |
93 | - | |
94 | - /** | |
95 | - * @ORM\ManyToOne(targetEntity="Programa", inversedBy="aspirantes") | |
96 | - * @ORM\JoinColumn(name="programa_id", referencedColumnName="id", nullable=false) | |
97 | - */ | |
98 | - protected $programa; | |
99 | - | |
100 | - /** | |
101 | - * @ORM\ManyToOne(targetEntity="AspiranteEstatus", inversedBy="aspirantes") | |
102 | - * @ORM\JoinColumn(name="aspirante_estatus_id", referencedColumnName="id", nullable=false) | |
103 | - */ | |
104 | - protected $aspiranteEstatus; | |
105 | - | |
106 | - public function __construct() | |
107 | - { | |
108 | - } | |
109 | - | |
110 | - public function __sleep() | |
111 | - { | |
112 | - return array('id', 'promedio_nota', 'aรฑo_grado', 'periodo_asignado', 'codigo_opsu', 'persona_id', 'aspirante_tipo_id', 'grado_academico_id', 'aldea_id', 'programa_id', 'aspirante_estatus_id', 'institucion_tipo', 'institucion', 'trabajo'); | |
113 | - } | |
114 | - | |
115 | - /** | |
116 | - * Get id | |
117 | - * | |
118 | - * @return integer | |
119 | - */ | |
120 | - public function getId() | |
121 | - { | |
122 | - return $this->id; | |
123 | - } | |
124 | - | |
125 | - /** | |
126 | - * Set promedio_nota | |
127 | - * | |
128 | - * @param float $promedioNota | |
129 | - * @return Aspirante | |
130 | - */ | |
131 | - public function setPromedioNota($promedioNota) | |
132 | - { | |
133 | - $this->promedio_nota = $promedioNota; | |
134 | - | |
135 | - return $this; | |
136 | - } | |
137 | - | |
138 | - /** | |
139 | - * Get promedio_nota | |
140 | - * | |
141 | - * @return float | |
142 | - */ | |
143 | - public function getPromedioNota() | |
144 | - { | |
145 | - return $this->promedio_nota; | |
146 | - } | |
147 | - | |
148 | - /** | |
149 | - * Set aรฑo_grado | |
150 | - * | |
151 | - * @param integer $aรฑoGrado | |
152 | - * @return Aspirante | |
153 | - */ | |
154 | - public function setAรฑoGrado($aรฑoGrado) | |
155 | - { | |
156 | - $this->aรฑo_grado = $aรฑoGrado; | |
157 | - | |
158 | - return $this; | |
159 | - } | |
160 | - | |
161 | - /** | |
162 | - * Get aรฑo_grado | |
163 | - * | |
164 | - * @return integer | |
165 | - */ | |
166 | - public function getAรฑoGrado() | |
167 | - { | |
168 | - return $this->aรฑo_grado; | |
169 | - } | |
170 | - | |
171 | - /** | |
172 | - * Set periodo_asignado | |
173 | - * | |
174 | - * @param string $periodoAsignado | |
175 | - * @return Aspirante | |
176 | - */ | |
177 | - public function setPeriodoAsignado($periodoAsignado) | |
178 | - { | |
179 | - $this->periodo_asignado = $periodoAsignado; | |
180 | - | |
181 | - return $this; | |
182 | - } | |
183 | - | |
184 | - /** | |
185 | - * Get periodo_asignado | |
186 | - * | |
187 | - * @return string | |
188 | - */ | |
189 | - public function getPeriodoAsignado() | |
190 | - { | |
191 | - return $this->periodo_asignado; | |
192 | - } | |
193 | - | |
194 | - /** | |
195 | - * Set codigo_opsu | |
196 | - * | |
197 | - * @param string $codigoOpsu | |
198 | - * @return Aspirante | |
199 | - */ | |
200 | - public function setCodigoOpsu($codigoOpsu) | |
201 | - { | |
202 | - $this->codigo_opsu = $codigoOpsu; | |
203 | - | |
204 | - return $this; | |
205 | - } | |
206 | - | |
207 | - /** | |
208 | - * Get codigo_opsu | |
209 | - * | |
210 | - * @return string | |
211 | - */ | |
212 | - public function getCodigoOpsu() | |
213 | - { | |
214 | - return $this->codigo_opsu; | |
215 | - } | |
216 | - | |
217 | - /** | |
218 | - * Set institucion_tipo | |
219 | - * | |
220 | - * @param string $institucionTipo | |
221 | - * @return Aspirante | |
222 | - */ | |
223 | - public function setInstitucionTipo($institucionTipo) | |
224 | - { | |
225 | - $this->institucion_tipo = $institucionTipo; | |
226 | - | |
227 | - return $this; | |
228 | - } | |
229 | - | |
230 | - /** | |
231 | - * Get institucion_tipo | |
232 | - * | |
233 | - * @return string | |
234 | - */ | |
235 | - public function getInstitucionTipo() | |
236 | - { | |
237 | - return $this->institucion_tipo; | |
238 | - } | |
239 | - | |
240 | - /** | |
241 | - * Set institucion | |
242 | - * | |
243 | - * @param string $institucion | |
244 | - * @return Aspirante | |
245 | - */ | |
246 | - public function setInstitucion($institucion) | |
247 | - { | |
248 | - $this->institucion = $institucion; | |
249 | - | |
250 | - return $this; | |
251 | - } | |
252 | - | |
253 | - /** | |
254 | - * Get institucion | |
255 | - * | |
256 | - * @return string | |
257 | - */ | |
258 | - public function getInstitucion() | |
259 | - { | |
260 | - return $this->institucion; | |
261 | - } | |
262 | - | |
263 | - /** | |
264 | - * Set trabajo | |
265 | - * | |
266 | - * @param boolean $trabajo | |
267 | - * @return Aspirante | |
268 | - */ | |
269 | - public function setTrabajo($trabajo) | |
270 | - { | |
271 | - $this->trabajo = $trabajo; | |
272 | - | |
273 | - return $this; | |
274 | - } | |
275 | - | |
276 | - /** | |
277 | - * Get trabajo | |
278 | - * | |
279 | - * @return boolean | |
280 | - */ | |
281 | - public function getTrabajo() | |
282 | - { | |
283 | - return $this->trabajo; | |
284 | - } | |
285 | - | |
286 | - /** | |
287 | - * Set persona | |
288 | - * | |
289 | - * @param \UBV\SurUbvBundle\Entity\Persona $persona | |
290 | - * @return Aspirante | |
291 | - */ | |
292 | - public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona = null) | |
293 | - { | |
294 | - $this->persona = $persona; | |
295 | - | |
296 | - return $this; | |
297 | - } | |
298 | - | |
299 | - /** | |
300 | - * Get persona | |
301 | - * | |
302 | - * @return \UBV\SurUbvBundle\Entity\Persona | |
303 | - */ | |
304 | - public function getPersona() | |
305 | - { | |
306 | - return $this->persona; | |
307 | - } | |
308 | - | |
309 | - /** | |
310 | - * Set aspiranteTipo | |
311 | - * | |
312 | - * @param \UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo | |
313 | - * @return Aspirante | |
314 | - */ | |
315 | - public function setAspiranteTipo(\UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo) | |
316 | - { | |
317 | - $this->aspiranteTipo = $aspiranteTipo; | |
318 | - | |
319 | - return $this; | |
320 | - } | |
321 | - | |
322 | - /** | |
323 | - * Get aspiranteTipo | |
324 | - * | |
325 | - * @return \UBV\SurUbvBundle\Entity\AspiranteTipo | |
326 | - */ | |
327 | - public function getAspiranteTipo() | |
328 | - { | |
329 | - return $this->aspiranteTipo; | |
330 | - } | |
331 | - | |
332 | - /** | |
333 | - * Set gradoAcademico | |
334 | - * | |
335 | - * @param \UBV\SurUbvBundle\Entity\GradoAcademico $gradoAcademico | |
336 | - * @return Aspirante | |
337 | - */ | |
338 | - public function setGradoAcademico(\UBV\SurUbvBundle\Entity\GradoAcademico $gradoAcademico) | |
339 | - { | |
340 | - $this->gradoAcademico = $gradoAcademico; | |
341 | - | |
342 | - return $this; | |
343 | - } | |
344 | - | |
345 | - /** | |
346 | - * Get gradoAcademico | |
347 | - * | |
348 | - * @return \UBV\SurUbvBundle\Entity\GradoAcademico | |
349 | - */ | |
350 | - public function getGradoAcademico() | |
351 | - { | |
352 | - return $this->gradoAcademico; | |
353 | - } | |
354 | - | |
355 | - /** | |
356 | - * Set aldea | |
357 | - * | |
358 | - * @param \UBV\SurUbvBundle\Entity\Aldea $aldea | |
359 | - * @return Aspirante | |
360 | - */ | |
361 | - public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) | |
362 | - { | |
363 | - $this->aldea = $aldea; | |
364 | - | |
365 | - return $this; | |
366 | - } | |
367 | - | |
368 | - /** | |
369 | - * Get aldea | |
370 | - * | |
371 | - * @return \UBV\SurUbvBundle\Entity\Aldea | |
372 | - */ | |
373 | - public function getAldea() | |
374 | - { | |
375 | - return $this->aldea; | |
376 | - } | |
377 | - | |
378 | - /** | |
379 | - * Set programa | |
380 | - * | |
381 | - * @param \UBV\SurUbvBundle\Entity\Programa $programa | |
382 | - * @return Aspirante | |
383 | - */ | |
384 | - public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) | |
385 | - { | |
386 | - $this->programa = $programa; | |
387 | - | |
388 | - return $this; | |
389 | - } | |
390 | - | |
391 | - /** | |
392 | - * Get programa | |
393 | - * | |
394 | - * @return \UBV\SurUbvBundle\Entity\Programa | |
395 | - */ | |
396 | - public function getPrograma() | |
397 | - { | |
398 | - return $this->programa; | |
399 | - } | |
400 | - | |
401 | - /** | |
402 | - * Set aspiranteEstatus | |
403 | - * | |
404 | - * @param \UBV\SurUbvBundle\Entity\AspiranteEstatus $aspiranteEstatus | |
405 | - * @return Aspirante | |
406 | - */ | |
407 | - public function setAspiranteEstatus(\UBV\SurUbvBundle\Entity\AspiranteEstatus $aspiranteEstatus) | |
408 | - { | |
409 | - $this->aspiranteEstatus = $aspiranteEstatus; | |
410 | - | |
411 | - return $this; | |
412 | - } | |
413 | - | |
414 | - /** | |
415 | - * Get aspiranteEstatus | |
416 | - * | |
417 | - * @return \UBV\SurUbvBundle\Entity\AspiranteEstatus | |
418 | - */ | |
419 | - public function getAspiranteEstatus() | |
420 | - { | |
421 | - return $this->aspiranteEstatus; | |
422 | - } | |
423 | - | |
424 | - /** | |
425 | - * Set ano_grado | |
426 | - * | |
427 | - * @param integer $anoGrado | |
428 | - * @return Aspirante | |
429 | - */ | |
430 | - public function setAnoGrado($anoGrado) | |
431 | - { | |
432 | - $this->ano_grado = $anoGrado; | |
433 | - | |
434 | - return $this; | |
435 | - } | |
436 | - | |
437 | - /** | |
438 | - * Get ano_grado | |
439 | - * | |
440 | - * @return integer | |
441 | - */ | |
442 | - public function getAnoGrado() | |
443 | - { | |
444 | - return $this->ano_grado; | |
445 | - } | |
446 | -} |
src/UBV/PracticaBundle/Entity/AspiranteEstatus.php
... | ... | @@ -1,177 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\AspiranteEstatus | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AspiranteEstatusRepository") | |
12 | - * @ORM\Table(name="aspirante_estatus", uniqueConstraints={@ORM\UniqueConstraint(name="id_aspirante_estatus_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class AspiranteEstatus | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="aspirante_estatus_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=45) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="Aspirante", mappedBy="aspiranteEstatus") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="aspirante_estatus_id", nullable=false) | |
32 | - */ | |
33 | - protected $aspirantes; | |
34 | - | |
35 | - /** | |
36 | - * @ORM\OneToMany(targetEntity="Candidato", mappedBy="aspiranteEstatus") | |
37 | - * @ORM\JoinColumn(name="id", referencedColumnName="aspirante_estatus_id", nullable=false) | |
38 | - */ | |
39 | - protected $candidatos; | |
40 | - | |
41 | - public function __construct() | |
42 | - { | |
43 | - $this->candidatos = new ArrayCollection(); | |
44 | - $this->aspirantes = new ArrayCollection(); | |
45 | - } | |
46 | - | |
47 | - public function __sleep() | |
48 | - { | |
49 | - return array('id', 'descripcion'); | |
50 | - } | |
51 | - | |
52 | - /** | |
53 | - * Get id | |
54 | - * | |
55 | - * @return integer | |
56 | - */ | |
57 | - public function getId() | |
58 | - { | |
59 | - return $this->id; | |
60 | - } | |
61 | - | |
62 | - /** | |
63 | - * Set descripcion | |
64 | - * | |
65 | - * @param string $descripcion | |
66 | - * @return AspiranteEstatus | |
67 | - */ | |
68 | - public function setDesripcion($descripcion) | |
69 | - { | |
70 | - $this->descripcion = $descripcion; | |
71 | - | |
72 | - return $this; | |
73 | - } | |
74 | - | |
75 | - /** | |
76 | - * Get descripcion | |
77 | - * | |
78 | - * @return string | |
79 | - */ | |
80 | - public function getDesripcion() | |
81 | - { | |
82 | - return $this->descripcion; | |
83 | - } | |
84 | - | |
85 | - /** | |
86 | - * Add aspirantes | |
87 | - * | |
88 | - * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes | |
89 | - * @return AspiranteEstatus | |
90 | - */ | |
91 | - public function addAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) | |
92 | - { | |
93 | - $this->aspirantes[] = $aspirantes; | |
94 | - | |
95 | - return $this; | |
96 | - } | |
97 | - | |
98 | - /** | |
99 | - * Remove aspirantes | |
100 | - * | |
101 | - * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes | |
102 | - */ | |
103 | - public function removeAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) | |
104 | - { | |
105 | - $this->aspirantes->removeElement($aspirantes); | |
106 | - } | |
107 | - | |
108 | - /** | |
109 | - * Get aspirantes | |
110 | - * | |
111 | - * @return \Doctrine\Common\Collections\Collection | |
112 | - */ | |
113 | - public function getAspirantes() | |
114 | - { | |
115 | - return $this->aspirantes; | |
116 | - } | |
117 | - | |
118 | - public function __toString(){ | |
119 | - return $this->getDesripcion(); | |
120 | - } | |
121 | - | |
122 | - /** | |
123 | - * Set descripcion | |
124 | - * | |
125 | - * @param string $descripcion | |
126 | - * @return AspiranteEstatus | |
127 | - */ | |
128 | - public function setDescripcion($descripcion) | |
129 | - { | |
130 | - $this->descripcion = $descripcion; | |
131 | - | |
132 | - return $this; | |
133 | - } | |
134 | - | |
135 | - /** | |
136 | - * Get descripcion | |
137 | - * | |
138 | - * @return string | |
139 | - */ | |
140 | - public function getDescripcion() | |
141 | - { | |
142 | - return $this->descripcion; | |
143 | - } | |
144 | - | |
145 | - /** | |
146 | - * Add candidatos | |
147 | - * | |
148 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
149 | - * @return AspiranteEstatus | |
150 | - */ | |
151 | - public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
152 | - { | |
153 | - $this->candidatos[] = $candidatos; | |
154 | - | |
155 | - return $this; | |
156 | - } | |
157 | - | |
158 | - /** | |
159 | - * Remove candidatos | |
160 | - * | |
161 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
162 | - */ | |
163 | - public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
164 | - { | |
165 | - $this->candidatos->removeElement($candidatos); | |
166 | - } | |
167 | - | |
168 | - /** | |
169 | - * Get candidatos | |
170 | - * | |
171 | - * @return \Doctrine\Common\Collections\Collection | |
172 | - */ | |
173 | - public function getCandidatos() | |
174 | - { | |
175 | - return $this->candidatos; | |
176 | - } | |
177 | -} |
src/UBV/PracticaBundle/Entity/AspiranteEstatusRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * AspiranteEstatusRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class AspiranteEstatusRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/AspiranteRepository.php
... | ... | @@ -1,88 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | -use Doctrine\ORM\Query\Expr\Join; | |
7 | -use Doctrine\ORM\Query; | |
8 | - | |
9 | -/** | |
10 | - * AspiranteRepository | |
11 | - * | |
12 | - * This class was generated by the Doctrine ORM. Add your own custom | |
13 | - * repository methods below. | |
14 | - */ | |
15 | -class AspiranteRepository extends EntityRepository | |
16 | -{ | |
17 | - public function findObjetoAspiranteByPersonaId($personaId, $programaTipo) { | |
18 | - $em = $this->getEntityManager(); | |
19 | - //die(var_dump($programaTipo)); | |
20 | - $result = $em->createQueryBuilder(); | |
21 | - | |
22 | - $dql = $result->select('aspirante') | |
23 | - ->from('UBVSurUbvBundle:Aspirante', 'aspirante') | |
24 | - ->Join('aspirante.persona', 'persona', 'aspirante.persona_id = persona.id') | |
25 | - ->Join('aspirante.programa', 'programa', 'aspirante.programa_id = programa.id') | |
26 | - ->Join('programa.programaTipo', 'tipoPrograma', 'programa.programa_tipo_id = tipoPrograma.id') | |
27 | - //->innerJoin('persona.estudianteDocumentos', 'documentos', 'persona.id = documentos.persona_id') | |
28 | - ->where('persona.id = :personaId') | |
29 | - ->AndWhere('programa.id = :programaId') | |
30 | - //->Andwhere('documentos.estatus = :estatusDocumentos') | |
31 | - ->setParameter('personaId', $personaId) | |
32 | - ->setParameter('programaId', $programaTipo) | |
33 | - //->setParameter('estatusDocumentos', true) | |
34 | - ->getQuery() | |
35 | - ->getOneOrNullResult(); | |
36 | - | |
37 | - //die(var_dump($dql)); | |
38 | - return $dql; | |
39 | - } | |
40 | - | |
41 | - public function findDatosAspirantes() { | |
42 | - | |
43 | - $em = $this->getEntityManager(); | |
44 | - | |
45 | - | |
46 | - //$primerNombre = $datos_form["primerNombre"]; | |
47 | - //$segundoNombre = $datos_form["segundoNombre"]; | |
48 | - //$primerApellido = $datos_form["primerApellido"]; | |
49 | - //$segundoApellido = $datos_form["segundoApellido"]; | |
50 | - | |
51 | - //$correoPersonal = $datos_form["correoPersonal"]; | |
52 | - | |
53 | - | |
54 | - $periodoAIniciar = $em->getRepository("UBVSurUbvBundle:PeriodoAcademico")->findObjetoPeriodoAcademicoByEstatus("Por Iniciar"); | |
55 | - //die(dump($periodoAIniciar["descripcion"])); | |
56 | - $result = $em->createQueryBuilder(); | |
57 | - | |
58 | - $dql = $result->select('aspirante.id as aspiranteId, aspirante.periodo_asignado as Periodo','aldea.descripcion as Aldea','aspiranteTipo.descripcion as aspiranteTipoDescripcion', | |
59 | - 'persona.id as personaId, persona.primer_nombre as primerNombre, persona.segundo_nombre as segundoNombre, persona.primer_apellido as primerApellido,' | |
60 | - .'persona.segundo_apellido as segundoApellido','programa.descripcion as ProgramaAsignado','documentoIdentidad.identificacion as Identificacion', | |
61 | - 'documentoIdentidadTipo.descripcion as DocumentoidentidadTipoDescripcion' | |
62 | - ) | |
63 | - ->from('UBVSurUbvBundle:Aspirante', 'aspirante') | |
64 | - ->leftJoin('aspirante.persona','persona','aspirante.persona_id = persona.id') | |
65 | - ->leftJoin('aspirante.aldea','aldea','aspirante.aldea_id = aldea.id') | |
66 | - ->leftJoin('aspirante.aspiranteTipo','aspiranteTipo','aspirante.tipo_id = aspiranteTipo.id') | |
67 | - ->leftJoin('aspirante.programa','programa','aspirante.programa_id = programa.id') | |
68 | - ->leftJoin('persona.personaNacionalidads','documentoIdentidad','persona.id = documentoIdentidad.persona_id') | |
69 | - ->leftJoin('documentoIdentidad.documentoIdentidadTipo','documentoIdentidadTipo','documentoIdentidad.documento>_identidad_tipo_id = documentoIdentidadTipo.id') | |
70 | - | |
71 | - ->where('aspirante.periodo_asignado LIKE :periodoAIniciar') | |
72 | - | |
73 | - ->setParameter('periodoAIniciar', '%' . $periodoAIniciar["descripcion"] . '%') | |
74 | - ->getQuery() | |
75 | - ->getResult(Query::HYDRATE_ARRAY); | |
76 | - | |
77 | - //die(dump($dql)); | |
78 | - | |
79 | - if (!empty($dql)) { | |
80 | - //die(var_dump($dql)); | |
81 | - return $dql; | |
82 | - } else { | |
83 | - //die("no trae nada"); | |
84 | - return false; | |
85 | - } | |
86 | - } | |
87 | - | |
88 | -} |
src/UBV/PracticaBundle/Entity/AspiranteTipo.php
... | ... | @@ -1,194 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\AspiranteTipo | |
10 | - * | |
11 | - * @ORM\Entity() | |
12 | - * @ORM\Table(name="aspirante_tipo", uniqueConstraints={@ORM\UniqueConstraint(name="id_aspirante_tipo_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class AspiranteTipo | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="aspirante_tipo_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=45) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="Aspirante", mappedBy="aspiranteTipo") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="aspirante_tipo_id", nullable=false) | |
32 | - */ | |
33 | - protected $aspirantes; | |
34 | - | |
35 | - /** | |
36 | - * @ORM\OneToMany(targetEntity="Candidato", mappedBy="aspiranteTipo") | |
37 | - * @ORM\JoinColumn(name="id", referencedColumnName="aspirante_tipo_id", nullable=false) | |
38 | - */ | |
39 | - protected $candidatos; | |
40 | - | |
41 | - /** | |
42 | - * @ORM\OneToMany(targetEntity="Estudiante", mappedBy="aspiranteTipo") | |
43 | - * @ORM\JoinColumn(name="id", referencedColumnName="aspirante_tipo_id", nullable=false) | |
44 | - */ | |
45 | - protected $estudiantes; | |
46 | - | |
47 | - public function __construct() | |
48 | - { | |
49 | - $this->aspirantes = new ArrayCollection(); | |
50 | - $this->candidatos = new ArrayCollection(); | |
51 | - $this->estudiantes = new ArrayCollection(); | |
52 | - } | |
53 | - | |
54 | - public function __sleep() | |
55 | - { | |
56 | - return array('id', 'descripcion'); | |
57 | - } | |
58 | - | |
59 | - /** | |
60 | - * Get id | |
61 | - * | |
62 | - * @return integer | |
63 | - */ | |
64 | - public function getId() | |
65 | - { | |
66 | - return $this->id; | |
67 | - } | |
68 | - | |
69 | - /** | |
70 | - * Set descripcion | |
71 | - * | |
72 | - * @param string $descripcion | |
73 | - * @return AspiranteTipo | |
74 | - */ | |
75 | - public function setDescripcion($descripcion) | |
76 | - { | |
77 | - $this->descripcion = $descripcion; | |
78 | - | |
79 | - return $this; | |
80 | - } | |
81 | - | |
82 | - /** | |
83 | - * Get descripcion | |
84 | - * | |
85 | - * @return string | |
86 | - */ | |
87 | - public function getDescripcion() | |
88 | - { | |
89 | - return $this->descripcion; | |
90 | - } | |
91 | - | |
92 | - /** | |
93 | - * Add aspirantes | |
94 | - * | |
95 | - * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes | |
96 | - * @return AspiranteTipo | |
97 | - */ | |
98 | - public function addAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) | |
99 | - { | |
100 | - $this->aspirantes[] = $aspirantes; | |
101 | - | |
102 | - return $this; | |
103 | - } | |
104 | - | |
105 | - /** | |
106 | - * Remove aspirantes | |
107 | - * | |
108 | - * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes | |
109 | - */ | |
110 | - public function removeAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) | |
111 | - { | |
112 | - $this->aspirantes->removeElement($aspirantes); | |
113 | - } | |
114 | - | |
115 | - /** | |
116 | - * Get aspirantes | |
117 | - * | |
118 | - * @return \Doctrine\Common\Collections\Collection | |
119 | - */ | |
120 | - public function getAspirantes() | |
121 | - { | |
122 | - return $this->aspirantes; | |
123 | - } | |
124 | - | |
125 | - /** | |
126 | - * Add estudiantes | |
127 | - * | |
128 | - * @param \UBV\SurUbvBundle\Entity\Estudiante $estudiantes | |
129 | - * @return AspiranteTipo | |
130 | - */ | |
131 | - public function addEstudiante(\UBV\SurUbvBundle\Entity\Estudiante $estudiantes) | |
132 | - { | |
133 | - $this->estudiantes[] = $estudiantes; | |
134 | - | |
135 | - return $this; | |
136 | - } | |
137 | - | |
138 | - /** | |
139 | - * Remove estudiantes | |
140 | - * | |
141 | - * @param \UBV\SurUbvBundle\Entity\Estudiante $estudiantes | |
142 | - */ | |
143 | - public function removeEstudiante(\UBV\SurUbvBundle\Entity\Estudiante $estudiantes) | |
144 | - { | |
145 | - $this->estudiantes->removeElement($estudiantes); | |
146 | - } | |
147 | - | |
148 | - /** | |
149 | - * Get estudiantes | |
150 | - * | |
151 | - * @return \Doctrine\Common\Collections\Collection | |
152 | - */ | |
153 | - public function getEstudiantes() | |
154 | - { | |
155 | - return $this->estudiantes; | |
156 | - } | |
157 | - | |
158 | - public function __toString(){ | |
159 | - return $this->getDescripcion(); | |
160 | - } | |
161 | - | |
162 | - /** | |
163 | - * Add candidatos | |
164 | - * | |
165 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
166 | - * @return AspiranteTipo | |
167 | - */ | |
168 | - public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
169 | - { | |
170 | - $this->candidatos[] = $candidatos; | |
171 | - | |
172 | - return $this; | |
173 | - } | |
174 | - | |
175 | - /** | |
176 | - * Remove candidatos | |
177 | - * | |
178 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
179 | - */ | |
180 | - public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
181 | - { | |
182 | - $this->candidatos->removeElement($candidatos); | |
183 | - } | |
184 | - | |
185 | - /** | |
186 | - * Get candidatos | |
187 | - * | |
188 | - * @return \Doctrine\Common\Collections\Collection | |
189 | - */ | |
190 | - public function getCandidatos() | |
191 | - { | |
192 | - return $this->candidatos; | |
193 | - } | |
194 | -} |
src/UBV/PracticaBundle/Entity/Banco.php
... | ... | @@ -1,157 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | -use Symfony\Component\Validator\Constraints as Assert; | |
8 | - | |
9 | -/** | |
10 | - * UBV\SurUbvBundle\Entity\Banco | |
11 | - * | |
12 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\BancoRepository") | |
13 | - * @ORM\Table(name="banco", uniqueConstraints={@ORM\UniqueConstraint(name="id_banco_UNIQUE", columns={"id"})}) | |
14 | - */ | |
15 | -class Banco | |
16 | -{ | |
17 | - /** | |
18 | - * @ORM\Id | |
19 | - * @ORM\Column(type="integer") | |
20 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
21 | - * @ORM\SequenceGenerator(sequenceName="banco_id_seq", allocationSize=1, initialValue=1) | |
22 | - */ | |
23 | - protected $id; | |
24 | - | |
25 | - /** | |
26 | - *@ORM\Column(type="string", length=150) | |
27 | - *@Assert\NotBlank( message= "Por favor introduzca la Descripciรณn del Banco") | |
28 | - *@Assert\NotNull(message= "Por favor introduzca la Descripciรณn del Banco", groups={"Default"}) | |
29 | - *@Assert\Length( | |
30 | - * min = 5, | |
31 | - * max = 150, | |
32 | - * minMessage = "Por favor introduzca un Nombre de Banco mรกs especรญfico. Mรญnimo {{ limit }} caracteres", | |
33 | - * maxMessage = "Por favor introduzca un Nombre de Banco mรกs breve. Mรกximo {{ limit }} caracteres", | |
34 | - *) | |
35 | - */ | |
36 | - protected $descripcion; | |
37 | - | |
38 | - /** | |
39 | - * @ORM\Column(type="string", length=15, nullable=true) | |
40 | - * @Assert\NotBlank( message= "Por favor introduzca el Cรณdigo del Banco") | |
41 | - * @Assert\Length( | |
42 | - * min = 5, | |
43 | - * max = 15, | |
44 | - * exactMessage = "Por favor introduzca un codigo Vรกlido. debe tener {{ limit }} caracteres", | |
45 | - * minMessage = "Por favor introduzca un codigo Vรกlido. Mรญnimo {{ limit }} caracteres", | |
46 | - * maxMessage = "Por favor introduzca un codigo Vรกlido. Mรกximo {{ limit }} caracteres", | |
47 | - * | |
48 | - * ) | |
49 | - * @Assert\NotNull(message="Este Campo no puede Ser Nulo") | |
50 | - */ | |
51 | - protected $codigo; | |
52 | - | |
53 | - /** | |
54 | - * @ORM\OneToMany(targetEntity="CuentaBancaria", mappedBy="banco") | |
55 | - * @ORM\JoinColumn(name="id", referencedColumnName="banco_id", nullable=false) | |
56 | - */ | |
57 | - protected $cuentaBancarias; | |
58 | - | |
59 | - public function __construct() | |
60 | - { | |
61 | - $this->cuentaBancarias = new ArrayCollection(); | |
62 | - } | |
63 | - | |
64 | - public function __sleep() | |
65 | - { | |
66 | - return array('id', 'descripcion', 'codigo'); | |
67 | - } | |
68 | - | |
69 | - /** | |
70 | - * Get id | |
71 | - * | |
72 | - * @return integer | |
73 | - */ | |
74 | - public function getId() | |
75 | - { | |
76 | - return $this->id; | |
77 | - } | |
78 | - | |
79 | - /** | |
80 | - * Set descripcion | |
81 | - * | |
82 | - * @param string $descripcion | |
83 | - * @return Banco | |
84 | - */ | |
85 | - public function setDescripcion($descripcion) | |
86 | - { | |
87 | - $this->descripcion = $descripcion; | |
88 | - | |
89 | - return $this; | |
90 | - } | |
91 | - | |
92 | - /** | |
93 | - * Get descripcion | |
94 | - * | |
95 | - * @return string | |
96 | - */ | |
97 | - public function getDescripcion() | |
98 | - { | |
99 | - return $this->descripcion; | |
100 | - } | |
101 | - | |
102 | - /** | |
103 | - * Set codigo | |
104 | - * | |
105 | - * @param string $codigo | |
106 | - * @return Banco | |
107 | - */ | |
108 | - public function setCodigo($codigo) | |
109 | - { | |
110 | - $this->codigo = $codigo; | |
111 | - | |
112 | - return $this; | |
113 | - } | |
114 | - | |
115 | - /** | |
116 | - * Get codigo | |
117 | - * | |
118 | - * @return string | |
119 | - */ | |
120 | - public function getCodigo() | |
121 | - { | |
122 | - return $this->codigo; | |
123 | - } | |
124 | - | |
125 | - /** | |
126 | - * Add cuentaBancarias | |
127 | - * | |
128 | - * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias | |
129 | - * @return Banco | |
130 | - */ | |
131 | - public function addCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias) | |
132 | - { | |
133 | - $this->cuentaBancarias[] = $cuentaBancarias; | |
134 | - | |
135 | - return $this; | |
136 | - } | |
137 | - | |
138 | - /** | |
139 | - * Remove cuentaBancarias | |
140 | - * | |
141 | - * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias | |
142 | - */ | |
143 | - public function removeCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias) | |
144 | - { | |
145 | - $this->cuentaBancarias->removeElement($cuentaBancarias); | |
146 | - } | |
147 | - | |
148 | - /** | |
149 | - * Get cuentaBancarias | |
150 | - * | |
151 | - * @return \Doctrine\Common\Collections\Collection | |
152 | - */ | |
153 | - public function getCuentaBancarias() | |
154 | - { | |
155 | - return $this->cuentaBancarias; | |
156 | - } | |
157 | -} |
src/UBV/PracticaBundle/Entity/BancoRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * BancoRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class BancoRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/Candidato.php
... | ... | @@ -1,783 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | - | |
7 | -/** | |
8 | - * UBV\SurUbvBundle\Entity\Candidato | |
9 | - * | |
10 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CandidatoRepository") | |
11 | - * @ORM\Table(name="candidato", indexes={@ORM\Index(name="fk_candidato_aspirante_tipo_idx", columns={"aspirante_tipo_id"}), @ORM\Index(name="fk_candidato_aspirante_estatus_idx", columns={"aspirante_estatus_id"}), @ORM\Index(name="fk_candidato_documento_identidad_tipo_idx", columns={"documento_identidad_tipo_id"}), @ORM\Index(name="fk_candidato_genero_idx", columns={"genero_id"}), @ORM\Index(name="fk_candidato_estado_civil_idx", columns={"estado_civil_id"}), @ORM\Index(name="fk_candidato_telefono_codigo_area_idx", columns={"telefono_codigo_area_id"}), @ORM\Index(name="fk_candidato_estado_idx", columns={"estado_residencia_id"}), @ORM\Index(name="fk_candidato_etnia_idx", columns={"etnia_id"}), @ORM\Index(name="fk_candidato_programa_idx", columns={"programa_id"}), @ORM\Index(name="fk_candidato_aldea_idx", columns={"aldea_id"}), @ORM\Index(name="fk_candidato_convenio_idx", columns={"convenio_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_candidato_UNIQUE", columns={"id"})}) | |
12 | - */ | |
13 | -class Candidato | |
14 | -{ | |
15 | - /** | |
16 | - * @ORM\Id | |
17 | - * @ORM\Column(type="integer") | |
18 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
19 | - * @ORM\SequenceGenerator(sequenceName="candidato_id_seq", allocationSize=1, initialValue=1) | |
20 | - */ | |
21 | - protected $id; | |
22 | - | |
23 | - /** | |
24 | - * @ORM\Column(type="string", length=45) | |
25 | - */ | |
26 | - protected $primer_nombre; | |
27 | - | |
28 | - /** | |
29 | - * @ORM\Column(type="string", length=45, nullable=true) | |
30 | - */ | |
31 | - protected $segundo_nombre; | |
32 | - | |
33 | - /** | |
34 | - * @ORM\Column(type="string", length=45) | |
35 | - */ | |
36 | - protected $primer_apellido; | |
37 | - | |
38 | - /** | |
39 | - * @ORM\Column(type="string", length=45, nullable=true) | |
40 | - */ | |
41 | - protected $segundo_apellido; | |
42 | - | |
43 | - /** | |
44 | - * @ORM\Column(type="string", length=45) | |
45 | - */ | |
46 | - protected $identificacion; | |
47 | - | |
48 | - /** | |
49 | - * @ORM\Column(type="date") | |
50 | - */ | |
51 | - protected $fecha_nacimiento; | |
52 | - | |
53 | - /** | |
54 | - * @ORM\Column(type="string", length=45) | |
55 | - */ | |
56 | - protected $telefono; | |
57 | - | |
58 | - /** | |
59 | - * @ORM\Column(type="string", length=45) | |
60 | - */ | |
61 | - protected $correo; | |
62 | - | |
63 | - /** | |
64 | - * @ORM\Column(type="string", length=45, nullable=true) | |
65 | - */ | |
66 | - protected $id_opsu; | |
67 | - | |
68 | - /** | |
69 | - * @ORM\Column(type="date", nullable=true) | |
70 | - */ | |
71 | - protected $ano_grado; | |
72 | - | |
73 | - /** | |
74 | - * @ORM\Column(type="boolean") | |
75 | - */ | |
76 | - protected $trabaja; | |
77 | - | |
78 | - /** | |
79 | - * @ORM\Column(type="string", length=45, nullable=true) | |
80 | - */ | |
81 | - protected $promedio_nota; | |
82 | - | |
83 | - /** | |
84 | - * @ORM\ManyToOne(targetEntity="AspiranteTipo", inversedBy="candidatos") | |
85 | - * @ORM\JoinColumn(name="aspirante_tipo_id", referencedColumnName="id", nullable=false) | |
86 | - */ | |
87 | - protected $aspiranteTipo; | |
88 | - | |
89 | - /** | |
90 | - * @ORM\ManyToOne(targetEntity="AspiranteEstatus", inversedBy="candidatos") | |
91 | - * @ORM\JoinColumn(name="aspirante_estatus_id", referencedColumnName="id", nullable=false) | |
92 | - */ | |
93 | - protected $aspiranteEstatus; | |
94 | - | |
95 | - /** | |
96 | - * @ORM\ManyToOne(targetEntity="DocumentoIdentidadTipo", inversedBy="candidatos") | |
97 | - * @ORM\JoinColumn(name="documento_identidad_tipo_id", referencedColumnName="id", nullable=false) | |
98 | - */ | |
99 | - protected $documentoIdentidadTipo; | |
100 | - | |
101 | - /** | |
102 | - * @ORM\ManyToOne(targetEntity="Genero", inversedBy="candidatos") | |
103 | - * @ORM\JoinColumn(name="genero_id", referencedColumnName="id", nullable=false) | |
104 | - */ | |
105 | - protected $genero; | |
106 | - | |
107 | - /** | |
108 | - * @ORM\ManyToOne(targetEntity="EstadoCivil", inversedBy="candidatos") | |
109 | - * @ORM\JoinColumn(name="estado_civil_id", referencedColumnName="id", nullable=false) | |
110 | - */ | |
111 | - protected $estadoCivil; | |
112 | - | |
113 | - /** | |
114 | - * @ORM\ManyToOne(targetEntity="TelefonoCodigoArea", inversedBy="candidatos") | |
115 | - * @ORM\JoinColumn(name="telefono_codigo_area_id", referencedColumnName="id", nullable=false) | |
116 | - */ | |
117 | - protected $telefonoCodigoArea; | |
118 | - | |
119 | - /** | |
120 | - * @ORM\ManyToOne(targetEntity="Estado", inversedBy="candidatos") | |
121 | - * @ORM\JoinColumn(name="estado_residencia_id", referencedColumnName="id") | |
122 | - */ | |
123 | - protected $estado; | |
124 | - | |
125 | - /** | |
126 | - * @ORM\ManyToOne(targetEntity="Etnia", inversedBy="candidatos") | |
127 | - * @ORM\JoinColumn(name="etnia_id", referencedColumnName="id") | |
128 | - */ | |
129 | - protected $etnia; | |
130 | - | |
131 | - /** | |
132 | - * @ORM\ManyToOne(targetEntity="Programa", inversedBy="candidatos") | |
133 | - * @ORM\JoinColumn(name="programa_id", referencedColumnName="id", nullable=false) | |
134 | - */ | |
135 | - protected $programa; | |
136 | - | |
137 | - /** | |
138 | - * @ORM\ManyToOne(targetEntity="Aldea", inversedBy="candidatos") | |
139 | - * @ORM\JoinColumn(name="aldea_id", referencedColumnName="id", nullable=false) | |
140 | - */ | |
141 | - protected $aldea; | |
142 | - | |
143 | - /** | |
144 | - * @ORM\ManyToOne(targetEntity="Convenio", inversedBy="candidatos") | |
145 | - * @ORM\JoinColumn(name="convenio_id", referencedColumnName="id") | |
146 | - */ | |
147 | - protected $convenio; | |
148 | - | |
149 | - /** | |
150 | - * @ORM\ManyToOne(targetEntity="CorreoTipo", inversedBy="candidatos") | |
151 | - * @ORM\JoinColumn(name="correo_tipo_id", referencedColumnName="id", nullable=false) | |
152 | - */ | |
153 | - protected $correoTipo; | |
154 | - | |
155 | - /** | |
156 | - * @ORM\ManyToOne(targetEntity="Discapacidad", inversedBy="candidatos") | |
157 | - * @ORM\JoinColumn(name="discapacidad_id", referencedColumnName="id", nullable=false) | |
158 | - */ | |
159 | - protected $discapacidad; | |
160 | - | |
161 | - /** | |
162 | - * @ORM\ManyToOne(targetEntity="PeriodoAcademico", inversedBy="candidatos") | |
163 | - * @ORM\JoinColumn(name="periodo_academico_id", referencedColumnName="id", nullable=false) | |
164 | - */ | |
165 | - protected $periodoAcademico; | |
166 | - | |
167 | - public function __construct() | |
168 | - { | |
169 | - } | |
170 | - | |
171 | - public function __sleep() | |
172 | - { | |
173 | - return array('id', 'primer_nombre', 'segundo_nombre', 'primer_apellido', 'segundo_apellido', 'identificacion', 'aspirante_tipo_id', 'aspirante_estatus_id', 'documento_identidad_tipo_id', 'genero_id', 'estado_civil_id', 'fecha_nacimiento', 'telefono', 'telefono_codigo_area_id', 'correo', 'estado_residencia_id', 'etnia_id', 'id_opsu', 'ano_grado', 'trabaja', 'promedio_nota', 'programa_id', 'periodo_asignado', 'aldea_id', 'convenio_id'); | |
174 | - } | |
175 | - | |
176 | - /** | |
177 | - * Get id | |
178 | - * | |
179 | - * @return integer | |
180 | - */ | |
181 | - public function getId() | |
182 | - { | |
183 | - return $this->id; | |
184 | - } | |
185 | - | |
186 | - /** | |
187 | - * Set primer_nombre | |
188 | - * | |
189 | - * @param string $primerNombre | |
190 | - * @return Candidato | |
191 | - */ | |
192 | - public function setPrimerNombre($primerNombre) | |
193 | - { | |
194 | - $this->primer_nombre = $primerNombre; | |
195 | - | |
196 | - return $this; | |
197 | - } | |
198 | - | |
199 | - /** | |
200 | - * Get primer_nombre | |
201 | - * | |
202 | - * @return string | |
203 | - */ | |
204 | - public function getPrimerNombre() | |
205 | - { | |
206 | - return $this->primer_nombre; | |
207 | - } | |
208 | - | |
209 | - /** | |
210 | - * Set segundo_nombre | |
211 | - * | |
212 | - * @param string $segundoNombre | |
213 | - * @return Candidato | |
214 | - */ | |
215 | - public function setSegundoNombre($segundoNombre) | |
216 | - { | |
217 | - $this->segundo_nombre = $segundoNombre; | |
218 | - | |
219 | - return $this; | |
220 | - } | |
221 | - | |
222 | - /** | |
223 | - * Get segundo_nombre | |
224 | - * | |
225 | - * @return string | |
226 | - */ | |
227 | - public function getSegundoNombre() | |
228 | - { | |
229 | - return $this->segundo_nombre; | |
230 | - } | |
231 | - | |
232 | - /** | |
233 | - * Set primer_apellido | |
234 | - * | |
235 | - * @param string $primerApellido | |
236 | - * @return Candidato | |
237 | - */ | |
238 | - public function setPrimerApellido($primerApellido) | |
239 | - { | |
240 | - $this->primer_apellido = $primerApellido; | |
241 | - | |
242 | - return $this; | |
243 | - } | |
244 | - | |
245 | - /** | |
246 | - * Get primer_apellido | |
247 | - * | |
248 | - * @return string | |
249 | - */ | |
250 | - public function getPrimerApellido() | |
251 | - { | |
252 | - return $this->primer_apellido; | |
253 | - } | |
254 | - | |
255 | - /** | |
256 | - * Set segundo_apellido | |
257 | - * | |
258 | - * @param string $segundoApellido | |
259 | - * @return Candidato | |
260 | - */ | |
261 | - public function setSegundoApellido($segundoApellido) | |
262 | - { | |
263 | - $this->segundo_apellido = $segundoApellido; | |
264 | - | |
265 | - return $this; | |
266 | - } | |
267 | - | |
268 | - /** | |
269 | - * Get segundo_apellido | |
270 | - * | |
271 | - * @return string | |
272 | - */ | |
273 | - public function getSegundoApellido() | |
274 | - { | |
275 | - return $this->segundo_apellido; | |
276 | - } | |
277 | - | |
278 | - /** | |
279 | - * Set identificacion | |
280 | - * | |
281 | - * @param string $identificacion | |
282 | - * @return Candidato | |
283 | - */ | |
284 | - public function setIdentificacion($identificacion) | |
285 | - { | |
286 | - $this->identificacion = $identificacion; | |
287 | - | |
288 | - return $this; | |
289 | - } | |
290 | - | |
291 | - /** | |
292 | - * Get identificacion | |
293 | - * | |
294 | - * @return string | |
295 | - */ | |
296 | - public function getIdentificacion() | |
297 | - { | |
298 | - return $this->identificacion; | |
299 | - } | |
300 | - | |
301 | - /** | |
302 | - * Set fecha_nacimiento | |
303 | - * | |
304 | - * @param \DateTime $fechaNacimiento | |
305 | - * @return Candidato | |
306 | - */ | |
307 | - public function setFechaNacimiento($fechaNacimiento) | |
308 | - { | |
309 | - $this->fecha_nacimiento = $fechaNacimiento; | |
310 | - | |
311 | - return $this; | |
312 | - } | |
313 | - | |
314 | - /** | |
315 | - * Get fecha_nacimiento | |
316 | - * | |
317 | - * @return \DateTime | |
318 | - */ | |
319 | - public function getFechaNacimiento() | |
320 | - { | |
321 | - return $this->fecha_nacimiento; | |
322 | - } | |
323 | - | |
324 | - /** | |
325 | - * Set telefono | |
326 | - * | |
327 | - * @param string $telefono | |
328 | - * @return Candidato | |
329 | - */ | |
330 | - public function setTelefono($telefono) | |
331 | - { | |
332 | - $this->telefono = $telefono; | |
333 | - | |
334 | - return $this; | |
335 | - } | |
336 | - | |
337 | - /** | |
338 | - * Get telefono | |
339 | - * | |
340 | - * @return string | |
341 | - */ | |
342 | - public function getTelefono() | |
343 | - { | |
344 | - return $this->telefono; | |
345 | - } | |
346 | - | |
347 | - /** | |
348 | - * Set correo | |
349 | - * | |
350 | - * @param string $correo | |
351 | - * @return Candidato | |
352 | - */ | |
353 | - public function setCorreo($correo) | |
354 | - { | |
355 | - $this->correo = $correo; | |
356 | - | |
357 | - return $this; | |
358 | - } | |
359 | - | |
360 | - /** | |
361 | - * Get correo | |
362 | - * | |
363 | - * @return string | |
364 | - */ | |
365 | - public function getCorreo() | |
366 | - { | |
367 | - return $this->correo; | |
368 | - } | |
369 | - | |
370 | - /** | |
371 | - * Set id_opsu | |
372 | - * | |
373 | - * @param string $idOpsu | |
374 | - * @return Candidato | |
375 | - */ | |
376 | - public function setIdOpsu($idOpsu) | |
377 | - { | |
378 | - $this->id_opsu = $idOpsu; | |
379 | - | |
380 | - return $this; | |
381 | - } | |
382 | - | |
383 | - /** | |
384 | - * Get id_opsu | |
385 | - * | |
386 | - * @return string | |
387 | - */ | |
388 | - public function getIdOpsu() | |
389 | - { | |
390 | - return $this->id_opsu; | |
391 | - } | |
392 | - | |
393 | - /** | |
394 | - * Set ano_grado | |
395 | - * | |
396 | - * @param \DateTime $anoGrado | |
397 | - * @return Candidato | |
398 | - */ | |
399 | - public function setAnoGrado($anoGrado) | |
400 | - { | |
401 | - $this->ano_grado = $anoGrado; | |
402 | - | |
403 | - return $this; | |
404 | - } | |
405 | - | |
406 | - /** | |
407 | - * Get ano_grado | |
408 | - * | |
409 | - * @return \DateTime | |
410 | - */ | |
411 | - public function getAnoGrado() | |
412 | - { | |
413 | - return $this->ano_grado; | |
414 | - } | |
415 | - | |
416 | - /** | |
417 | - * Set trabaja | |
418 | - * | |
419 | - * @param boolean $trabaja | |
420 | - * @return Candidato | |
421 | - */ | |
422 | - public function setTrabaja($trabaja) | |
423 | - { | |
424 | - $this->trabaja = $trabaja; | |
425 | - | |
426 | - return $this; | |
427 | - } | |
428 | - | |
429 | - /** | |
430 | - * Get trabaja | |
431 | - * | |
432 | - * @return boolean | |
433 | - */ | |
434 | - public function getTrabaja() | |
435 | - { | |
436 | - return $this->trabaja; | |
437 | - } | |
438 | - | |
439 | - /** | |
440 | - * Set promedio_nota | |
441 | - * | |
442 | - * @param string $promedioNota | |
443 | - * @return Candidato | |
444 | - */ | |
445 | - public function setPromedioNota($promedioNota) | |
446 | - { | |
447 | - $this->promedio_nota = $promedioNota; | |
448 | - | |
449 | - return $this; | |
450 | - } | |
451 | - | |
452 | - /** | |
453 | - * Get promedio_nota | |
454 | - * | |
455 | - * @return string | |
456 | - */ | |
457 | - public function getPromedioNota() | |
458 | - { | |
459 | - return $this->promedio_nota; | |
460 | - } | |
461 | - | |
462 | - /** | |
463 | - * Set aspiranteTipo | |
464 | - * | |
465 | - * @param \UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo | |
466 | - * @return Candidato | |
467 | - */ | |
468 | - public function setAspiranteTipo(\UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo) | |
469 | - { | |
470 | - $this->aspiranteTipo = $aspiranteTipo; | |
471 | - | |
472 | - return $this; | |
473 | - } | |
474 | - | |
475 | - /** | |
476 | - * Get aspiranteTipo | |
477 | - * | |
478 | - * @return \UBV\SurUbvBundle\Entity\AspiranteTipo | |
479 | - */ | |
480 | - public function getAspiranteTipo() | |
481 | - { | |
482 | - return $this->aspiranteTipo; | |
483 | - } | |
484 | - | |
485 | - /** | |
486 | - * Set aspiranteEstatus | |
487 | - * | |
488 | - * @param \UBV\SurUbvBundle\Entity\AspiranteEstatus $aspiranteEstatus | |
489 | - * @return Candidato | |
490 | - */ | |
491 | - public function setAspiranteEstatus(\UBV\SurUbvBundle\Entity\AspiranteEstatus $aspiranteEstatus) | |
492 | - { | |
493 | - $this->aspiranteEstatus = $aspiranteEstatus; | |
494 | - | |
495 | - return $this; | |
496 | - } | |
497 | - | |
498 | - /** | |
499 | - * Get aspiranteEstatus | |
500 | - * | |
501 | - * @return \UBV\SurUbvBundle\Entity\AspiranteEstatus | |
502 | - */ | |
503 | - public function getAspiranteEstatus() | |
504 | - { | |
505 | - return $this->aspiranteEstatus; | |
506 | - } | |
507 | - | |
508 | - /** | |
509 | - * Set documentoIdentidadTipo | |
510 | - * | |
511 | - * @param \UBV\SurUbvBundle\Entity\DocumentoIdentidadTipo $documentoIdentidadTipo | |
512 | - * @return Candidato | |
513 | - */ | |
514 | - public function setDocumentoIdentidadTipo(\UBV\SurUbvBundle\Entity\DocumentoIdentidadTipo $documentoIdentidadTipo) | |
515 | - { | |
516 | - $this->documentoIdentidadTipo = $documentoIdentidadTipo; | |
517 | - | |
518 | - return $this; | |
519 | - } | |
520 | - | |
521 | - /** | |
522 | - * Get documentoIdentidadTipo | |
523 | - * | |
524 | - * @return \UBV\SurUbvBundle\Entity\DocumentoIdentidadTipo | |
525 | - */ | |
526 | - public function getDocumentoIdentidadTipo() | |
527 | - { | |
528 | - return $this->documentoIdentidadTipo; | |
529 | - } | |
530 | - | |
531 | - /** | |
532 | - * Set genero | |
533 | - * | |
534 | - * @param \UBV\SurUbvBundle\Entity\Genero $genero | |
535 | - * @return Candidato | |
536 | - */ | |
537 | - public function setGenero(\UBV\SurUbvBundle\Entity\Genero $genero) | |
538 | - { | |
539 | - $this->genero = $genero; | |
540 | - | |
541 | - return $this; | |
542 | - } | |
543 | - | |
544 | - /** | |
545 | - * Get genero | |
546 | - * | |
547 | - * @return \UBV\SurUbvBundle\Entity\Genero | |
548 | - */ | |
549 | - public function getGenero() | |
550 | - { | |
551 | - return $this->genero; | |
552 | - } | |
553 | - | |
554 | - /** | |
555 | - * Set estadoCivil | |
556 | - * | |
557 | - * @param \UBV\SurUbvBundle\Entity\EstadoCivil $estadoCivil | |
558 | - * @return Candidato | |
559 | - */ | |
560 | - public function setEstadoCivil(\UBV\SurUbvBundle\Entity\EstadoCivil $estadoCivil) | |
561 | - { | |
562 | - $this->estadoCivil = $estadoCivil; | |
563 | - | |
564 | - return $this; | |
565 | - } | |
566 | - | |
567 | - /** | |
568 | - * Get estadoCivil | |
569 | - * | |
570 | - * @return \UBV\SurUbvBundle\Entity\EstadoCivil | |
571 | - */ | |
572 | - public function getEstadoCivil() | |
573 | - { | |
574 | - return $this->estadoCivil; | |
575 | - } | |
576 | - | |
577 | - /** | |
578 | - * Set telefonoCodigoArea | |
579 | - * | |
580 | - * @param \UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea | |
581 | - * @return Candidato | |
582 | - */ | |
583 | - public function setTelefonoCodigoArea(\UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea) | |
584 | - { | |
585 | - $this->telefonoCodigoArea = $telefonoCodigoArea; | |
586 | - | |
587 | - return $this; | |
588 | - } | |
589 | - | |
590 | - /** | |
591 | - * Get telefonoCodigoArea | |
592 | - * | |
593 | - * @return \UBV\SurUbvBundle\Entity\TelefonoCodigoArea | |
594 | - */ | |
595 | - public function getTelefonoCodigoArea() | |
596 | - { | |
597 | - return $this->telefonoCodigoArea; | |
598 | - } | |
599 | - | |
600 | - /** | |
601 | - * Set estado | |
602 | - * | |
603 | - * @param \UBV\SurUbvBundle\Entity\Estado $estado | |
604 | - * @return Candidato | |
605 | - */ | |
606 | - public function setEstado(\UBV\SurUbvBundle\Entity\Estado $estado = null) | |
607 | - { | |
608 | - $this->estado = $estado; | |
609 | - | |
610 | - return $this; | |
611 | - } | |
612 | - | |
613 | - /** | |
614 | - * Get estado | |
615 | - * | |
616 | - * @return \UBV\SurUbvBundle\Entity\Estado | |
617 | - */ | |
618 | - public function getEstado() | |
619 | - { | |
620 | - return $this->estado; | |
621 | - } | |
622 | - | |
623 | - /** | |
624 | - * Set etnia | |
625 | - * | |
626 | - * @param \UBV\SurUbvBundle\Entity\Etnia $etnia | |
627 | - * @return Candidato | |
628 | - */ | |
629 | - public function setEtnia(\UBV\SurUbvBundle\Entity\Etnia $etnia = null) | |
630 | - { | |
631 | - $this->etnia = $etnia; | |
632 | - | |
633 | - return $this; | |
634 | - } | |
635 | - | |
636 | - /** | |
637 | - * Get etnia | |
638 | - * | |
639 | - * @return \UBV\SurUbvBundle\Entity\Etnia | |
640 | - */ | |
641 | - public function getEtnia() | |
642 | - { | |
643 | - return $this->etnia; | |
644 | - } | |
645 | - | |
646 | - /** | |
647 | - * Set programa | |
648 | - * | |
649 | - * @param \UBV\SurUbvBundle\Entity\Programa $programa | |
650 | - * @return Candidato | |
651 | - */ | |
652 | - public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) | |
653 | - { | |
654 | - $this->programa = $programa; | |
655 | - | |
656 | - return $this; | |
657 | - } | |
658 | - | |
659 | - /** | |
660 | - * Get programa | |
661 | - * | |
662 | - * @return \UBV\SurUbvBundle\Entity\Programa | |
663 | - */ | |
664 | - public function getPrograma() | |
665 | - { | |
666 | - return $this->programa; | |
667 | - } | |
668 | - | |
669 | - /** | |
670 | - * Set aldea | |
671 | - * | |
672 | - * @param \UBV\SurUbvBundle\Entity\Aldea $aldea | |
673 | - * @return Candidato | |
674 | - */ | |
675 | - public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) | |
676 | - { | |
677 | - $this->aldea = $aldea; | |
678 | - | |
679 | - return $this; | |
680 | - } | |
681 | - | |
682 | - /** | |
683 | - * Get aldea | |
684 | - * | |
685 | - * @return \UBV\SurUbvBundle\Entity\Aldea | |
686 | - */ | |
687 | - public function getAldea() | |
688 | - { | |
689 | - return $this->aldea; | |
690 | - } | |
691 | - | |
692 | - /** | |
693 | - * Set convenio | |
694 | - * | |
695 | - * @param \UBV\SurUbvBundle\Entity\Convenio $convenio | |
696 | - * @return Candidato | |
697 | - */ | |
698 | - public function setConvenio(\UBV\SurUbvBundle\Entity\Convenio $convenio = null) | |
699 | - { | |
700 | - $this->convenio = $convenio; | |
701 | - | |
702 | - return $this; | |
703 | - } | |
704 | - | |
705 | - /** | |
706 | - * Get convenio | |
707 | - * | |
708 | - * @return \UBV\SurUbvBundle\Entity\Convenio | |
709 | - */ | |
710 | - public function getConvenio() | |
711 | - { | |
712 | - return $this->convenio; | |
713 | - } | |
714 | - | |
715 | - /** | |
716 | - * Set correoTipo | |
717 | - * | |
718 | - * @param \UBV\SurUbvBundle\Entity\CorreoTipo $correoTipo | |
719 | - * @return Candidato | |
720 | - */ | |
721 | - public function setCorreoTipo(\UBV\SurUbvBundle\Entity\CorreoTipo $correoTipo) | |
722 | - { | |
723 | - $this->correoTipo = $correoTipo; | |
724 | - | |
725 | - return $this; | |
726 | - } | |
727 | - | |
728 | - /** | |
729 | - * Get correoTipo | |
730 | - * | |
731 | - * @return \UBV\SurUbvBundle\Entity\CorreoTipo | |
732 | - */ | |
733 | - public function getCorreoTipo() | |
734 | - { | |
735 | - return $this->correoTipo; | |
736 | - } | |
737 | - | |
738 | - /** | |
739 | - * Set discapacidad | |
740 | - * | |
741 | - * @param \UBV\SurUbvBundle\Entity\Discapacidad $discapacidad | |
742 | - * @return Candidato | |
743 | - */ | |
744 | - public function setDiscapacidad(\UBV\SurUbvBundle\Entity\Discapacidad $discapacidad) | |
745 | - { | |
746 | - $this->discapacidad = $discapacidad; | |
747 | - | |
748 | - return $this; | |
749 | - } | |
750 | - | |
751 | - /** | |
752 | - * Get discapacidad | |
753 | - * | |
754 | - * @return \UBV\SurUbvBundle\Entity\Discapacidad | |
755 | - */ | |
756 | - public function getDiscapacidad() | |
757 | - { | |
758 | - return $this->discapacidad; | |
759 | - } | |
760 | - | |
761 | - /** | |
762 | - * Set periodoAcademico | |
763 | - * | |
764 | - * @param \UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademico | |
765 | - * @return Candidato | |
766 | - */ | |
767 | - public function setPeriodoAcademico(\UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademico) | |
768 | - { | |
769 | - $this->periodoAcademico = $periodoAcademico; | |
770 | - | |
771 | - return $this; | |
772 | - } | |
773 | - | |
774 | - /** | |
775 | - * Get periodoAcademico | |
776 | - * | |
777 | - * @return \UBV\SurUbvBundle\Entity\PeriodoAcademico | |
778 | - */ | |
779 | - public function getPeriodoAcademico() | |
780 | - { | |
781 | - return $this->periodoAcademico; | |
782 | - } | |
783 | -} |
src/UBV/PracticaBundle/Entity/CandidatoRepository.php
... | ... | @@ -1,242 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -use Doctrine\ORM\Query\Expr\Join; | |
8 | -use Doctrine\ORM\Query; | |
9 | - | |
10 | -/** | |
11 | - * CandidatoRepository | |
12 | - * | |
13 | - * This class was generated by the Doctrine ORM. Add your own custom | |
14 | - * repository methods below. | |
15 | - */ | |
16 | -class CandidatoRepository extends EntityRepository | |
17 | -{ | |
18 | - public function findDatosParaCandidatos($candidato) | |
19 | - { | |
20 | - $datosBusqueda = $this->asignarValoresDeBusqueda($candidato); | |
21 | - $arregloCandidato = $this->findDatosCandidatos($datosBusqueda,$candidato); | |
22 | - //die(dump($arregloCandidato)); | |
23 | - return $arregloCandidato; | |
24 | - } | |
25 | - | |
26 | - private function findDatosCandidatos($datosBusqueda,$candidato){ | |
27 | - $em = $this->getEntityManager(); | |
28 | - | |
29 | - $programaAsignadoConsulta = $em->createQueryBuilder()->select('programa','programaTipo','aldea','aldeaPrograma','ambiente','parroquia','municipio','estado') | |
30 | - ->from('UBVSurUbvBundle:AldeaPrograma', 'aldeaPrograma') | |
31 | - ->LeftJoin('aldeaPrograma.aldea', 'aldea', 'aldeaPrograma.aldea_id = aldea.id') | |
32 | - ->LeftJoin('aldeaPrograma.programa', 'programa', 'aldeaPrograma.programa_id = programa.id') | |
33 | - ->LeftJoin('programa.programaTipo', 'programaTipo', 'programaTipo.programa_id = programa.id') | |
34 | - ->LeftJoin('aldea.ambiente', 'ambiente', 'aldea.ambiente_id = ambiente.id') | |
35 | - ->LeftJoin('ambiente.parroquia', 'parroquia', 'ambiente.parroquia_id = parroquia.id') | |
36 | - ->LeftJoin('parroquia.municipio', 'municipio', 'parroquia.municipio_id = municipio.id') | |
37 | - ->LeftJoin('municipio.estado', 'estado', 'municipio.estado_id = estado.id') | |
38 | - ->where('aldeaPrograma.codigo_opsu= :codigoOpsuPrograma') | |
39 | - ->setParameter('codigoOpsuPrograma', '123') | |
40 | - ->getQuery() | |
41 | - ->getOneOrNullResult(); | |
42 | - | |
43 | - $etniaConsulta = $em->createQueryBuilder()->select('etnia') | |
44 | - ->from('UBVSurUbvBundle:Etnia', 'etnia') | |
45 | - ->where('etnia.descripcion= :etnia') | |
46 | - ->setParameter('etnia', $datosBusqueda["etnia"]) | |
47 | - ->getQuery() | |
48 | - ->getOneOrNullResult(); | |
49 | - | |
50 | - $discapacidadConsulta = $em->createQueryBuilder()->select('discapacidad') | |
51 | - ->from('UBVSurUbvBundle:Discapacidad', 'discapacidad') | |
52 | - ->where('discapacidad.descripcion= :discapacidad') | |
53 | - ->setParameter('discapacidad', $datosBusqueda["discapacidad"]) | |
54 | - ->getQuery() | |
55 | - ->getOneOrNullResult(); | |
56 | - | |
57 | - $periodoConsulta = $em->createQueryBuilder()->select('periodo') | |
58 | - ->from('UBVSurUbvBundle:PeriodoAcademico', 'periodo') | |
59 | - ->where('periodo.descripcion= :periodo') | |
60 | - ->setParameter('periodo', $datosBusqueda["periodo"]) | |
61 | - ->getQuery() | |
62 | - ->getOneOrNullResult(); | |
63 | - | |
64 | - $estadoCivilConsulta = $em->createQueryBuilder()->select('estadoCivil') | |
65 | - ->from('UBVSurUbvBundle:EstadoCivil', 'estadoCivil') | |
66 | - ->where('estadoCivil.codigo= :estadoCivil') | |
67 | - ->setParameter('estadoCivil', $datosBusqueda["estadoCivil"]) | |
68 | - ->getQuery() | |
69 | - ->getOneOrNullResult(); | |
70 | - | |
71 | - $generoConsulta = $em->createQueryBuilder()->select('genero') | |
72 | - ->from('UBVSurUbvBundle:Genero', 'genero') | |
73 | - ->where('genero.codigo= :genero') | |
74 | - ->setParameter('genero', $datosBusqueda["genero"]) | |
75 | - ->getQuery() | |
76 | - ->getOneOrNullResult(); | |
77 | - | |
78 | - $documentoIdentidadTipoConsulta = $em->createQueryBuilder()->select('documentoIdentidadTipo') | |
79 | - ->from('UBVSurUbvBundle:DocumentoIdentidadTipo', 'documentoIdentidadTipo') | |
80 | - ->where('documentoIdentidadTipo.codigo= :documentoIdentidadTipo') | |
81 | - ->setParameter('documentoIdentidadTipo', $datosBusqueda["documentoIdentidadTipo"]) | |
82 | - ->getQuery() | |
83 | - ->getOneOrNullResult(); | |
84 | - | |
85 | - $telefonoCodigoAreaConsulta = $em->createQueryBuilder()->select('telefonoCodigoArea') | |
86 | - ->from('UBVSurUbvBundle:TelefonoCodigoArea', 'telefonoCodigoArea') | |
87 | - ->where('telefonoCodigoArea.descripcion LIKE :telefonoCodigoArea') | |
88 | - ->setParameter('telefonoCodigoArea', '%'.$datosBusqueda["codigoArea"].'%') | |
89 | - ->getQuery() | |
90 | - ->getOneOrNullResult(); | |
91 | - | |
92 | - $correoTipoConsulta = $em->createQueryBuilder()->select('correoTipo') | |
93 | - ->from('UBVSurUbvBundle:CorreoTipo', 'correoTipo') | |
94 | - ->where('correoTipo.descripcion LIKE :correoTipo') | |
95 | - ->setParameter('correoTipo', '%Personal%') | |
96 | - ->getQuery() | |
97 | - ->getOneOrNullResult(); | |
98 | - | |
99 | - $aspiranteEstatusConsulta = $em->createQueryBuilder()->select('aspiranteEstatus') | |
100 | - ->from('UBVSurUbvBundle:AspiranteEstatus', 'aspiranteEstatus') | |
101 | - ->where('aspiranteEstatus.descripcion LIKE :aspiranteEstatus') | |
102 | - ->setParameter('aspiranteEstatus', 'No Inscrito') | |
103 | - ->getQuery() | |
104 | - ->getOneOrNullResult(); | |
105 | - | |
106 | - $arregloCosultas = array("AldeaPrograma"=>$programaAsignadoConsulta,"Etnia"=>$etniaConsulta,"Discapacidad"=>$discapacidadConsulta, | |
107 | - "PeriodoAcademico"=>$periodoConsulta,"EstadoCivil"=>$estadoCivilConsulta,"Genero"=>$generoConsulta, | |
108 | - "DocumentoIdentidadTipo"=>$documentoIdentidadTipoConsulta,"TelefonoCodigoArea"=>$telefonoCodigoAreaConsulta, | |
109 | - "CorreoTipo"=>$correoTipoConsulta,"AspiranteEstatus"=>$aspiranteEstatusConsulta, | |
110 | - ); | |
111 | - //die(dump($arregloCosultas)); | |
112 | - $arregloCandidato = $this->ordenarArregloCandidato($arregloCosultas, $candidato); | |
113 | - return $arregloCandidato; | |
114 | - } | |
115 | - | |
116 | - public function findCandidatoByIdenProg($candidato){ | |
117 | - $em = $this->getEntityManager(); | |
118 | - //die(dump($candidato["programaAsig"]->getProgramaTipo()->getId())); | |
119 | - $existeCandidato = $em->createQueryBuilder()->select('candidato','programa') | |
120 | - ->from('UBVSurUbvBundle:Candidato', 'candidato') | |
121 | - ->LeftJoin('candidato.programa', 'programa', 'candidato.programa_id = programa.id') | |
122 | - ->LeftJoin('programa.programaTipo', 'programaTipo', 'programa.programa_tipo_id = programaTipo.id') | |
123 | - ->where('candidato.identificacion= :identificacion') | |
124 | - ->Andwhere('programaTipo.id= :programaTipoId') | |
125 | - ->setParameter('identificacion', $candidato["identificacion"]) | |
126 | - ->setParameter('programaTipoId', $candidato["programaAsig"]->getProgramaTipo()->getId()) | |
127 | - ->getQuery() | |
128 | - ->getOneOrNullResult(); | |
129 | - //die(dump($existeCandidato)); | |
130 | - if (is_null($existeCandidato)){ | |
131 | - return false; | |
132 | - }else{ | |
133 | - return true; | |
134 | - } | |
135 | - | |
136 | - } | |
137 | - | |
138 | - | |
139 | - private function asignarValoresDeBusqueda($candidato){ | |
140 | - foreach($candidato as $clave => $valor){ | |
141 | - if($clave == "codPrograma"){ | |
142 | - $codigoOpsuPrograma = $valor; | |
143 | - } | |
144 | - elseif($clave == "nacionalidad"){ | |
145 | - $documentoIdentidadTipo = $valor; | |
146 | - } | |
147 | - elseif($clave == "genero"){ | |
148 | - $genero = $valor; | |
149 | - } | |
150 | - elseif($clave == "estadoCivil"){ | |
151 | - $estadoCivil = $valor; | |
152 | - } | |
153 | - elseif($clave == "telefono"){ | |
154 | - $codigoArea = substr($valor, 0,3); | |
155 | - $telefono = substr($valor,3); | |
156 | - } | |
157 | - elseif($clave == "discapacidad"){ | |
158 | - $discapacidad = $valor; | |
159 | - } | |
160 | - elseif($clave == "trabaja"){ | |
161 | - if($valor === 'S'){ | |
162 | - $trabaja=true; | |
163 | - }else{ | |
164 | - $trabaja=false; | |
165 | - } | |
166 | - } | |
167 | - elseif($clave == "etnia"){ | |
168 | - $etnia = $valor; | |
169 | - } | |
170 | - elseif($clave == "periodoAsig"){ | |
171 | - $periodoAsignado = explode('-', $valor); | |
172 | - $periodo = $periodoAsignado[1].'-'.$periodoAsignado[0]; | |
173 | - } | |
174 | - | |
175 | - } | |
176 | - | |
177 | - return array("codPrograma"=>$codigoOpsuPrograma,"documentoIdentidadTipo"=>$documentoIdentidadTipo,"genero"=>$genero, | |
178 | - "estadoCivil"=>$estadoCivil,"codigoArea"=>$codigoArea,"telefono"=>$telefono, | |
179 | - "discapacidad"=>$discapacidad,"etnia"=>$etnia,"periodo"=>$periodo,"trabaja"=>$trabaja); | |
180 | - } | |
181 | - | |
182 | - private function ordenarArregloCandidato($arregloConsultas,$candidato){ | |
183 | - //die(dump((array("arregloConsultas"=>$arregloConsultas,"candidato"=>$candidato)))); | |
184 | - if(count($arregloConsultas) !== 0){ | |
185 | - foreach($candidato as $clave => $valor){ | |
186 | - if($clave == "nacionalidad"){ | |
187 | - $arrayTemp[$clave] = $arregloConsultas["DocumentoIdentidadTipo"]; | |
188 | - } | |
189 | - elseif($clave == "genero"){ | |
190 | - $arrayTemp[$clave] = $arregloConsultas["Genero"]; | |
191 | - } | |
192 | - elseif($clave == "estadoCivil"){ | |
193 | - $arrayTemp[$clave] = $arregloConsultas["EstadoCivil"]; | |
194 | - } | |
195 | - elseif($clave == "telefono"){ | |
196 | - $telefono = substr($valor,3); | |
197 | - $arrayTemp[$clave] = $telefono; | |
198 | - } | |
199 | - elseif($clave == "discapacidad"){ | |
200 | - $arrayTemp[$clave] = $arregloConsultas["Discapacidad"]; | |
201 | - } | |
202 | - elseif($clave == "etnia"){ | |
203 | - $arrayTemp[$clave] = $arregloConsultas["Etnia"]; | |
204 | - } | |
205 | - elseif($clave == "aldeaAsig"){ | |
206 | - $arrayTemp[$clave] = $arregloConsultas["AldeaPrograma"]->getAldea(); | |
207 | - } | |
208 | - elseif($clave == "periodoAsig"){ | |
209 | - $arrayTemp[$clave] = $arregloConsultas["PeriodoAcademico"]; | |
210 | - } | |
211 | - elseif($clave == "programaAsig"){ | |
212 | - $arrayTemp[$clave] = $arregloConsultas["AldeaPrograma"]->getPrograma(); | |
213 | - } | |
214 | - elseif($clave == "codPrograma"){ | |
215 | - $arrayTemp[$clave] = $arregloConsultas["AldeaPrograma"]->getCodigoOpsu(); | |
216 | - } | |
217 | - elseif($clave == "estadoRes"){ | |
218 | - $arrayTemp[$clave] = $arregloConsultas["AldeaPrograma"]->getAldea()->getAmbiente()->getParroquia()->getMunicipio()->getEstado(); | |
219 | - } | |
220 | - elseif($clave == "trabaja"){ | |
221 | - if($valor === 'S'){ | |
222 | - $arrayTemp[$clave]=true; | |
223 | - }else{ | |
224 | - $arrayTemp[$clave]=false; | |
225 | - } | |
226 | - }else{ | |
227 | - $arrayTemp[$clave] = $valor; | |
228 | - } | |
229 | - } | |
230 | - $arrayTemp["correoTipo"]= $arregloConsultas["CorreoTipo"]; | |
231 | - $arrayTemp["telefonoCodigoArea"]= $arregloConsultas["TelefonoCodigoArea"]; | |
232 | - $arrayTemp["aspiranteEstatus"]= $arregloConsultas["AspiranteEstatus"]; | |
233 | - //die(dump(array("objetos"=>$arregloConsultas,"candidato"=>$arrayTemp))); | |
234 | - return $arrayTemp; | |
235 | - }else{ | |
236 | - return; | |
237 | - } | |
238 | - | |
239 | - | |
240 | - } | |
241 | - | |
242 | -} | |
243 | 0 | \ No newline at end of file |
src/UBV/PracticaBundle/Entity/CargaAcademica.php
... | ... | @@ -1,238 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\CargaAcademica | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CargaAcademicaRepository") | |
12 | - * @ORM\Table(name="carga_academica", indexes={@ORM\Index(name="fk_carga_academica_oferta_academica_detalle1_idx", columns={"oferta_academica_detalle_id"}), @ORM\Index(name="fk_carga_academica_seccion1_idx", columns={"seccion_id"}), @ORM\Index(name="fk_carga_academica_ambiente_espacio1_idx", columns={"ambiente_espacio_id"}), @ORM\Index(name="fk_carga_academica_docente1_idx", columns={"docente_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_carga_academica_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class CargaAcademica | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="carga_academica_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\OneToMany(targetEntity="Horario", mappedBy="cargaAcademica") | |
26 | - * @ORM\JoinColumn(name="id", referencedColumnName="carga_academica_id", nullable=false) | |
27 | - */ | |
28 | - protected $horarios; | |
29 | - | |
30 | - /** | |
31 | - * @ORM\OneToMany(targetEntity="InscripcionDetalle", mappedBy="cargaAcademica") | |
32 | - * @ORM\JoinColumn(name="id", referencedColumnName="carga_academica_id", nullable=false) | |
33 | - */ | |
34 | - protected $inscripcionDetalles; | |
35 | - | |
36 | - /** | |
37 | - * @ORM\ManyToOne(targetEntity="OfertaAcademicaDetalle", inversedBy="cargaAcademicas") | |
38 | - * @ORM\JoinColumn(name="oferta_academica_detalle_id", referencedColumnName="id", nullable=false) | |
39 | - */ | |
40 | - protected $ofertaAcademicaDetalle; | |
41 | - | |
42 | - /** | |
43 | - * @ORM\ManyToOne(targetEntity="Seccion", inversedBy="cargaAcademicas") | |
44 | - * @ORM\JoinColumn(name="seccion_id", referencedColumnName="id", nullable=false) | |
45 | - */ | |
46 | - protected $seccion; | |
47 | - | |
48 | - /** | |
49 | - * @ORM\ManyToOne(targetEntity="AmbienteEspacio", inversedBy="cargaAcademicas") | |
50 | - * @ORM\JoinColumn(name="ambiente_espacio_id", referencedColumnName="id", nullable=false) | |
51 | - */ | |
52 | - protected $ambienteEspacio; | |
53 | - | |
54 | - /** | |
55 | - * @ORM\ManyToOne(targetEntity="Docente", inversedBy="cargaAcademicas") | |
56 | - * @ORM\JoinColumn(name="docente_id", referencedColumnName="id", nullable=false) | |
57 | - */ | |
58 | - protected $docente; | |
59 | - | |
60 | - public function __construct() | |
61 | - { | |
62 | - $this->horarios = new ArrayCollection(); | |
63 | - $this->inscripcionDetalles = new ArrayCollection(); | |
64 | - } | |
65 | - | |
66 | - public function __sleep() | |
67 | - { | |
68 | - return array('id', 'oferta_academica_detalle_id', 'seccion_id', 'ambiente_espacio_id', 'docente_id'); | |
69 | - } | |
70 | - | |
71 | - /** | |
72 | - * Get id | |
73 | - * | |
74 | - * @return integer | |
75 | - */ | |
76 | - public function getId() | |
77 | - { | |
78 | - return $this->id; | |
79 | - } | |
80 | - | |
81 | - /** | |
82 | - * Add horarios | |
83 | - * | |
84 | - * @param \UBV\SurUbvBundle\Entity\Horario $horarios | |
85 | - * @return CargaAcademica | |
86 | - */ | |
87 | - public function addHorario(\UBV\SurUbvBundle\Entity\Horario $horarios) | |
88 | - { | |
89 | - $this->horarios[] = $horarios; | |
90 | - | |
91 | - return $this; | |
92 | - } | |
93 | - | |
94 | - /** | |
95 | - * Remove horarios | |
96 | - * | |
97 | - * @param \UBV\SurUbvBundle\Entity\Horario $horarios | |
98 | - */ | |
99 | - public function removeHorario(\UBV\SurUbvBundle\Entity\Horario $horarios) | |
100 | - { | |
101 | - $this->horarios->removeElement($horarios); | |
102 | - } | |
103 | - | |
104 | - /** | |
105 | - * Get horarios | |
106 | - * | |
107 | - * @return \Doctrine\Common\Collections\Collection | |
108 | - */ | |
109 | - public function getHorarios() | |
110 | - { | |
111 | - return $this->horarios; | |
112 | - } | |
113 | - | |
114 | - /** | |
115 | - * Add inscripcionDetalles | |
116 | - * | |
117 | - * @param \UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles | |
118 | - * @return CargaAcademica | |
119 | - */ | |
120 | - public function addInscripcionDetalle(\UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles) | |
121 | - { | |
122 | - $this->inscripcionDetalles[] = $inscripcionDetalles; | |
123 | - | |
124 | - return $this; | |
125 | - } | |
126 | - | |
127 | - /** | |
128 | - * Remove inscripcionDetalles | |
129 | - * | |
130 | - * @param \UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles | |
131 | - */ | |
132 | - public function removeInscripcionDetalle(\UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles) | |
133 | - { | |
134 | - $this->inscripcionDetalles->removeElement($inscripcionDetalles); | |
135 | - } | |
136 | - | |
137 | - /** | |
138 | - * Get inscripcionDetalles | |
139 | - * | |
140 | - * @return \Doctrine\Common\Collections\Collection | |
141 | - */ | |
142 | - public function getInscripcionDetalles() | |
143 | - { | |
144 | - return $this->inscripcionDetalles; | |
145 | - } | |
146 | - | |
147 | - /** | |
148 | - * Set ofertaAcademicaDetalle | |
149 | - * | |
150 | - * @param \UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle $ofertaAcademicaDetalle | |
151 | - * @return CargaAcademica | |
152 | - */ | |
153 | - public function setOfertaAcademicaDetalle(\UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle $ofertaAcademicaDetalle) | |
154 | - { | |
155 | - $this->ofertaAcademicaDetalle = $ofertaAcademicaDetalle; | |
156 | - | |
157 | - return $this; | |
158 | - } | |
159 | - | |
160 | - /** | |
161 | - * Get ofertaAcademicaDetalle | |
162 | - * | |
163 | - * @return \UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle | |
164 | - */ | |
165 | - public function getOfertaAcademicaDetalle() | |
166 | - { | |
167 | - return $this->ofertaAcademicaDetalle; | |
168 | - } | |
169 | - | |
170 | - /** | |
171 | - * Set seccion | |
172 | - * | |
173 | - * @param \UBV\SurUbvBundle\Entity\Seccion $seccion | |
174 | - * @return CargaAcademica | |
175 | - */ | |
176 | - public function setSeccion(\UBV\SurUbvBundle\Entity\Seccion $seccion) | |
177 | - { | |
178 | - $this->seccion = $seccion; | |
179 | - | |
180 | - return $this; | |
181 | - } | |
182 | - | |
183 | - /** | |
184 | - * Get seccion | |
185 | - * | |
186 | - * @return \UBV\SurUbvBundle\Entity\Seccion | |
187 | - */ | |
188 | - public function getSeccion() | |
189 | - { | |
190 | - return $this->seccion; | |
191 | - } | |
192 | - | |
193 | - /** | |
194 | - * Set ambienteEspacio | |
195 | - * | |
196 | - * @param \UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacio | |
197 | - * @return CargaAcademica | |
198 | - */ | |
199 | - public function setAmbienteEspacio(\UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacio) | |
200 | - { | |
201 | - $this->ambienteEspacio = $ambienteEspacio; | |
202 | - | |
203 | - return $this; | |
204 | - } | |
205 | - | |
206 | - /** | |
207 | - * Get ambienteEspacio | |
208 | - * | |
209 | - * @return \UBV\SurUbvBundle\Entity\AmbienteEspacio | |
210 | - */ | |
211 | - public function getAmbienteEspacio() | |
212 | - { | |
213 | - return $this->ambienteEspacio; | |
214 | - } | |
215 | - | |
216 | - /** | |
217 | - * Set docente | |
218 | - * | |
219 | - * @param \UBV\SurUbvBundle\Entity\Docente $docente | |
220 | - * @return CargaAcademica | |
221 | - */ | |
222 | - public function setDocente(\UBV\SurUbvBundle\Entity\Docente $docente) | |
223 | - { | |
224 | - $this->docente = $docente; | |
225 | - | |
226 | - return $this; | |
227 | - } | |
228 | - | |
229 | - /** | |
230 | - * Get docente | |
231 | - * | |
232 | - * @return \UBV\SurUbvBundle\Entity\Docente | |
233 | - */ | |
234 | - public function getDocente() | |
235 | - { | |
236 | - return $this->docente; | |
237 | - } | |
238 | -} |
src/UBV/PracticaBundle/Entity/CargaAcademicaRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * CargaAcademicaRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class CargaAcademicaRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/CentroEstudio.php
... | ... | @@ -1,207 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\CentroEstudio | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CentroEstudioRepository") | |
12 | - * @ORM\Table(name="centro_estudio", indexes={@ORM\Index(name="fk_centro_estudio_area_conocimiento1_idx", columns={"area_conocimiento_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_centro_estudio_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class CentroEstudio | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="centro_estudio_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=70) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\Column(type="string", length=5) | |
31 | - */ | |
32 | - protected $codigo; | |
33 | - | |
34 | - /** | |
35 | - * @ORM\OneToMany(targetEntity="Docente", mappedBy="centroEstudio") | |
36 | - * @ORM\JoinColumn(name="id", referencedColumnName="centro_estudio_id", nullable=false) | |
37 | - */ | |
38 | - protected $docentes; | |
39 | - | |
40 | - /** | |
41 | - * @ORM\OneToMany(targetEntity="Programa", mappedBy="centroEstudio") | |
42 | - * @ORM\JoinColumn(name="id", referencedColumnName="centro_estudio_id", nullable=false) | |
43 | - */ | |
44 | - protected $programas; | |
45 | - | |
46 | - /** | |
47 | - * @ORM\OneToOne(targetEntity="AreaConocimiento", inversedBy="centroEstudio") | |
48 | - * @ORM\JoinColumn(name="area_conocimiento_id", referencedColumnName="id", nullable=false) | |
49 | - */ | |
50 | - protected $areaConocimiento; | |
51 | - | |
52 | - public function __construct() | |
53 | - { | |
54 | - $this->docentes = new ArrayCollection(); | |
55 | - $this->programas = new ArrayCollection(); | |
56 | - } | |
57 | - | |
58 | - public function __sleep() | |
59 | - { | |
60 | - return array('id', 'descripcion', 'codigo', 'area_conocimiento_id'); | |
61 | - } | |
62 | - | |
63 | - /** | |
64 | - * Get id | |
65 | - * | |
66 | - * @return integer | |
67 | - */ | |
68 | - public function getId() | |
69 | - { | |
70 | - return $this->id; | |
71 | - } | |
72 | - | |
73 | - /** | |
74 | - * Set descripcion | |
75 | - * | |
76 | - * @param string $descripcion | |
77 | - * @return CentroEstudio | |
78 | - */ | |
79 | - public function setDescripcion($descripcion) | |
80 | - { | |
81 | - $this->descripcion = $descripcion; | |
82 | - | |
83 | - return $this; | |
84 | - } | |
85 | - | |
86 | - /** | |
87 | - * Get descripcion | |
88 | - * | |
89 | - * @return string | |
90 | - */ | |
91 | - public function getDescripcion() | |
92 | - { | |
93 | - return $this->descripcion; | |
94 | - } | |
95 | - | |
96 | - /** | |
97 | - * Set codigo | |
98 | - * | |
99 | - * @param string $codigo | |
100 | - * @return CentroEstudio | |
101 | - */ | |
102 | - public function setCodigo($codigo) | |
103 | - { | |
104 | - $this->codigo = $codigo; | |
105 | - | |
106 | - return $this; | |
107 | - } | |
108 | - | |
109 | - /** | |
110 | - * Get codigo | |
111 | - * | |
112 | - * @return string | |
113 | - */ | |
114 | - public function getCodigo() | |
115 | - { | |
116 | - return $this->codigo; | |
117 | - } | |
118 | - | |
119 | - /** | |
120 | - * Add docentes | |
121 | - * | |
122 | - * @param \UBV\SurUbvBundle\Entity\Docente $docentes | |
123 | - * @return CentroEstudio | |
124 | - */ | |
125 | - public function addDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) | |
126 | - { | |
127 | - $this->docentes[] = $docentes; | |
128 | - | |
129 | - return $this; | |
130 | - } | |
131 | - | |
132 | - /** | |
133 | - * Remove docentes | |
134 | - * | |
135 | - * @param \UBV\SurUbvBundle\Entity\Docente $docentes | |
136 | - */ | |
137 | - public function removeDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) | |
138 | - { | |
139 | - $this->docentes->removeElement($docentes); | |
140 | - } | |
141 | - | |
142 | - /** | |
143 | - * Get docentes | |
144 | - * | |
145 | - * @return \Doctrine\Common\Collections\Collection | |
146 | - */ | |
147 | - public function getDocentes() | |
148 | - { | |
149 | - return $this->docentes; | |
150 | - } | |
151 | - | |
152 | - /** | |
153 | - * Add programas | |
154 | - * | |
155 | - * @param \UBV\SurUbvBundle\Entity\Programa $programas | |
156 | - * @return CentroEstudio | |
157 | - */ | |
158 | - public function addPrograma(\UBV\SurUbvBundle\Entity\Programa $programas) | |
159 | - { | |
160 | - $this->programas[] = $programas; | |
161 | - | |
162 | - return $this; | |
163 | - } | |
164 | - | |
165 | - /** | |
166 | - * Remove programas | |
167 | - * | |
168 | - * @param \UBV\SurUbvBundle\Entity\Programa $programas | |
169 | - */ | |
170 | - public function removePrograma(\UBV\SurUbvBundle\Entity\Programa $programas) | |
171 | - { | |
172 | - $this->programas->removeElement($programas); | |
173 | - } | |
174 | - | |
175 | - /** | |
176 | - * Get programas | |
177 | - * | |
178 | - * @return \Doctrine\Common\Collections\Collection | |
179 | - */ | |
180 | - public function getProgramas() | |
181 | - { | |
182 | - return $this->programas; | |
183 | - } | |
184 | - | |
185 | - /** | |
186 | - * Set areaConocimiento | |
187 | - * | |
188 | - * @param \UBV\SurUbvBundle\Entity\AreaConocimiento $areaConocimiento | |
189 | - * @return CentroEstudio | |
190 | - */ | |
191 | - public function setAreaConocimiento(\UBV\SurUbvBundle\Entity\AreaConocimiento $areaConocimiento) | |
192 | - { | |
193 | - $this->areaConocimiento = $areaConocimiento; | |
194 | - | |
195 | - return $this; | |
196 | - } | |
197 | - | |
198 | - /** | |
199 | - * Get areaConocimiento | |
200 | - * | |
201 | - * @return \UBV\SurUbvBundle\Entity\AreaConocimiento | |
202 | - */ | |
203 | - public function getAreaConocimiento() | |
204 | - { | |
205 | - return $this->areaConocimiento; | |
206 | - } | |
207 | -} |
src/UBV/PracticaBundle/Entity/CentroEstudioRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * CentroEstudioRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class CentroEstudioRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/Ciudad.php
... | ... | @@ -1,139 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\Ciudad | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CiudadRepository") | |
12 | - * @ORM\Table(name="ciudad", indexes={@ORM\Index(name="fk_ciudad_estado1_idx", columns={"estado_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_ciudad_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class Ciudad | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="ciudad_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=70, nullable=true) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="DomicilioPersona", mappedBy="ciudad") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="ciudad_id", nullable=false) | |
32 | - */ | |
33 | - protected $domicilioPersonas; | |
34 | - | |
35 | - /** | |
36 | - * @ORM\ManyToOne(targetEntity="Estado", inversedBy="ciudads") | |
37 | - * @ORM\JoinColumn(name="estado_id", referencedColumnName="id", nullable=false) | |
38 | - */ | |
39 | - protected $estado; | |
40 | - | |
41 | - public function __construct() | |
42 | - { | |
43 | - $this->domicilioPersonas = new ArrayCollection(); | |
44 | - } | |
45 | - | |
46 | - public function __sleep() | |
47 | - { | |
48 | - return array('id', 'descripcion', 'estado_id'); | |
49 | - } | |
50 | - | |
51 | - /** | |
52 | - * Get id | |
53 | - * | |
54 | - * @return integer | |
55 | - */ | |
56 | - public function getId() | |
57 | - { | |
58 | - return $this->id; | |
59 | - } | |
60 | - | |
61 | - /** | |
62 | - * Set descripcion | |
63 | - * | |
64 | - * @param string $descripcion | |
65 | - * @return Ciudad | |
66 | - */ | |
67 | - public function setDescripcion($descripcion) | |
68 | - { | |
69 | - $this->descripcion = $descripcion; | |
70 | - | |
71 | - return $this; | |
72 | - } | |
73 | - | |
74 | - /** | |
75 | - * Get descripcion | |
76 | - * | |
77 | - * @return string | |
78 | - */ | |
79 | - public function getDescripcion() | |
80 | - { | |
81 | - return $this->descripcion; | |
82 | - } | |
83 | - | |
84 | - /** | |
85 | - * Add domicilioPersonas | |
86 | - * | |
87 | - * @param \UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas | |
88 | - * @return Ciudad | |
89 | - */ | |
90 | - public function addDomicilioPersona(\UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas) | |
91 | - { | |
92 | - $this->domicilioPersonas[] = $domicilioPersonas; | |
93 | - | |
94 | - return $this; | |
95 | - } | |
96 | - | |
97 | - /** | |
98 | - * Remove domicilioPersonas | |
99 | - * | |
100 | - * @param \UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas | |
101 | - */ | |
102 | - public function removeDomicilioPersona(\UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas) | |
103 | - { | |
104 | - $this->domicilioPersonas->removeElement($domicilioPersonas); | |
105 | - } | |
106 | - | |
107 | - /** | |
108 | - * Get domicilioPersonas | |
109 | - * | |
110 | - * @return \Doctrine\Common\Collections\Collection | |
111 | - */ | |
112 | - public function getDomicilioPersonas() | |
113 | - { | |
114 | - return $this->domicilioPersonas; | |
115 | - } | |
116 | - | |
117 | - /** | |
118 | - * Set estado | |
119 | - * | |
120 | - * @param \UBV\SurUbvBundle\Entity\Estado $estado | |
121 | - * @return Ciudad | |
122 | - */ | |
123 | - public function setEstado(\UBV\SurUbvBundle\Entity\Estado $estado) | |
124 | - { | |
125 | - $this->estado = $estado; | |
126 | - | |
127 | - return $this; | |
128 | - } | |
129 | - | |
130 | - /** | |
131 | - * Get estado | |
132 | - * | |
133 | - * @return \UBV\SurUbvBundle\Entity\Estado | |
134 | - */ | |
135 | - public function getEstado() | |
136 | - { | |
137 | - return $this->estado; | |
138 | - } | |
139 | -} |
src/UBV/PracticaBundle/Entity/CiudadRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * CiudadRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class CiudadRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/ComiteTipo.php
... | ... | @@ -1,110 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\ComiteTipo | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\ComiteTipoRepository") | |
12 | - * @ORM\Table(name="comite_tipo", uniqueConstraints={@ORM\UniqueConstraint(name="id_comite_tipo_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class ComiteTipo | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="comite_tipo_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=45) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="ComitepfaIntegrante", mappedBy="comiteTipo") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="comite_tipo_id", nullable=false) | |
32 | - */ | |
33 | - protected $comitepfaIntegrantes; | |
34 | - | |
35 | - public function __construct() | |
36 | - { | |
37 | - $this->comitepfaIntegrantes = new ArrayCollection(); | |
38 | - } | |
39 | - | |
40 | - public function __sleep() | |
41 | - { | |
42 | - return array('id', 'descripcion'); | |
43 | - } | |
44 | - | |
45 | - /** | |
46 | - * Get id | |
47 | - * | |
48 | - * @return integer | |
49 | - */ | |
50 | - public function getId() | |
51 | - { | |
52 | - return $this->id; | |
53 | - } | |
54 | - | |
55 | - /** | |
56 | - * Set descripcion | |
57 | - * | |
58 | - * @param string $descripcion | |
59 | - * @return ComiteTipo | |
60 | - */ | |
61 | - public function setDescripcion($descripcion) | |
62 | - { | |
63 | - $this->descripcion = $descripcion; | |
64 | - | |
65 | - return $this; | |
66 | - } | |
67 | - | |
68 | - /** | |
69 | - * Get descripcion | |
70 | - * | |
71 | - * @return string | |
72 | - */ | |
73 | - public function getDescripcion() | |
74 | - { | |
75 | - return $this->descripcion; | |
76 | - } | |
77 | - | |
78 | - /** | |
79 | - * Add comitepfaIntegrantes | |
80 | - * | |
81 | - * @param \UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes | |
82 | - * @return ComiteTipo | |
83 | - */ | |
84 | - public function addComitepfaIntegrante(\UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes) | |
85 | - { | |
86 | - $this->comitepfaIntegrantes[] = $comitepfaIntegrantes; | |
87 | - | |
88 | - return $this; | |
89 | - } | |
90 | - | |
91 | - /** | |
92 | - * Remove comitepfaIntegrantes | |
93 | - * | |
94 | - * @param \UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes | |
95 | - */ | |
96 | - public function removeComitepfaIntegrante(\UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes) | |
97 | - { | |
98 | - $this->comitepfaIntegrantes->removeElement($comitepfaIntegrantes); | |
99 | - } | |
100 | - | |
101 | - /** | |
102 | - * Get comitepfaIntegrantes | |
103 | - * | |
104 | - * @return \Doctrine\Common\Collections\Collection | |
105 | - */ | |
106 | - public function getComitepfaIntegrantes() | |
107 | - { | |
108 | - return $this->comitepfaIntegrantes; | |
109 | - } | |
110 | -} |
src/UBV/PracticaBundle/Entity/ComiteTipoRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * ComiteTipoRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class ComiteTipoRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/ComitepfaIntegrante.php
... | ... | @@ -1,212 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | - | |
7 | -/** | |
8 | - * UBV\SurUbvBundle\Entity\ComitepfaIntegrante | |
9 | - * | |
10 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\ComitepfaIntegranteRepository") | |
11 | - * @ORM\Table(name="comitepfa_integrante", indexes={@ORM\Index(name="fk_comitepfa_integrante_programa1_idx", columns={"programa_id"}), @ORM\Index(name="fk_comitepfa_integrante_docente1_idx", columns={"docente_id"}), @ORM\Index(name="fk_comitepfa_integrante_comite_tipo1_idx", columns={"comite_tipo_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_comitepfa_integrante_UNIQUE", columns={"id"})}) | |
12 | - */ | |
13 | -class ComitepfaIntegrante | |
14 | -{ | |
15 | - /** | |
16 | - * @ORM\Id | |
17 | - * @ORM\Column(type="integer") | |
18 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
19 | - * @ORM\SequenceGenerator(sequenceName="comitepfa_integrante_id_seq", allocationSize=1, initialValue=1) | |
20 | - */ | |
21 | - protected $id; | |
22 | - | |
23 | - /** | |
24 | - * @ORM\Column(type="date") | |
25 | - */ | |
26 | - protected $fecha_inicio; | |
27 | - | |
28 | - /** | |
29 | - * @ORM\Column(type="date") | |
30 | - */ | |
31 | - protected $fecha_fin; | |
32 | - | |
33 | - /** | |
34 | - * @ORM\Column(type="boolean") | |
35 | - */ | |
36 | - protected $estatus; | |
37 | - | |
38 | - /** | |
39 | - * @ORM\ManyToOne(targetEntity="Programa", inversedBy="comitepfaIntegrantes") | |
40 | - * @ORM\JoinColumn(name="programa_id", referencedColumnName="id", nullable=false) | |
41 | - */ | |
42 | - protected $programa; | |
43 | - | |
44 | - /** | |
45 | - * @ORM\ManyToOne(targetEntity="Docente", inversedBy="comitepfaIntegrantes") | |
46 | - * @ORM\JoinColumn(name="docente_id", referencedColumnName="id", nullable=false) | |
47 | - */ | |
48 | - protected $docente; | |
49 | - | |
50 | - /** | |
51 | - * @ORM\ManyToOne(targetEntity="ComiteTipo", inversedBy="comitepfaIntegrantes") | |
52 | - * @ORM\JoinColumn(name="comite_tipo_id", referencedColumnName="id", nullable=false) | |
53 | - */ | |
54 | - protected $comiteTipo; | |
55 | - | |
56 | - public function __construct() | |
57 | - { | |
58 | - } | |
59 | - | |
60 | - public function __sleep() | |
61 | - { | |
62 | - return array('id', 'fecha_inicio', 'fecha_fin', 'estatus', 'programa_id', 'docente_id', 'comite_tipo_id'); | |
63 | - } | |
64 | - | |
65 | - /** | |
66 | - * Get id | |
67 | - * | |
68 | - * @return integer | |
69 | - */ | |
70 | - public function getId() | |
71 | - { | |
72 | - return $this->id; | |
73 | - } | |
74 | - | |
75 | - /** | |
76 | - * Set fecha_inicio | |
77 | - * | |
78 | - * @param \DateTime $fechaInicio | |
79 | - * @return ComitepfaIntegrante | |
80 | - */ | |
81 | - public function setFechaInicio($fechaInicio) | |
82 | - { | |
83 | - $this->fecha_inicio = $fechaInicio; | |
84 | - | |
85 | - return $this; | |
86 | - } | |
87 | - | |
88 | - /** | |
89 | - * Get fecha_inicio | |
90 | - * | |
91 | - * @return \DateTime | |
92 | - */ | |
93 | - public function getFechaInicio() | |
94 | - { | |
95 | - return $this->fecha_inicio; | |
96 | - } | |
97 | - | |
98 | - /** | |
99 | - * Set fecha_fin | |
100 | - * | |
101 | - * @param \DateTime $fechaFin | |
102 | - * @return ComitepfaIntegrante | |
103 | - */ | |
104 | - public function setFechaFin($fechaFin) | |
105 | - { | |
106 | - $this->fecha_fin = $fechaFin; | |
107 | - | |
108 | - return $this; | |
109 | - } | |
110 | - | |
111 | - /** | |
112 | - * Get fecha_fin | |
113 | - * | |
114 | - * @return \DateTime | |
115 | - */ | |
116 | - public function getFechaFin() | |
117 | - { | |
118 | - return $this->fecha_fin; | |
119 | - } | |
120 | - | |
121 | - /** | |
122 | - * Set estatus | |
123 | - * | |
124 | - * @param boolean $estatus | |
125 | - * @return ComitepfaIntegrante | |
126 | - */ | |
127 | - public function setEstatus($estatus) | |
128 | - { | |
129 | - $this->estatus = $estatus; | |
130 | - | |
131 | - return $this; | |
132 | - } | |
133 | - | |
134 | - /** | |
135 | - * Get estatus | |
136 | - * | |
137 | - * @return boolean | |
138 | - */ | |
139 | - public function getEstatus() | |
140 | - { | |
141 | - return $this->estatus; | |
142 | - } | |
143 | - | |
144 | - /** | |
145 | - * Set programa | |
146 | - * | |
147 | - * @param \UBV\SurUbvBundle\Entity\Programa $programa | |
148 | - * @return ComitepfaIntegrante | |
149 | - */ | |
150 | - public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) | |
151 | - { | |
152 | - $this->programa = $programa; | |
153 | - | |
154 | - return $this; | |
155 | - } | |
156 | - | |
157 | - /** | |
158 | - * Get programa | |
159 | - * | |
160 | - * @return \UBV\SurUbvBundle\Entity\Programa | |
161 | - */ | |
162 | - public function getPrograma() | |
163 | - { | |
164 | - return $this->programa; | |
165 | - } | |
166 | - | |
167 | - /** | |
168 | - * Set docente | |
169 | - * | |
170 | - * @param \UBV\SurUbvBundle\Entity\Docente $docente | |
171 | - * @return ComitepfaIntegrante | |
172 | - */ | |
173 | - public function setDocente(\UBV\SurUbvBundle\Entity\Docente $docente) | |
174 | - { | |
175 | - $this->docente = $docente; | |
176 | - | |
177 | - return $this; | |
178 | - } | |
179 | - | |
180 | - /** | |
181 | - * Get docente | |
182 | - * | |
183 | - * @return \UBV\SurUbvBundle\Entity\Docente | |
184 | - */ | |
185 | - public function getDocente() | |
186 | - { | |
187 | - return $this->docente; | |
188 | - } | |
189 | - | |
190 | - /** | |
191 | - * Set comiteTipo | |
192 | - * | |
193 | - * @param \UBV\SurUbvBundle\Entity\ComiteTipo $comiteTipo | |
194 | - * @return ComitepfaIntegrante | |
195 | - */ | |
196 | - public function setComiteTipo(\UBV\SurUbvBundle\Entity\ComiteTipo $comiteTipo) | |
197 | - { | |
198 | - $this->comiteTipo = $comiteTipo; | |
199 | - | |
200 | - return $this; | |
201 | - } | |
202 | - | |
203 | - /** | |
204 | - * Get comiteTipo | |
205 | - * | |
206 | - * @return \UBV\SurUbvBundle\Entity\ComiteTipo | |
207 | - */ | |
208 | - public function getComiteTipo() | |
209 | - { | |
210 | - return $this->comiteTipo; | |
211 | - } | |
212 | -} |
src/UBV/PracticaBundle/Entity/ComitepfaIntegranteRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * ComitepfaIntegranteRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class ComitepfaIntegranteRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/Competencia.php
... | ... | @@ -1,139 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | - | |
7 | -/** | |
8 | - * UBV\SurUbvBundle\Entity\Competencia | |
9 | - * | |
10 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CompetenciaRepository") | |
11 | - * @ORM\Table(name="competencia", indexes={@ORM\Index(name="fk_malla_curricular_detalle_has_prueba1_idx", columns={"malla_curricular_detalle_id1"}), @ORM\Index(name="fk_malla_curricular_detalle_has_prueba2_idx1", columns={"malla_curricular_detalle_id"})}) | |
12 | - */ | |
13 | -class Competencia | |
14 | -{ | |
15 | - /** | |
16 | - * @ORM\Id | |
17 | - * @ORM\Column(type="integer") | |
18 | - */ | |
19 | - protected $malla_curricular_detalle_id; | |
20 | - | |
21 | - /** | |
22 | - * @ORM\Id | |
23 | - * @ORM\Column(type="integer") | |
24 | - */ | |
25 | - protected $malla_curricular_detalle_id1; | |
26 | - | |
27 | - /** | |
28 | - * @ORM\ManyToOne(targetEntity="MallaCurricularDetalle", inversedBy="competenciaRelatedByMallaCurricularDetalleIds") | |
29 | - * @ORM\JoinColumn(name="malla_curricular_detalle_id", referencedColumnName="id", nullable=false) | |
30 | - */ | |
31 | - protected $mallaCurricularDetalleRelatedByMallaCurricularDetalleId; | |
32 | - | |
33 | - /** | |
34 | - * @ORM\ManyToOne(targetEntity="MallaCurricularDetalle", inversedBy="competenciaRelatedByMallaCurricularDetalleId1s") | |
35 | - * @ORM\JoinColumn(name="malla_curricular_detalle_id1", referencedColumnName="id", nullable=false) | |
36 | - */ | |
37 | - protected $mallaCurricularDetalleRelatedByMallaCurricularDetalleId1; | |
38 | - | |
39 | - public function __construct() | |
40 | - { | |
41 | - } | |
42 | - | |
43 | - public function __sleep() | |
44 | - { | |
45 | - return array('malla_curricular_detalle_id', 'malla_curricular_detalle_id1'); | |
46 | - } | |
47 | - | |
48 | - /** | |
49 | - * Set malla_curricular_detalle_id | |
50 | - * | |
51 | - * @param integer $mallaCurricularDetalleId | |
52 | - * @return Competencia | |
53 | - */ | |
54 | - public function setMallaCurricularDetalleId($mallaCurricularDetalleId) | |
55 | - { | |
56 | - $this->malla_curricular_detalle_id = $mallaCurricularDetalleId; | |
57 | - | |
58 | - return $this; | |
59 | - } | |
60 | - | |
61 | - /** | |
62 | - * Get malla_curricular_detalle_id | |
63 | - * | |
64 | - * @return integer | |
65 | - */ | |
66 | - public function getMallaCurricularDetalleId() | |
67 | - { | |
68 | - return $this->malla_curricular_detalle_id; | |
69 | - } | |
70 | - | |
71 | - /** | |
72 | - * Set malla_curricular_detalle_id1 | |
73 | - * | |
74 | - * @param integer $mallaCurricularDetalleId1 | |
75 | - * @return Competencia | |
76 | - */ | |
77 | - public function setMallaCurricularDetalleId1($mallaCurricularDetalleId1) | |
78 | - { | |
79 | - $this->malla_curricular_detalle_id1 = $mallaCurricularDetalleId1; | |
80 | - | |
81 | - return $this; | |
82 | - } | |
83 | - | |
84 | - /** | |
85 | - * Get malla_curricular_detalle_id1 | |
86 | - * | |
87 | - * @return integer | |
88 | - */ | |
89 | - public function getMallaCurricularDetalleId1() | |
90 | - { | |
91 | - return $this->malla_curricular_detalle_id1; | |
92 | - } | |
93 | - | |
94 | - /** | |
95 | - * Set mallaCurricularDetalleRelatedByMallaCurricularDetalleId | |
96 | - * | |
97 | - * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalleRelatedByMallaCurricularDetalleId | |
98 | - * @return Competencia | |
99 | - */ | |
100 | - public function setMallaCurricularDetalleRelatedByMallaCurricularDetalleId(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalleRelatedByMallaCurricularDetalleId) | |
101 | - { | |
102 | - $this->mallaCurricularDetalleRelatedByMallaCurricularDetalleId = $mallaCurricularDetalleRelatedByMallaCurricularDetalleId; | |
103 | - | |
104 | - return $this; | |
105 | - } | |
106 | - | |
107 | - /** | |
108 | - * Get mallaCurricularDetalleRelatedByMallaCurricularDetalleId | |
109 | - * | |
110 | - * @return \UBV\SurUbvBundle\Entity\MallaCurricularDetalle | |
111 | - */ | |
112 | - public function getMallaCurricularDetalleRelatedByMallaCurricularDetalleId() | |
113 | - { | |
114 | - return $this->mallaCurricularDetalleRelatedByMallaCurricularDetalleId; | |
115 | - } | |
116 | - | |
117 | - /** | |
118 | - * Set mallaCurricularDetalleRelatedByMallaCurricularDetalleId1 | |
119 | - * | |
120 | - * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalleRelatedByMallaCurricularDetalleId1 | |
121 | - * @return Competencia | |
122 | - */ | |
123 | - public function setMallaCurricularDetalleRelatedByMallaCurricularDetalleId1(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalleRelatedByMallaCurricularDetalleId1) | |
124 | - { | |
125 | - $this->mallaCurricularDetalleRelatedByMallaCurricularDetalleId1 = $mallaCurricularDetalleRelatedByMallaCurricularDetalleId1; | |
126 | - | |
127 | - return $this; | |
128 | - } | |
129 | - | |
130 | - /** | |
131 | - * Get mallaCurricularDetalleRelatedByMallaCurricularDetalleId1 | |
132 | - * | |
133 | - * @return \UBV\SurUbvBundle\Entity\MallaCurricularDetalle | |
134 | - */ | |
135 | - public function getMallaCurricularDetalleRelatedByMallaCurricularDetalleId1() | |
136 | - { | |
137 | - return $this->mallaCurricularDetalleRelatedByMallaCurricularDetalleId1; | |
138 | - } | |
139 | -} |
src/UBV/PracticaBundle/Entity/CompetenciaRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * CompetenciaRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class CompetenciaRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/Convenio.php
... | ... | @@ -1,121 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\Convenio | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\ConvenioRepository") | |
12 | - * @ORM\Table(name="convenio", uniqueConstraints={@ORM\UniqueConstraint(name="id_convenio_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class Convenio | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - */ | |
20 | - protected $id; | |
21 | - | |
22 | - /** | |
23 | - * @ORM\Column(type="string", length=45) | |
24 | - */ | |
25 | - protected $descripcion; | |
26 | - | |
27 | - /** | |
28 | - * @ORM\OneToMany(targetEntity="Candidato", mappedBy="convenio") | |
29 | - * @ORM\JoinColumn(name="id", referencedColumnName="convenio_id", nullable=false) | |
30 | - */ | |
31 | - protected $candidatos; | |
32 | - | |
33 | - public function __construct() | |
34 | - { | |
35 | - $this->candidatos = new ArrayCollection(); | |
36 | - } | |
37 | - | |
38 | - public function __sleep() | |
39 | - { | |
40 | - return array('id', 'descripcion'); | |
41 | - } | |
42 | - | |
43 | - /** | |
44 | - * Set id | |
45 | - * | |
46 | - * @param integer $id | |
47 | - * @return Convenio | |
48 | - */ | |
49 | - public function setId($id) | |
50 | - { | |
51 | - $this->id = $id; | |
52 | - | |
53 | - return $this; | |
54 | - } | |
55 | - | |
56 | - /** | |
57 | - * Get id | |
58 | - * | |
59 | - * @return integer | |
60 | - */ | |
61 | - public function getId() | |
62 | - { | |
63 | - return $this->id; | |
64 | - } | |
65 | - | |
66 | - /** | |
67 | - * Set descripcion | |
68 | - * | |
69 | - * @param string $descripcion | |
70 | - * @return Convenio | |
71 | - */ | |
72 | - public function setDescripcion($descripcion) | |
73 | - { | |
74 | - $this->descripcion = $descripcion; | |
75 | - | |
76 | - return $this; | |
77 | - } | |
78 | - | |
79 | - /** | |
80 | - * Get descripcion | |
81 | - * | |
82 | - * @return string | |
83 | - */ | |
84 | - public function getDescripcion() | |
85 | - { | |
86 | - return $this->descripcion; | |
87 | - } | |
88 | - | |
89 | - /** | |
90 | - * Add candidatos | |
91 | - * | |
92 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
93 | - * @return Convenio | |
94 | - */ | |
95 | - public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
96 | - { | |
97 | - $this->candidatos[] = $candidatos; | |
98 | - | |
99 | - return $this; | |
100 | - } | |
101 | - | |
102 | - /** | |
103 | - * Remove candidatos | |
104 | - * | |
105 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
106 | - */ | |
107 | - public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
108 | - { | |
109 | - $this->candidatos->removeElement($candidatos); | |
110 | - } | |
111 | - | |
112 | - /** | |
113 | - * Get candidatos | |
114 | - * | |
115 | - * @return \Doctrine\Common\Collections\Collection | |
116 | - */ | |
117 | - public function getCandidatos() | |
118 | - { | |
119 | - return $this->candidatos; | |
120 | - } | |
121 | -} |
src/UBV/PracticaBundle/Entity/ConvenioRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * ConvenioRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class ConvenioRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/CorreoTipo.php
... | ... | @@ -1,162 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | -use Symfony\Component\Validator\Constraints as Assert; | |
8 | - | |
9 | -/** | |
10 | - * UBV\SurUbvBundle\Entity\CorreoTipo | |
11 | - * | |
12 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CorreoTipoRepository") | |
13 | - * @ORM\Table(name="correo_tipo", uniqueConstraints={@ORM\UniqueConstraint(name="id_correo_tipo_UNIQUE", columns={"id"})}) | |
14 | - */ | |
15 | -class CorreoTipo | |
16 | -{ | |
17 | - /** | |
18 | - * @ORM\Id | |
19 | - * @ORM\Column(type="integer") | |
20 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
21 | - * @ORM\SequenceGenerator(sequenceName="correo_tipo_id_seq", allocationSize=1, initialValue=1) | |
22 | - */ | |
23 | - protected $id; | |
24 | - | |
25 | - /** | |
26 | - * @ORM\Column(type="string", length=20) | |
27 | - *@Assert\NotBlank( message= "Por favor introduzca la Descripciรณn del Correo") | |
28 | - *@Assert\Length( | |
29 | - * min = 5, | |
30 | - * max = 20, | |
31 | - * minMessage = "Por favor introduzca un Tipo de Correo mรกs especรญfico. Mรญnimo {{ limit }} caracteres", | |
32 | - * maxMessage = "Por favor introduzca un Tipo de Correo mรกs breve. Mรกximo {{ limit }} caracteres", | |
33 | - *) | |
34 | - */ | |
35 | - protected $descripcion; | |
36 | - | |
37 | - /** | |
38 | - * @ORM\OneToMany(targetEntity="PersonaCorreo", mappedBy="correoTipo") | |
39 | - * @ORM\JoinColumn(name="id", referencedColumnName="correo_tipo_id", nullable=false) | |
40 | - */ | |
41 | - protected $personaCorreos; | |
42 | - | |
43 | - /** | |
44 | - * @ORM\OneToMany(targetEntity="Candidato", mappedBy="correoTipo") | |
45 | - * @ORM\JoinColumn(name="id", referencedColumnName="correo_tipo_id", nullable=false) | |
46 | - */ | |
47 | - protected $candidatos; | |
48 | - | |
49 | - public function __construct() | |
50 | - { | |
51 | - $this->personaCorreos = new ArrayCollection(); | |
52 | - $this->candidatos = new ArrayCollection(); | |
53 | - } | |
54 | - | |
55 | - public function __sleep() | |
56 | - { | |
57 | - return array('id', 'descripcion'); | |
58 | - } | |
59 | - | |
60 | - /** | |
61 | - * Get id | |
62 | - * | |
63 | - * @return integer | |
64 | - */ | |
65 | - public function getId() | |
66 | - { | |
67 | - return $this->id; | |
68 | - } | |
69 | - | |
70 | - /** | |
71 | - * Set descripcion | |
72 | - * | |
73 | - * @param string $descripcion | |
74 | - * @return CorreoTipo | |
75 | - */ | |
76 | - public function setDescripcion($descripcion) | |
77 | - { | |
78 | - $this->descripcion = $descripcion; | |
79 | - | |
80 | - return $this; | |
81 | - } | |
82 | - | |
83 | - /** | |
84 | - * Get descripcion | |
85 | - * | |
86 | - * @return string | |
87 | - */ | |
88 | - public function getDescripcion() | |
89 | - { | |
90 | - return $this->descripcion; | |
91 | - } | |
92 | - | |
93 | - /** | |
94 | - * Add personaCorreos | |
95 | - * | |
96 | - * @param \UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos | |
97 | - * @return CorreoTipo | |
98 | - */ | |
99 | - public function addPersonaCorreo(\UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos) | |
100 | - { | |
101 | - $this->personaCorreos[] = $personaCorreos; | |
102 | - | |
103 | - return $this; | |
104 | - } | |
105 | - | |
106 | - /** | |
107 | - * Remove personaCorreos | |
108 | - * | |
109 | - * @param \UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos | |
110 | - */ | |
111 | - public function removePersonaCorreo(\UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos) | |
112 | - { | |
113 | - $this->personaCorreos->removeElement($personaCorreos); | |
114 | - } | |
115 | - | |
116 | - /** | |
117 | - * Get personaCorreos | |
118 | - * | |
119 | - * @return \Doctrine\Common\Collections\Collection | |
120 | - */ | |
121 | - public function getPersonaCorreos() | |
122 | - { | |
123 | - return $this->personaCorreos; | |
124 | - } | |
125 | - | |
126 | - public function __toString() { | |
127 | - return $this->getDescripcion(); | |
128 | - } | |
129 | - | |
130 | - /** | |
131 | - * Add candidatos | |
132 | - * | |
133 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
134 | - * @return CorreoTipo | |
135 | - */ | |
136 | - public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
137 | - { | |
138 | - $this->candidatos[] = $candidatos; | |
139 | - | |
140 | - return $this; | |
141 | - } | |
142 | - | |
143 | - /** | |
144 | - * Remove candidatos | |
145 | - * | |
146 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
147 | - */ | |
148 | - public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
149 | - { | |
150 | - $this->candidatos->removeElement($candidatos); | |
151 | - } | |
152 | - | |
153 | - /** | |
154 | - * Get candidatos | |
155 | - * | |
156 | - * @return \Doctrine\Common\Collections\Collection | |
157 | - */ | |
158 | - public function getCandidatos() | |
159 | - { | |
160 | - return $this->candidatos; | |
161 | - } | |
162 | -} |
src/UBV/PracticaBundle/Entity/CorreoTipoRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * CorreoTipoRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class CorreoTipoRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/CuentaBancaria.php
... | ... | @@ -1,201 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\CuentaBancaria | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CuentaBancariaRepository") | |
12 | - * @ORM\Table(name="cuenta_bancaria", indexes={@ORM\Index(name="fk_cuenta_bancaria_tipo_cuenta_bancaria1_idx", columns={"tipo_cuenta_bancaria_id"}), @ORM\Index(name="fk_cuenta_bancaria_banco1_idx", columns={"banco_id"}), @ORM\Index(name="fk_cuenta_bancaria_unidad_administrativa1_idx", columns={"unidad_administrativa_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_cuenta_bancaria_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class CuentaBancaria | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="cuenta_bancaria_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=45) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="Deposito", mappedBy="cuentaBancaria") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="cuenta_bancaria_id", nullable=false) | |
32 | - */ | |
33 | - protected $depositos; | |
34 | - | |
35 | - /** | |
36 | - * @ORM\ManyToOne(targetEntity="CuentaBancariaTipo", inversedBy="cuentaBancarias") | |
37 | - * @ORM\JoinColumn(name="tipo_cuenta_bancaria_id", referencedColumnName="id", nullable=false) | |
38 | - */ | |
39 | - protected $cuentaBancariaTipo; | |
40 | - | |
41 | - /** | |
42 | - * @ORM\ManyToOne(targetEntity="Banco", inversedBy="cuentaBancarias") | |
43 | - * @ORM\JoinColumn(name="banco_id", referencedColumnName="id", nullable=false) | |
44 | - */ | |
45 | - protected $banco; | |
46 | - | |
47 | - /** | |
48 | - * @ORM\ManyToOne(targetEntity="UnidadAdministrativa", inversedBy="cuentaBancarias") | |
49 | - * @ORM\JoinColumn(name="unidad_administrativa_id", referencedColumnName="id", nullable=false) | |
50 | - */ | |
51 | - protected $unidadAdministrativa; | |
52 | - | |
53 | - public function __construct() | |
54 | - { | |
55 | - $this->depositos = new ArrayCollection(); | |
56 | - } | |
57 | - | |
58 | - public function __sleep() | |
59 | - { | |
60 | - return array('id', 'descripcion', 'tipo_cuenta_bancaria_id', 'banco_id', 'unidad_administrativa_id'); | |
61 | - } | |
62 | - | |
63 | - /** | |
64 | - * Get id | |
65 | - * | |
66 | - * @return integer | |
67 | - */ | |
68 | - public function getId() | |
69 | - { | |
70 | - return $this->id; | |
71 | - } | |
72 | - | |
73 | - /** | |
74 | - * Set descripcion | |
75 | - * | |
76 | - * @param string $descripcion | |
77 | - * @return CuentaBancaria | |
78 | - */ | |
79 | - public function setDescripcion($descripcion) | |
80 | - { | |
81 | - $this->descripcion = $descripcion; | |
82 | - | |
83 | - return $this; | |
84 | - } | |
85 | - | |
86 | - /** | |
87 | - * Get descripcion | |
88 | - * | |
89 | - * @return string | |
90 | - */ | |
91 | - public function getDescripcion() | |
92 | - { | |
93 | - return $this->descripcion; | |
94 | - } | |
95 | - | |
96 | - /** | |
97 | - * Add depositos | |
98 | - * | |
99 | - * @param \UBV\SurUbvBundle\Entity\Deposito $depositos | |
100 | - * @return CuentaBancaria | |
101 | - */ | |
102 | - public function addDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) | |
103 | - { | |
104 | - $this->depositos[] = $depositos; | |
105 | - | |
106 | - return $this; | |
107 | - } | |
108 | - | |
109 | - /** | |
110 | - * Remove depositos | |
111 | - * | |
112 | - * @param \UBV\SurUbvBundle\Entity\Deposito $depositos | |
113 | - */ | |
114 | - public function removeDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) | |
115 | - { | |
116 | - $this->depositos->removeElement($depositos); | |
117 | - } | |
118 | - | |
119 | - /** | |
120 | - * Get depositos | |
121 | - * | |
122 | - * @return \Doctrine\Common\Collections\Collection | |
123 | - */ | |
124 | - public function getDepositos() | |
125 | - { | |
126 | - return $this->depositos; | |
127 | - } | |
128 | - | |
129 | - /** | |
130 | - * Set cuentaBancariaTipo | |
131 | - * | |
132 | - * @param \UBV\SurUbvBundle\Entity\CuentaBancariaTipo $cuentaBancariaTipo | |
133 | - * @return CuentaBancaria | |
134 | - */ | |
135 | - public function setCuentaBancariaTipo(\UBV\SurUbvBundle\Entity\CuentaBancariaTipo $cuentaBancariaTipo) | |
136 | - { | |
137 | - $this->cuentaBancariaTipo = $cuentaBancariaTipo; | |
138 | - | |
139 | - return $this; | |
140 | - } | |
141 | - | |
142 | - /** | |
143 | - * Get cuentaBancariaTipo | |
144 | - * | |
145 | - * @return \UBV\SurUbvBundle\Entity\CuentaBancariaTipo | |
146 | - */ | |
147 | - public function getCuentaBancariaTipo() | |
148 | - { | |
149 | - return $this->cuentaBancariaTipo; | |
150 | - } | |
151 | - | |
152 | - /** | |
153 | - * Set banco | |
154 | - * | |
155 | - * @param \UBV\SurUbvBundle\Entity\Banco $banco | |
156 | - * @return CuentaBancaria | |
157 | - */ | |
158 | - public function setBanco(\UBV\SurUbvBundle\Entity\Banco $banco) | |
159 | - { | |
160 | - $this->banco = $banco; | |
161 | - | |
162 | - return $this; | |
163 | - } | |
164 | - | |
165 | - /** | |
166 | - * Get banco | |
167 | - * | |
168 | - * @return \UBV\SurUbvBundle\Entity\Banco | |
169 | - */ | |
170 | - public function getBanco() | |
171 | - { | |
172 | - return $this->banco; | |
173 | - } | |
174 | - | |
175 | - /** | |
176 | - * Set unidadAdministrativa | |
177 | - * | |
178 | - * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativa | |
179 | - * @return CuentaBancaria | |
180 | - */ | |
181 | - public function setUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativa) | |
182 | - { | |
183 | - $this->unidadAdministrativa = $unidadAdministrativa; | |
184 | - | |
185 | - return $this; | |
186 | - } | |
187 | - | |
188 | - /** | |
189 | - * Get unidadAdministrativa | |
190 | - * | |
191 | - * @return \UBV\SurUbvBundle\Entity\UnidadAdministrativa | |
192 | - */ | |
193 | - public function getUnidadAdministrativa() | |
194 | - { | |
195 | - return $this->unidadAdministrativa; | |
196 | - } | |
197 | - | |
198 | - public function __toString() { | |
199 | - return $this->getDescripcion(); | |
200 | - } | |
201 | -} |
src/UBV/PracticaBundle/Entity/CuentaBancariaRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * CuentaBancariaRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class CuentaBancariaRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/CuentaBancariaTipo.php
... | ... | @@ -1,120 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | -use Symfony\Component\Validator\Constraints as Assert; | |
8 | - | |
9 | -/** | |
10 | - * UBV\SurUbvBundle\Entity\CuentaBancariaTipo | |
11 | - * | |
12 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CuentaBancariaTipoRepository") | |
13 | - * @ORM\Table(name="cuenta_bancaria_tipo", uniqueConstraints={@ORM\UniqueConstraint(name="id_cuenta_bancaria_tipo_UNIQUE", columns={"id"})}) | |
14 | - */ | |
15 | -class CuentaBancariaTipo | |
16 | -{ | |
17 | - /** | |
18 | - * @ORM\Id | |
19 | - * @ORM\Column(type="integer") | |
20 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
21 | - * @ORM\SequenceGenerator(sequenceName="cuenta_bancaria_tipo_id_seq", allocationSize=1, initialValue=1) | |
22 | - */ | |
23 | - protected $id; | |
24 | - | |
25 | - /** | |
26 | - * @ORM\Column(type="string", length=15) | |
27 | - * @Assert\NotBlank( message= "Por favor introduzca una Descripciรณn de la Cuenta Bancaria") | |
28 | - * @Assert\Length( | |
29 | - * min = 7, | |
30 | - * max = 70, | |
31 | - * minMessage = "Por favor introduzca un tipo de Cuenta valido. Mรญnimo {{ limit }} caracteres", | |
32 | - * maxMessage = "Por favor introduzca un tipo de Cuenta valido. Mรกximo {{ limit }} caracteres", | |
33 | - * | |
34 | - * ) | |
35 | - * @Assert\NotNull(message="Este Campo no puede Ser Nulo") | |
36 | - */ | |
37 | - protected $descripcion; | |
38 | - | |
39 | - /** | |
40 | - * @ORM\OneToMany(targetEntity="CuentaBancaria", mappedBy="cuentaBancariaTipo") | |
41 | - * @ORM\JoinColumn(name="id", referencedColumnName="tipo_cuenta_bancaria_id", nullable=false) | |
42 | - */ | |
43 | - protected $cuentaBancarias; | |
44 | - | |
45 | - public function __construct() | |
46 | - { | |
47 | - $this->cuentaBancarias = new ArrayCollection(); | |
48 | - } | |
49 | - | |
50 | - public function __sleep() | |
51 | - { | |
52 | - return array('id', 'descripcion'); | |
53 | - } | |
54 | - | |
55 | - /** | |
56 | - * Get id | |
57 | - * | |
58 | - * @return integer | |
59 | - */ | |
60 | - public function getId() | |
61 | - { | |
62 | - return $this->id; | |
63 | - } | |
64 | - | |
65 | - /** | |
66 | - * Set descripcion | |
67 | - * | |
68 | - * @param string $descripcion | |
69 | - * @return CuentaBancariaTipo | |
70 | - */ | |
71 | - public function setDescripcion($descripcion) | |
72 | - { | |
73 | - $this->descripcion = $descripcion; | |
74 | - | |
75 | - return $this; | |
76 | - } | |
77 | - | |
78 | - /** | |
79 | - * Get descripcion | |
80 | - * | |
81 | - * @return string | |
82 | - */ | |
83 | - public function getDescripcion() | |
84 | - { | |
85 | - return $this->descripcion; | |
86 | - } | |
87 | - | |
88 | - /** | |
89 | - * Add cuentaBancarias | |
90 | - * | |
91 | - * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias | |
92 | - * @return CuentaBancariaTipo | |
93 | - */ | |
94 | - public function addCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias) | |
95 | - { | |
96 | - $this->cuentaBancarias[] = $cuentaBancarias; | |
97 | - | |
98 | - return $this; | |
99 | - } | |
100 | - | |
101 | - /** | |
102 | - * Remove cuentaBancarias | |
103 | - * | |
104 | - * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias | |
105 | - */ | |
106 | - public function removeCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias) | |
107 | - { | |
108 | - $this->cuentaBancarias->removeElement($cuentaBancarias); | |
109 | - } | |
110 | - | |
111 | - /** | |
112 | - * Get cuentaBancarias | |
113 | - * | |
114 | - * @return \Doctrine\Common\Collections\Collection | |
115 | - */ | |
116 | - public function getCuentaBancarias() | |
117 | - { | |
118 | - return $this->cuentaBancarias; | |
119 | - } | |
120 | -} |
src/UBV/PracticaBundle/Entity/CuentaBancariaTipoRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * CuentaBancariaTipoRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class CuentaBancariaTipoRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/Deposito.php
... | ... | @@ -1,331 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | -use Symfony\Component\Validator\Constraints as Assert; | |
8 | - | |
9 | -/** | |
10 | - * UBV\SurUbvBundle\Entity\Deposito | |
11 | - * | |
12 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DepositoRepository") | |
13 | - * @ORM\Table(name="deposito", indexes={@ORM\Index(name="fk_deposito_cuenta_bancaria1_idx", columns={"cuenta_bancaria_id"}), @ORM\Index(name="fk_deposito_persona1_idx", columns={"persona_id"}), @ORM\Index(name="fk_deposito_deposito_tipo1_idx", columns={"deposito_tipo_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_deposito_UNIQUE", columns={"id"}), @ORM\UniqueConstraint(name="num_deposito_UNIQUE", columns={"num_deposito"})}) | |
14 | - */ | |
15 | -class Deposito | |
16 | -{ | |
17 | - /** | |
18 | - * @ORM\Id | |
19 | - * @ORM\Column(type="integer") | |
20 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
21 | - * @ORM\SequenceGenerator(sequenceName="deposito_id_seq", allocationSize=1, initialValue=1) | |
22 | - */ | |
23 | - protected $id; | |
24 | - | |
25 | - /** | |
26 | - * @Assert\NotNull(message= "Por favor introduzca un nรบmero de deposito", groups={"Default"}) | |
27 | - * @Assert\NotBlank( message= "Por favor introduzca un nรบmero de deposito", groups={"Default"}) | |
28 | - * @ORM\Column(type="integer") | |
29 | - */ | |
30 | - protected $num_deposito; | |
31 | - | |
32 | - /** | |
33 | - * @Assert\NotNull(message= "Por favor introduzca el monto en Bs. depositado", groups={"Default"}) | |
34 | - * @Assert\NotBlank( message= "Por favor introduzca el monto en Bs. depositado", groups={"Default"}) | |
35 | - * @ORM\Column(type="float") | |
36 | - */ | |
37 | - protected $monto; | |
38 | - | |
39 | - /** | |
40 | - * @ORM\ManyToOne(targetEntity="Arancel", inversedBy="depositos") | |
41 | - * @ORM\JoinColumn(name="arancel_id", referencedColumnName="id", nullable=false) | |
42 | - */ | |
43 | - protected $arancel; | |
44 | - | |
45 | - /** | |
46 | - * @ORM\Column(type="date") | |
47 | - */ | |
48 | - protected $fecha_deposito; | |
49 | - | |
50 | - /** | |
51 | - * @ORM\OneToMany(targetEntity="DepositoDetalle", mappedBy="deposito") | |
52 | - * @ORM\JoinColumn(name="id", referencedColumnName="deposito_id", nullable=false) | |
53 | - */ | |
54 | - protected $depositoDetalles; | |
55 | - | |
56 | - /** | |
57 | - * @ORM\ManyToOne(targetEntity="CuentaBancaria", inversedBy="depositos") | |
58 | - * @ORM\JoinColumn(name="cuenta_bancaria_id", referencedColumnName="id", nullable=false) | |
59 | - */ | |
60 | - protected $cuentaBancaria; | |
61 | - | |
62 | - /** | |
63 | - * @ORM\ManyToOne(targetEntity="Persona", inversedBy="depositos") | |
64 | - * @ORM\JoinColumn(name="persona_id", referencedColumnName="id", nullable=false) | |
65 | - */ | |
66 | - protected $persona; | |
67 | - | |
68 | - /** | |
69 | - * @ORM\ManyToOne(targetEntity="DepositoTipo", inversedBy="depositos") | |
70 | - * @ORM\JoinColumn(name="deposito_tipo_id", referencedColumnName="id", nullable=false) | |
71 | - */ | |
72 | - protected $depositoTipo; | |
73 | - | |
74 | - /** | |
75 | - * @ORM\ManyToMany(targetEntity="Arancel", inversedBy="depositos") | |
76 | - * @ORM\JoinTable(name="deposito_arancel", | |
77 | - * joinColumns={@ORM\JoinColumn(name="deposito_id", referencedColumnName="id", nullable=false)}, | |
78 | - * inverseJoinColumns={@ORM\JoinColumn(name="arancel_id", referencedColumnName="id", nullable=false)} | |
79 | - * ) | |
80 | - */ | |
81 | - protected $arancels; | |
82 | - | |
83 | - public function __construct() | |
84 | - { | |
85 | - $this->depositoDetalles = new ArrayCollection(); | |
86 | - $this->arancels = new ArrayCollection(); | |
87 | - } | |
88 | - | |
89 | - public function __sleep() | |
90 | - { | |
91 | - return array('id', 'num_deposito', 'monto', 'cuenta_bancaria_id', 'persona_id', 'fecha_deposito', 'deposito_tipo_id'); | |
92 | - } | |
93 | - | |
94 | - /** | |
95 | - * Get id | |
96 | - * | |
97 | - * @return integer | |
98 | - */ | |
99 | - public function getId() | |
100 | - { | |
101 | - return $this->id; | |
102 | - } | |
103 | - | |
104 | - /** | |
105 | - * Set num_deposito | |
106 | - * | |
107 | - * @param integer $numDeposito | |
108 | - * @return Deposito | |
109 | - */ | |
110 | - public function setNumDeposito($numDeposito) | |
111 | - { | |
112 | - $this->num_deposito = $numDeposito; | |
113 | - | |
114 | - return $this; | |
115 | - } | |
116 | - | |
117 | - /** | |
118 | - * Set monto | |
119 | - * | |
120 | - * @param float $monto | |
121 | - * @return Deposito | |
122 | - */ | |
123 | - public function setMonto($monto) | |
124 | - { | |
125 | - $this->monto = $monto; | |
126 | - | |
127 | - return $this; | |
128 | - } | |
129 | - | |
130 | - /** | |
131 | - * Get monto | |
132 | - * | |
133 | - * @return float | |
134 | - */ | |
135 | - public function getMonto() | |
136 | - { | |
137 | - return $this->monto; | |
138 | - } | |
139 | - | |
140 | - /** | |
141 | - * Set fecha_deposito | |
142 | - * | |
143 | - * @param \DateTime $fechaDeposito | |
144 | - * @return Deposito | |
145 | - */ | |
146 | - public function setFechaDeposito($fechaDeposito) | |
147 | - { | |
148 | - $this->fecha_deposito = $fechaDeposito; | |
149 | - | |
150 | - return $this; | |
151 | - } | |
152 | - | |
153 | - /** | |
154 | - * Get fecha_deposito | |
155 | - * | |
156 | - * @return \DateTime | |
157 | - */ | |
158 | - public function getFechaDeposito() | |
159 | - { | |
160 | - return $this->fecha_deposito; | |
161 | - } | |
162 | - | |
163 | - /** | |
164 | - * Add depositoDetalles | |
165 | - * | |
166 | - * @param \UBV\SurUbvBundle\Entity\DepositoDetalle $depositoDetalles | |
167 | - * @return Deposito | |
168 | - */ | |
169 | - public function addDepositoDetalle(\UBV\SurUbvBundle\Entity\DepositoDetalle $depositoDetalles) | |
170 | - { | |
171 | - $this->depositoDetalles[] = $depositoDetalles; | |
172 | - | |
173 | - return $this; | |
174 | - } | |
175 | - | |
176 | - /** | |
177 | - * Remove depositoDetalles | |
178 | - * | |
179 | - * @param \UBV\SurUbvBundle\Entity\DepositoDetalle $depositoDetalles | |
180 | - */ | |
181 | - public function removeDepositoDetalle(\UBV\SurUbvBundle\Entity\DepositoDetalle $depositoDetalles) | |
182 | - { | |
183 | - $this->depositoDetalles->removeElement($depositoDetalles); | |
184 | - } | |
185 | - | |
186 | - /** | |
187 | - * Get depositoDetalles | |
188 | - * | |
189 | - * @return \Doctrine\Common\Collections\Collection | |
190 | - */ | |
191 | - public function getDepositoDetalles() | |
192 | - { | |
193 | - return $this->depositoDetalles; | |
194 | - } | |
195 | - | |
196 | - /** | |
197 | - * Set cuentaBancaria | |
198 | - * | |
199 | - * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancaria | |
200 | - * @return Deposito | |
201 | - */ | |
202 | - public function setCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancaria) | |
203 | - { | |
204 | - $this->cuentaBancaria = $cuentaBancaria; | |
205 | - | |
206 | - return $this; | |
207 | - } | |
208 | - | |
209 | - /** | |
210 | - * Get cuentaBancaria | |
211 | - * | |
212 | - * @return \UBV\SurUbvBundle\Entity\CuentaBancaria | |
213 | - */ | |
214 | - public function getCuentaBancaria() | |
215 | - { | |
216 | - return $this->cuentaBancaria; | |
217 | - } | |
218 | - | |
219 | - /** | |
220 | - * Set persona | |
221 | - * | |
222 | - * @param \UBV\SurUbvBundle\Entity\Persona $persona | |
223 | - * @return Deposito | |
224 | - */ | |
225 | - public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) | |
226 | - { | |
227 | - $this->persona = $persona; | |
228 | - | |
229 | - return $this; | |
230 | - } | |
231 | - | |
232 | - /** | |
233 | - * Get persona | |
234 | - * | |
235 | - * @return \UBV\SurUbvBundle\Entity\Persona | |
236 | - */ | |
237 | - public function getPersona() | |
238 | - { | |
239 | - return $this->persona; | |
240 | - } | |
241 | - | |
242 | - /** | |
243 | - * Set depositoTipo | |
244 | - * | |
245 | - * @param \UBV\SurUbvBundle\Entity\DepositoTipo $depositoTipo | |
246 | - * @return Deposito | |
247 | - */ | |
248 | - public function setDepositoTipo(\UBV\SurUbvBundle\Entity\DepositoTipo $depositoTipo) | |
249 | - { | |
250 | - $this->depositoTipo = $depositoTipo; | |
251 | - | |
252 | - return $this; | |
253 | - } | |
254 | - | |
255 | - /** | |
256 | - * Get depositoTipo | |
257 | - * | |
258 | - * @return \UBV\SurUbvBundle\Entity\DepositoTipo | |
259 | - */ | |
260 | - public function getDepositoTipo() | |
261 | - { | |
262 | - return $this->depositoTipo; | |
263 | - } | |
264 | - | |
265 | - /** | |
266 | - * Add arancels | |
267 | - * | |
268 | - * @param \UBV\SurUbvBundle\Entity\Arancel $arancels | |
269 | - * @return Deposito | |
270 | - */ | |
271 | - public function addArancel(\UBV\SurUbvBundle\Entity\Arancel $arancels) | |
272 | - { | |
273 | - $this->arancels[] = $arancels; | |
274 | - | |
275 | - return $this; | |
276 | - } | |
277 | - | |
278 | - /** | |
279 | - * Remove arancels | |
280 | - * | |
281 | - * @param \UBV\SurUbvBundle\Entity\Arancel $arancels | |
282 | - */ | |
283 | - public function removeArancel(\UBV\SurUbvBundle\Entity\Arancel $arancels) | |
284 | - { | |
285 | - $this->arancels->removeElement($arancels); | |
286 | - } | |
287 | - | |
288 | - /** | |
289 | - * Get arancels | |
290 | - * | |
291 | - * @return \Doctrine\Common\Collections\Collection | |
292 | - */ | |
293 | - public function getArancels() | |
294 | - { | |
295 | - return $this->arancels; | |
296 | - } | |
297 | - | |
298 | - /** | |
299 | - * Get num_deposito | |
300 | - * | |
301 | - * @return integer | |
302 | - */ | |
303 | - public function getNumDeposito() | |
304 | - { | |
305 | - return $this->num_deposito; | |
306 | - } | |
307 | - | |
308 | - /** | |
309 | - * Set arancel | |
310 | - * | |
311 | - * @param \UBV\SurUbvBundle\Entity\Arancel $arancel | |
312 | - * @return Deposito | |
313 | - */ | |
314 | - public function setArancel(\UBV\SurUbvBundle\Entity\Arancel $arancel) | |
315 | - { | |
316 | - $this->arancel = $arancel; | |
317 | - | |
318 | - return $this; | |
319 | - } | |
320 | - | |
321 | - /** | |
322 | - * Get arancel | |
323 | - * | |
324 | - * @return \UBV\SurUbvBundle\Entity\Arancel | |
325 | - */ | |
326 | - public function getArancel() | |
327 | - { | |
328 | - return $this->arancel; | |
329 | - } | |
330 | - | |
331 | -} |
src/UBV/PracticaBundle/Entity/DepositoDetalle.php
... | ... | @@ -1,127 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | - | |
7 | -/** | |
8 | - * UBV\SurUbvBundle\Entity\DepositoDetalle | |
9 | - * | |
10 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DepositoDetalleRepository") | |
11 | - * @ORM\Table(name="deposito_detalle", indexes={@ORM\Index(name="fk_deposito_detalle_banco1_idx", columns={"banco_id"}), @ORM\Index(name="fk_deposito_detalle_deposito1_idx", columns={"deposito_id"})}) | |
12 | - */ | |
13 | -class DepositoDetalle | |
14 | -{ | |
15 | - /** | |
16 | - * @ORM\Id | |
17 | - * @ORM\Column(type="integer") | |
18 | - * @ORM\GeneratedValue(strategy="AUTO") | |
19 | - * @ORM\SequenceGenerator(sequenceName="deposito_detalle_id_seq", allocationSize=1, initialValue=1) | |
20 | - */ | |
21 | - protected $id; | |
22 | - | |
23 | - /** | |
24 | - * @ORM\Column(type="string", length=45) | |
25 | - */ | |
26 | - protected $cta_bancaria_origen; | |
27 | - | |
28 | - /** | |
29 | - * @ORM\ManyToOne(targetEntity="Banco", inversedBy="depositoDetalles") | |
30 | - * @ORM\JoinColumn(name="banco_id", referencedColumnName="id", nullable=false) | |
31 | - */ | |
32 | - protected $banco; | |
33 | - | |
34 | - /** | |
35 | - * @ORM\ManyToOne(targetEntity="Deposito", inversedBy="depositoDetalles") | |
36 | - * @ORM\JoinColumn(name="deposito_id", referencedColumnName="id", nullable=false) | |
37 | - */ | |
38 | - protected $deposito; | |
39 | - | |
40 | - public function __construct() | |
41 | - { | |
42 | - } | |
43 | - | |
44 | - public function __sleep() | |
45 | - { | |
46 | - return array('id', 'cta_bancaria_origen', 'banco_id', 'deposito_id'); | |
47 | - } | |
48 | - | |
49 | - /** | |
50 | - * Get id | |
51 | - * | |
52 | - * @return integer | |
53 | - */ | |
54 | - public function getId() | |
55 | - { | |
56 | - return $this->id; | |
57 | - } | |
58 | - | |
59 | - /** | |
60 | - * Set cta_bancaria_origen | |
61 | - * | |
62 | - * @param string $ctaBancariaOrigen | |
63 | - * @return DepositoDetalle | |
64 | - */ | |
65 | - public function setCtaBancariaOrigen($ctaBancariaOrigen) | |
66 | - { | |
67 | - $this->cta_bancaria_origen = $ctaBancariaOrigen; | |
68 | - | |
69 | - return $this; | |
70 | - } | |
71 | - | |
72 | - /** | |
73 | - * Get cta_bancaria_origen | |
74 | - * | |
75 | - * @return string | |
76 | - */ | |
77 | - public function getCtaBancariaOrigen() | |
78 | - { | |
79 | - return $this->cta_bancaria_origen; | |
80 | - } | |
81 | - | |
82 | - /** | |
83 | - * Set banco | |
84 | - * | |
85 | - * @param \UBV\SurUbvBundle\Entity\Banco $banco | |
86 | - * @return DepositoDetalle | |
87 | - */ | |
88 | - public function setBanco(\UBV\SurUbvBundle\Entity\Banco $banco) | |
89 | - { | |
90 | - $this->banco = $banco; | |
91 | - | |
92 | - return $this; | |
93 | - } | |
94 | - | |
95 | - /** | |
96 | - * Get banco | |
97 | - * | |
98 | - * @return \UBV\SurUbvBundle\Entity\Banco | |
99 | - */ | |
100 | - public function getBanco() | |
101 | - { | |
102 | - return $this->banco; | |
103 | - } | |
104 | - | |
105 | - /** | |
106 | - * Set deposito | |
107 | - * | |
108 | - * @param \UBV\SurUbvBundle\Entity\Deposito $deposito | |
109 | - * @return DepositoDetalle | |
110 | - */ | |
111 | - public function setDeposito(\UBV\SurUbvBundle\Entity\Deposito $deposito) | |
112 | - { | |
113 | - $this->deposito = $deposito; | |
114 | - | |
115 | - return $this; | |
116 | - } | |
117 | - | |
118 | - /** | |
119 | - * Get deposito | |
120 | - * | |
121 | - * @return \UBV\SurUbvBundle\Entity\Deposito | |
122 | - */ | |
123 | - public function getDeposito() | |
124 | - { | |
125 | - return $this->deposito; | |
126 | - } | |
127 | -} |
src/UBV/PracticaBundle/Entity/DepositoDetalleRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * DepositoDetalleRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class DepositoDetalleRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/DepositoRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * DepositoRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class DepositoRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/DepositoTipo.php
... | ... | @@ -1,142 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\DepositoTipo | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DepositoTipoRepository") | |
12 | - * @ORM\Table(name="deposito_tipo") | |
13 | - */ | |
14 | -class DepositoTipo | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="deposito_tipo_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=45) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\Column(type="boolean") | |
31 | - */ | |
32 | - protected $estatus; | |
33 | - | |
34 | - /** | |
35 | - * @ORM\OneToMany(targetEntity="Deposito", mappedBy="depositoTipo") | |
36 | - * @ORM\JoinColumn(name="id", referencedColumnName="deposito_tipo_id", nullable=false) | |
37 | - */ | |
38 | - protected $depositos; | |
39 | - | |
40 | - public function __construct() | |
41 | - { | |
42 | - $this->depositos = new ArrayCollection(); | |
43 | - } | |
44 | - | |
45 | - public function __sleep() | |
46 | - { | |
47 | - return array('id', 'descripcion', 'estatus'); | |
48 | - } | |
49 | - | |
50 | - /** | |
51 | - * Get id | |
52 | - * | |
53 | - * @return integer | |
54 | - */ | |
55 | - public function getId() | |
56 | - { | |
57 | - return $this->id; | |
58 | - } | |
59 | - | |
60 | - /** | |
61 | - * Set descripcion | |
62 | - * | |
63 | - * @param string $descripcion | |
64 | - * @return DepositoTipo | |
65 | - */ | |
66 | - public function setDescripcion($descripcion) | |
67 | - { | |
68 | - $this->descripcion = $descripcion; | |
69 | - | |
70 | - return $this; | |
71 | - } | |
72 | - | |
73 | - /** | |
74 | - * Get descripcion | |
75 | - * | |
76 | - * @return string | |
77 | - */ | |
78 | - public function getDescripcion() | |
79 | - { | |
80 | - return $this->descripcion; | |
81 | - } | |
82 | - | |
83 | - /** | |
84 | - * Set estatus | |
85 | - * | |
86 | - * @param boolean $estatus | |
87 | - * @return DepositoTipo | |
88 | - */ | |
89 | - public function setEstatus($estatus) | |
90 | - { | |
91 | - $this->estatus = $estatus; | |
92 | - | |
93 | - return $this; | |
94 | - } | |
95 | - | |
96 | - /** | |
97 | - * Get estatus | |
98 | - * | |
99 | - * @return boolean | |
100 | - */ | |
101 | - public function getEstatus() | |
102 | - { | |
103 | - return $this->estatus; | |
104 | - } | |
105 | - | |
106 | - /** | |
107 | - * Add depositos | |
108 | - * | |
109 | - * @param \UBV\SurUbvBundle\Entity\Deposito $depositos | |
110 | - * @return DepositoTipo | |
111 | - */ | |
112 | - public function addDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) | |
113 | - { | |
114 | - $this->depositos[] = $depositos; | |
115 | - | |
116 | - return $this; | |
117 | - } | |
118 | - | |
119 | - /** | |
120 | - * Remove depositos | |
121 | - * | |
122 | - * @param \UBV\SurUbvBundle\Entity\Deposito $depositos | |
123 | - */ | |
124 | - public function removeDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) | |
125 | - { | |
126 | - $this->depositos->removeElement($depositos); | |
127 | - } | |
128 | - | |
129 | - /** | |
130 | - * Get depositos | |
131 | - * | |
132 | - * @return \Doctrine\Common\Collections\Collection | |
133 | - */ | |
134 | - public function getDepositos() | |
135 | - { | |
136 | - return $this->depositos; | |
137 | - } | |
138 | - | |
139 | - public function __toString() { | |
140 | - return $this->getDescripcion(); | |
141 | - } | |
142 | -} |
src/UBV/PracticaBundle/Entity/DepositoTipoRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * DepositoTipoRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class DepositoTipoRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/DiaSemana.php
... | ... | @@ -1,110 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\DiaSemana | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DiaSemanaRepository") | |
12 | - * @ORM\Table(name="dia_semana", uniqueConstraints={@ORM\UniqueConstraint(name="id_dia_semana_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class DiaSemana | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="dia_semana_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=10) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="Horario", mappedBy="diaSemana") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="dia_semana_id", nullable=false) | |
32 | - */ | |
33 | - protected $horarios; | |
34 | - | |
35 | - public function __construct() | |
36 | - { | |
37 | - $this->horarios = new ArrayCollection(); | |
38 | - } | |
39 | - | |
40 | - public function __sleep() | |
41 | - { | |
42 | - return array('id', 'descripcion'); | |
43 | - } | |
44 | - | |
45 | - /** | |
46 | - * Get id | |
47 | - * | |
48 | - * @return integer | |
49 | - */ | |
50 | - public function getId() | |
51 | - { | |
52 | - return $this->id; | |
53 | - } | |
54 | - | |
55 | - /** | |
56 | - * Set descripcion | |
57 | - * | |
58 | - * @param string $descripcion | |
59 | - * @return DiaSemana | |
60 | - */ | |
61 | - public function setDescripcion($descripcion) | |
62 | - { | |
63 | - $this->descripcion = $descripcion; | |
64 | - | |
65 | - return $this; | |
66 | - } | |
67 | - | |
68 | - /** | |
69 | - * Get descripcion | |
70 | - * | |
71 | - * @return string | |
72 | - */ | |
73 | - public function getDescripcion() | |
74 | - { | |
75 | - return $this->descripcion; | |
76 | - } | |
77 | - | |
78 | - /** | |
79 | - * Add horarios | |
80 | - * | |
81 | - * @param \UBV\SurUbvBundle\Entity\Horario $horarios | |
82 | - * @return DiaSemana | |
83 | - */ | |
84 | - public function addHorario(\UBV\SurUbvBundle\Entity\Horario $horarios) | |
85 | - { | |
86 | - $this->horarios[] = $horarios; | |
87 | - | |
88 | - return $this; | |
89 | - } | |
90 | - | |
91 | - /** | |
92 | - * Remove horarios | |
93 | - * | |
94 | - * @param \UBV\SurUbvBundle\Entity\Horario $horarios | |
95 | - */ | |
96 | - public function removeHorario(\UBV\SurUbvBundle\Entity\Horario $horarios) | |
97 | - { | |
98 | - $this->horarios->removeElement($horarios); | |
99 | - } | |
100 | - | |
101 | - /** | |
102 | - * Get horarios | |
103 | - * | |
104 | - * @return \Doctrine\Common\Collections\Collection | |
105 | - */ | |
106 | - public function getHorarios() | |
107 | - { | |
108 | - return $this->horarios; | |
109 | - } | |
110 | -} |
src/UBV/PracticaBundle/Entity/DiaSemanaRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * DiaSemanaRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class DiaSemanaRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/Discapacidad.php
... | ... | @@ -1,150 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\Discapacidad | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DiscapacidadRepository") | |
12 | - * @ORM\Table(name="discapacidad", uniqueConstraints={@ORM\UniqueConstraint(name="id_discapacidad_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class Discapacidad | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="discapacidad_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=60) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="PersonaDiscapacidad", mappedBy="discapacidad") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="discapacidad_id", nullable=false) | |
32 | - */ | |
33 | - protected $personaDiscapacidads; | |
34 | - | |
35 | - /** | |
36 | - * @ORM\OneToMany(targetEntity="Candidato", mappedBy="discapacidad") | |
37 | - * @ORM\JoinColumn(name="id", referencedColumnName="discapacidad_id", nullable=false) | |
38 | - */ | |
39 | - protected $candidatos; | |
40 | - | |
41 | - public function __construct() | |
42 | - { | |
43 | - $this->personaDiscapacidads = new ArrayCollection(); | |
44 | - $this->candidatos = new ArrayCollection(); | |
45 | - } | |
46 | - | |
47 | - public function __sleep() | |
48 | - { | |
49 | - return array('id', 'descripcion'); | |
50 | - } | |
51 | - | |
52 | - /** | |
53 | - * Get id | |
54 | - * | |
55 | - * @return integer | |
56 | - */ | |
57 | - public function getId() | |
58 | - { | |
59 | - return $this->id; | |
60 | - } | |
61 | - | |
62 | - /** | |
63 | - * Set descripcion | |
64 | - * | |
65 | - * @param string $descripcion | |
66 | - * @return Discapacidad | |
67 | - */ | |
68 | - public function setDescripcion($descripcion) | |
69 | - { | |
70 | - $this->descripcion = $descripcion; | |
71 | - | |
72 | - return $this; | |
73 | - } | |
74 | - | |
75 | - /** | |
76 | - * Get descripcion | |
77 | - * | |
78 | - * @return string | |
79 | - */ | |
80 | - public function getDescripcion() | |
81 | - { | |
82 | - return $this->descripcion; | |
83 | - } | |
84 | - | |
85 | - /** | |
86 | - * Add personaDiscapacidads | |
87 | - * | |
88 | - * @param \UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads | |
89 | - * @return Discapacidad | |
90 | - */ | |
91 | - public function addPersonaDiscapacidad(\UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads) | |
92 | - { | |
93 | - $this->personaDiscapacidads[] = $personaDiscapacidads; | |
94 | - | |
95 | - return $this; | |
96 | - } | |
97 | - | |
98 | - /** | |
99 | - * Remove personaDiscapacidads | |
100 | - * | |
101 | - * @param \UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads | |
102 | - */ | |
103 | - public function removePersonaDiscapacidad(\UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads) | |
104 | - { | |
105 | - $this->personaDiscapacidads->removeElement($personaDiscapacidads); | |
106 | - } | |
107 | - | |
108 | - /** | |
109 | - * Get personaDiscapacidads | |
110 | - * | |
111 | - * @return \Doctrine\Common\Collections\Collection | |
112 | - */ | |
113 | - public function getPersonaDiscapacidads() | |
114 | - { | |
115 | - return $this->personaDiscapacidads; | |
116 | - } | |
117 | - | |
118 | - /** | |
119 | - * Add candidatos | |
120 | - * | |
121 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
122 | - * @return Discapacidad | |
123 | - */ | |
124 | - public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
125 | - { | |
126 | - $this->candidatos[] = $candidatos; | |
127 | - | |
128 | - return $this; | |
129 | - } | |
130 | - | |
131 | - /** | |
132 | - * Remove candidatos | |
133 | - * | |
134 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
135 | - */ | |
136 | - public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
137 | - { | |
138 | - $this->candidatos->removeElement($candidatos); | |
139 | - } | |
140 | - | |
141 | - /** | |
142 | - * Get candidatos | |
143 | - * | |
144 | - * @return \Doctrine\Common\Collections\Collection | |
145 | - */ | |
146 | - public function getCandidatos() | |
147 | - { | |
148 | - return $this->candidatos; | |
149 | - } | |
150 | -} |
src/UBV/PracticaBundle/Entity/DiscapacidadRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * DiscapacidadRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class DiscapacidadRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/Docente.php
... | ... | @@ -1,336 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\Docente | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DocenteRepository") | |
12 | - * @ORM\Table(name="docente", indexes={@ORM\Index(name="fk_docente_programa1_idx", columns={"programa_id"}), @ORM\Index(name="fk_docente_centro_estudio1_idx", columns={"centro_estudio_id"}), @ORM\Index(name="fk_docente_persona1_idx", columns={"persona_id"}), @ORM\Index(name="fk_docente_eje_regional1_idx", columns={"eje_regional_id"}), @ORM\Index(name="fk_docente_dedicacion1_idx", columns={"dedicacion_id"}), @ORM\Index(name="fk_docente_docente_estatus1_idx", columns={"docente_estatus_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_docente_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class Docente | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="docente_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\OneToMany(targetEntity="CargaAcademica", mappedBy="docente") | |
26 | - * @ORM\JoinColumn(name="id", referencedColumnName="docente_id", nullable=false) | |
27 | - */ | |
28 | - protected $cargaAcademicas; | |
29 | - | |
30 | - /** | |
31 | - * @ORM\OneToMany(targetEntity="ComitepfaIntegrante", mappedBy="docente") | |
32 | - * @ORM\JoinColumn(name="id", referencedColumnName="docente_id", nullable=false) | |
33 | - */ | |
34 | - protected $comitepfaIntegrantes; | |
35 | - | |
36 | - /** | |
37 | - * @ORM\OneToMany(targetEntity="DocenteAldea", mappedBy="docente") | |
38 | - * @ORM\JoinColumn(name="id", referencedColumnName="docente_id", nullable=false) | |
39 | - */ | |
40 | - protected $docenteAldeas; | |
41 | - | |
42 | - /** | |
43 | - * @ORM\ManyToOne(targetEntity="Programa", inversedBy="docentes") | |
44 | - * @ORM\JoinColumn(name="programa_id", referencedColumnName="id", nullable=false) | |
45 | - */ | |
46 | - protected $programa; | |
47 | - | |
48 | - /** | |
49 | - * @ORM\ManyToOne(targetEntity="CentroEstudio", inversedBy="docentes") | |
50 | - * @ORM\JoinColumn(name="centro_estudio_id", referencedColumnName="id", nullable=false) | |
51 | - */ | |
52 | - protected $centroEstudio; | |
53 | - | |
54 | - /** | |
55 | - * @ORM\OneToOne(targetEntity="Persona", inversedBy="docente") | |
56 | - * @ORM\JoinColumn(name="persona_id", referencedColumnName="id", nullable=false) | |
57 | - */ | |
58 | - protected $persona; | |
59 | - | |
60 | - /** | |
61 | - * @ORM\OneToOne(targetEntity="EjeRegional", inversedBy="docente") | |
62 | - * @ORM\JoinColumn(name="eje_regional_id", referencedColumnName="id", nullable=false) | |
63 | - */ | |
64 | - protected $ejeRegional; | |
65 | - | |
66 | - /** | |
67 | - * @ORM\ManyToOne(targetEntity="DocenteDedicacion", inversedBy="docentes") | |
68 | - * @ORM\JoinColumn(name="dedicacion_id", referencedColumnName="id", nullable=false) | |
69 | - */ | |
70 | - protected $docenteDedicacion; | |
71 | - | |
72 | - /** | |
73 | - * @ORM\ManyToOne(targetEntity="DocenteEstatus", inversedBy="docentes") | |
74 | - * @ORM\JoinColumn(name="docente_estatus_id", referencedColumnName="id", nullable=false) | |
75 | - */ | |
76 | - protected $docenteEstatus; | |
77 | - | |
78 | - public function __construct() | |
79 | - { | |
80 | - $this->cargaAcademicas = new ArrayCollection(); | |
81 | - $this->comitepfaIntegrantes = new ArrayCollection(); | |
82 | - $this->docenteAldeas = new ArrayCollection(); | |
83 | - } | |
84 | - | |
85 | - public function __sleep() | |
86 | - { | |
87 | - return array('id', 'programa_id', 'centro_estudio_id', 'persona_id', 'eje_regional_id', 'dedicacion_id', 'docente_estatus_id'); | |
88 | - } | |
89 | - | |
90 | - /** | |
91 | - * Get id | |
92 | - * | |
93 | - * @return integer | |
94 | - */ | |
95 | - public function getId() | |
96 | - { | |
97 | - return $this->id; | |
98 | - } | |
99 | - | |
100 | - /** | |
101 | - * Add cargaAcademicas | |
102 | - * | |
103 | - * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas | |
104 | - * @return Docente | |
105 | - */ | |
106 | - public function addCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) | |
107 | - { | |
108 | - $this->cargaAcademicas[] = $cargaAcademicas; | |
109 | - | |
110 | - return $this; | |
111 | - } | |
112 | - | |
113 | - /** | |
114 | - * Remove cargaAcademicas | |
115 | - * | |
116 | - * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas | |
117 | - */ | |
118 | - public function removeCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) | |
119 | - { | |
120 | - $this->cargaAcademicas->removeElement($cargaAcademicas); | |
121 | - } | |
122 | - | |
123 | - /** | |
124 | - * Get cargaAcademicas | |
125 | - * | |
126 | - * @return \Doctrine\Common\Collections\Collection | |
127 | - */ | |
128 | - public function getCargaAcademicas() | |
129 | - { | |
130 | - return $this->cargaAcademicas; | |
131 | - } | |
132 | - | |
133 | - /** | |
134 | - * Add comitepfaIntegrantes | |
135 | - * | |
136 | - * @param \UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes | |
137 | - * @return Docente | |
138 | - */ | |
139 | - public function addComitepfaIntegrante(\UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes) | |
140 | - { | |
141 | - $this->comitepfaIntegrantes[] = $comitepfaIntegrantes; | |
142 | - | |
143 | - return $this; | |
144 | - } | |
145 | - | |
146 | - /** | |
147 | - * Remove comitepfaIntegrantes | |
148 | - * | |
149 | - * @param \UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes | |
150 | - */ | |
151 | - public function removeComitepfaIntegrante(\UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes) | |
152 | - { | |
153 | - $this->comitepfaIntegrantes->removeElement($comitepfaIntegrantes); | |
154 | - } | |
155 | - | |
156 | - /** | |
157 | - * Get comitepfaIntegrantes | |
158 | - * | |
159 | - * @return \Doctrine\Common\Collections\Collection | |
160 | - */ | |
161 | - public function getComitepfaIntegrantes() | |
162 | - { | |
163 | - return $this->comitepfaIntegrantes; | |
164 | - } | |
165 | - | |
166 | - /** | |
167 | - * Add docenteAldeas | |
168 | - * | |
169 | - * @param \UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas | |
170 | - * @return Docente | |
171 | - */ | |
172 | - public function addDocenteAldea(\UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas) | |
173 | - { | |
174 | - $this->docenteAldeas[] = $docenteAldeas; | |
175 | - | |
176 | - return $this; | |
177 | - } | |
178 | - | |
179 | - /** | |
180 | - * Remove docenteAldeas | |
181 | - * | |
182 | - * @param \UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas | |
183 | - */ | |
184 | - public function removeDocenteAldea(\UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas) | |
185 | - { | |
186 | - $this->docenteAldeas->removeElement($docenteAldeas); | |
187 | - } | |
188 | - | |
189 | - /** | |
190 | - * Get docenteAldeas | |
191 | - * | |
192 | - * @return \Doctrine\Common\Collections\Collection | |
193 | - */ | |
194 | - public function getDocenteAldeas() | |
195 | - { | |
196 | - return $this->docenteAldeas; | |
197 | - } | |
198 | - | |
199 | - /** | |
200 | - * Set programa | |
201 | - * | |
202 | - * @param \UBV\SurUbvBundle\Entity\Programa $programa | |
203 | - * @return Docente | |
204 | - */ | |
205 | - public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) | |
206 | - { | |
207 | - $this->programa = $programa; | |
208 | - | |
209 | - return $this; | |
210 | - } | |
211 | - | |
212 | - /** | |
213 | - * Get programa | |
214 | - * | |
215 | - * @return \UBV\SurUbvBundle\Entity\Programa | |
216 | - */ | |
217 | - public function getPrograma() | |
218 | - { | |
219 | - return $this->programa; | |
220 | - } | |
221 | - | |
222 | - /** | |
223 | - * Set centroEstudio | |
224 | - * | |
225 | - * @param \UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio | |
226 | - * @return Docente | |
227 | - */ | |
228 | - public function setCentroEstudio(\UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio) | |
229 | - { | |
230 | - $this->centroEstudio = $centroEstudio; | |
231 | - | |
232 | - return $this; | |
233 | - } | |
234 | - | |
235 | - /** | |
236 | - * Get centroEstudio | |
237 | - * | |
238 | - * @return \UBV\SurUbvBundle\Entity\CentroEstudio | |
239 | - */ | |
240 | - public function getCentroEstudio() | |
241 | - { | |
242 | - return $this->centroEstudio; | |
243 | - } | |
244 | - | |
245 | - /** | |
246 | - * Set persona | |
247 | - * | |
248 | - * @param \UBV\SurUbvBundle\Entity\Persona $persona | |
249 | - * @return Docente | |
250 | - */ | |
251 | - public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) | |
252 | - { | |
253 | - $this->persona = $persona; | |
254 | - | |
255 | - return $this; | |
256 | - } | |
257 | - | |
258 | - /** | |
259 | - * Get persona | |
260 | - * | |
261 | - * @return \UBV\SurUbvBundle\Entity\Persona | |
262 | - */ | |
263 | - public function getPersona() | |
264 | - { | |
265 | - return $this->persona; | |
266 | - } | |
267 | - | |
268 | - /** | |
269 | - * Set ejeRegional | |
270 | - * | |
271 | - * @param \UBV\SurUbvBundle\Entity\EjeRegional $ejeRegional | |
272 | - * @return Docente | |
273 | - */ | |
274 | - public function setEjeRegional(\UBV\SurUbvBundle\Entity\EjeRegional $ejeRegional) | |
275 | - { | |
276 | - $this->ejeRegional = $ejeRegional; | |
277 | - | |
278 | - return $this; | |
279 | - } | |
280 | - | |
281 | - /** | |
282 | - * Get ejeRegional | |
283 | - * | |
284 | - * @return \UBV\SurUbvBundle\Entity\EjeRegional | |
285 | - */ | |
286 | - public function getEjeRegional() | |
287 | - { | |
288 | - return $this->ejeRegional; | |
289 | - } | |
290 | - | |
291 | - /** | |
292 | - * Set docenteDedicacion | |
293 | - * | |
294 | - * @param \UBV\SurUbvBundle\Entity\DocenteDedicacion $docenteDedicacion | |
295 | - * @return Docente | |
296 | - */ | |
297 | - public function setDocenteDedicacion(\UBV\SurUbvBundle\Entity\DocenteDedicacion $docenteDedicacion) | |
298 | - { | |
299 | - $this->docenteDedicacion = $docenteDedicacion; | |
300 | - | |
301 | - return $this; | |
302 | - } | |
303 | - | |
304 | - /** | |
305 | - * Get docenteDedicacion | |
306 | - * | |
307 | - * @return \UBV\SurUbvBundle\Entity\DocenteDedicacion | |
308 | - */ | |
309 | - public function getDocenteDedicacion() | |
310 | - { | |
311 | - return $this->docenteDedicacion; | |
312 | - } | |
313 | - | |
314 | - /** | |
315 | - * Set docenteEstatus | |
316 | - * | |
317 | - * @param \UBV\SurUbvBundle\Entity\DocenteEstatus $docenteEstatus | |
318 | - * @return Docente | |
319 | - */ | |
320 | - public function setDocenteEstatus(\UBV\SurUbvBundle\Entity\DocenteEstatus $docenteEstatus) | |
321 | - { | |
322 | - $this->docenteEstatus = $docenteEstatus; | |
323 | - | |
324 | - return $this; | |
325 | - } | |
326 | - | |
327 | - /** | |
328 | - * Get docenteEstatus | |
329 | - * | |
330 | - * @return \UBV\SurUbvBundle\Entity\DocenteEstatus | |
331 | - */ | |
332 | - public function getDocenteEstatus() | |
333 | - { | |
334 | - return $this->docenteEstatus; | |
335 | - } | |
336 | -} |
src/UBV/PracticaBundle/Entity/DocenteAldea.php
... | ... | @@ -1,99 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | - | |
7 | -/** | |
8 | - * UBV\SurUbvBundle\Entity\DocenteAldea | |
9 | - * | |
10 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DocenteAldeaRepository") | |
11 | - * @ORM\Table(name="docente_aldea", indexes={@ORM\Index(name="fk_docente_aldea_docente1_idx", columns={"docente_id"}), @ORM\Index(name="fk_docente_aldea_aldea1_idx", columns={"aldea_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_docente_aldea_UNIQUE", columns={"id"})}) | |
12 | - */ | |
13 | -class DocenteAldea | |
14 | -{ | |
15 | - /** | |
16 | - * @ORM\Id | |
17 | - * @ORM\Column(type="integer") | |
18 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
19 | - * @ORM\SequenceGenerator(sequenceName="docente_aldea_id_seq", allocationSize=1, initialValue=1) | |
20 | - */ | |
21 | - protected $id; | |
22 | - | |
23 | - /** | |
24 | - * @ORM\ManyToOne(targetEntity="Docente", inversedBy="docenteAldeas") | |
25 | - * @ORM\JoinColumn(name="docente_id", referencedColumnName="id", nullable=false) | |
26 | - */ | |
27 | - protected $docente; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\ManyToOne(targetEntity="Aldea", inversedBy="docenteAldeas") | |
31 | - * @ORM\JoinColumn(name="aldea_id", referencedColumnName="id", nullable=false) | |
32 | - */ | |
33 | - protected $aldea; | |
34 | - | |
35 | - public function __construct() | |
36 | - { | |
37 | - } | |
38 | - | |
39 | - public function __sleep() | |
40 | - { | |
41 | - return array('id', 'docente_id', 'aldea_id'); | |
42 | - } | |
43 | - | |
44 | - /** | |
45 | - * Get id | |
46 | - * | |
47 | - * @return integer | |
48 | - */ | |
49 | - public function getId() | |
50 | - { | |
51 | - return $this->id; | |
52 | - } | |
53 | - | |
54 | - /** | |
55 | - * Set docente | |
56 | - * | |
57 | - * @param \UBV\SurUbvBundle\Entity\Docente $docente | |
58 | - * @return DocenteAldea | |
59 | - */ | |
60 | - public function setDocente(\UBV\SurUbvBundle\Entity\Docente $docente) | |
61 | - { | |
62 | - $this->docente = $docente; | |
63 | - | |
64 | - return $this; | |
65 | - } | |
66 | - | |
67 | - /** | |
68 | - * Get docente | |
69 | - * | |
70 | - * @return \UBV\SurUbvBundle\Entity\Docente | |
71 | - */ | |
72 | - public function getDocente() | |
73 | - { | |
74 | - return $this->docente; | |
75 | - } | |
76 | - | |
77 | - /** | |
78 | - * Set aldea | |
79 | - * | |
80 | - * @param \UBV\SurUbvBundle\Entity\Aldea $aldea | |
81 | - * @return DocenteAldea | |
82 | - */ | |
83 | - public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) | |
84 | - { | |
85 | - $this->aldea = $aldea; | |
86 | - | |
87 | - return $this; | |
88 | - } | |
89 | - | |
90 | - /** | |
91 | - * Get aldea | |
92 | - * | |
93 | - * @return \UBV\SurUbvBundle\Entity\Aldea | |
94 | - */ | |
95 | - public function getAldea() | |
96 | - { | |
97 | - return $this->aldea; | |
98 | - } | |
99 | -} |
src/UBV/PracticaBundle/Entity/DocenteAldeaRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * DocenteAldeaRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class DocenteAldeaRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/DocenteDedicacion.php
... | ... | @@ -1,194 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\DocenteDedicacion | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DocenteDedicacionRepository") | |
12 | - * @ORM\Table(name="docente_dedicacion", uniqueConstraints={@ORM\UniqueConstraint(name="id_docente_dedicacion_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class DocenteDedicacion | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="docente_dedicacion_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=45) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\Column(type="integer") | |
31 | - */ | |
32 | - protected $total_horas; | |
33 | - | |
34 | - /** | |
35 | - * @ORM\Column(type="integer") | |
36 | - */ | |
37 | - protected $hora_docencia_minima; | |
38 | - | |
39 | - /** | |
40 | - * @ORM\Column(type="integer") | |
41 | - */ | |
42 | - protected $hora_docencia_maxima; | |
43 | - | |
44 | - /** | |
45 | - * @ORM\OneToMany(targetEntity="Docente", mappedBy="docenteDedicacion") | |
46 | - * @ORM\JoinColumn(name="id", referencedColumnName="dedicacion_id", nullable=false) | |
47 | - */ | |
48 | - protected $docentes; | |
49 | - | |
50 | - public function __construct() | |
51 | - { | |
52 | - $this->docentes = new ArrayCollection(); | |
53 | - } | |
54 | - | |
55 | - public function __sleep() | |
56 | - { | |
57 | - return array('id', 'descripcion', 'total_horas', 'hora_docencia_minima', 'hora_docencia_maxima'); | |
58 | - } | |
59 | - | |
60 | - /** | |
61 | - * Get id | |
62 | - * | |
63 | - * @return integer | |
64 | - */ | |
65 | - public function getId() | |
66 | - { | |
67 | - return $this->id; | |
68 | - } | |
69 | - | |
70 | - /** | |
71 | - * Set descripcion | |
72 | - * | |
73 | - * @param string $descripcion | |
74 | - * @return DocenteDedicacion | |
75 | - */ | |
76 | - public function setDescripcion($descripcion) | |
77 | - { | |
78 | - $this->descripcion = $descripcion; | |
79 | - | |
80 | - return $this; | |
81 | - } | |
82 | - | |
83 | - /** | |
84 | - * Get descripcion | |
85 | - * | |
86 | - * @return string | |
87 | - */ | |
88 | - public function getDescripcion() | |
89 | - { | |
90 | - return $this->descripcion; | |
91 | - } | |
92 | - | |
93 | - /** | |
94 | - * Set total_horas | |
95 | - * | |
96 | - * @param integer $totalHoras | |
97 | - * @return DocenteDedicacion | |
98 | - */ | |
99 | - public function setTotalHoras($totalHoras) | |
100 | - { | |
101 | - $this->total_horas = $totalHoras; | |
102 | - | |
103 | - return $this; | |
104 | - } | |
105 | - | |
106 | - /** | |
107 | - * Get total_horas | |
108 | - * | |
109 | - * @return integer | |
110 | - */ | |
111 | - public function getTotalHoras() | |
112 | - { | |
113 | - return $this->total_horas; | |
114 | - } | |
115 | - | |
116 | - /** | |
117 | - * Set hora_docencia_minima | |
118 | - * | |
119 | - * @param integer $horaDocenciaMinima | |
120 | - * @return DocenteDedicacion | |
121 | - */ | |
122 | - public function setHoraDocenciaMinima($horaDocenciaMinima) | |
123 | - { | |
124 | - $this->hora_docencia_minima = $horaDocenciaMinima; | |
125 | - | |
126 | - return $this; | |
127 | - } | |
128 | - | |
129 | - /** | |
130 | - * Get hora_docencia_minima | |
131 | - * | |
132 | - * @return integer | |
133 | - */ | |
134 | - public function getHoraDocenciaMinima() | |
135 | - { | |
136 | - return $this->hora_docencia_minima; | |
137 | - } | |
138 | - | |
139 | - /** | |
140 | - * Set hora_docencia_maxima | |
141 | - * | |
142 | - * @param integer $horaDocenciaMaxima | |
143 | - * @return DocenteDedicacion | |
144 | - */ | |
145 | - public function setHoraDocenciaMaxima($horaDocenciaMaxima) | |
146 | - { | |
147 | - $this->hora_docencia_maxima = $horaDocenciaMaxima; | |
148 | - | |
149 | - return $this; | |
150 | - } | |
151 | - | |
152 | - /** | |
153 | - * Get hora_docencia_maxima | |
154 | - * | |
155 | - * @return integer | |
156 | - */ | |
157 | - public function getHoraDocenciaMaxima() | |
158 | - { | |
159 | - return $this->hora_docencia_maxima; | |
160 | - } | |
161 | - | |
162 | - /** | |
163 | - * Add docentes | |
164 | - * | |
165 | - * @param \UBV\SurUbvBundle\Entity\Docente $docentes | |
166 | - * @return DocenteDedicacion | |
167 | - */ | |
168 | - public function addDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) | |
169 | - { | |
170 | - $this->docentes[] = $docentes; | |
171 | - | |
172 | - return $this; | |
173 | - } | |
174 | - | |
175 | - /** | |
176 | - * Remove docentes | |
177 | - * | |
178 | - * @param \UBV\SurUbvBundle\Entity\Docente $docentes | |
179 | - */ | |
180 | - public function removeDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) | |
181 | - { | |
182 | - $this->docentes->removeElement($docentes); | |
183 | - } | |
184 | - | |
185 | - /** | |
186 | - * Get docentes | |
187 | - * | |
188 | - * @return \Doctrine\Common\Collections\Collection | |
189 | - */ | |
190 | - public function getDocentes() | |
191 | - { | |
192 | - return $this->docentes; | |
193 | - } | |
194 | -} |
src/UBV/PracticaBundle/Entity/DocenteDedicacionRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * DocenteDedicacionRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class DocenteDedicacionRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/DocenteEstatus.php
... | ... | @@ -1,110 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\DocenteEstatus | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DocenteEstatusRepository") | |
12 | - * @ORM\Table(name="docente_estatus", uniqueConstraints={@ORM\UniqueConstraint(name="id_docente_estatus_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class DocenteEstatus | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="docente_estatus_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=45) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="Docente", mappedBy="docenteEstatus") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="docente_estatus_id", nullable=false) | |
32 | - */ | |
33 | - protected $docentes; | |
34 | - | |
35 | - public function __construct() | |
36 | - { | |
37 | - $this->docentes = new ArrayCollection(); | |
38 | - } | |
39 | - | |
40 | - public function __sleep() | |
41 | - { | |
42 | - return array('id', 'descripcion'); | |
43 | - } | |
44 | - | |
45 | - /** | |
46 | - * Get id | |
47 | - * | |
48 | - * @return integer | |
49 | - */ | |
50 | - public function getId() | |
51 | - { | |
52 | - return $this->id; | |
53 | - } | |
54 | - | |
55 | - /** | |
56 | - * Set descripcion | |
57 | - * | |
58 | - * @param string $descripcion | |
59 | - * @return DocenteEstatus | |
60 | - */ | |
61 | - public function setDescripcion($descripcion) | |
62 | - { | |
63 | - $this->descripcion = $descripcion; | |
64 | - | |
65 | - return $this; | |
66 | - } | |
67 | - | |
68 | - /** | |
69 | - * Get descripcion | |
70 | - * | |
71 | - * @return string | |
72 | - */ | |
73 | - public function getDescripcion() | |
74 | - { | |
75 | - return $this->descripcion; | |
76 | - } | |
77 | - | |
78 | - /** | |
79 | - * Add docentes | |
80 | - * | |
81 | - * @param \UBV\SurUbvBundle\Entity\Docente $docentes | |
82 | - * @return DocenteEstatus | |
83 | - */ | |
84 | - public function addDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) | |
85 | - { | |
86 | - $this->docentes[] = $docentes; | |
87 | - | |
88 | - return $this; | |
89 | - } | |
90 | - | |
91 | - /** | |
92 | - * Remove docentes | |
93 | - * | |
94 | - * @param \UBV\SurUbvBundle\Entity\Docente $docentes | |
95 | - */ | |
96 | - public function removeDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) | |
97 | - { | |
98 | - $this->docentes->removeElement($docentes); | |
99 | - } | |
100 | - | |
101 | - /** | |
102 | - * Get docentes | |
103 | - * | |
104 | - * @return \Doctrine\Common\Collections\Collection | |
105 | - */ | |
106 | - public function getDocentes() | |
107 | - { | |
108 | - return $this->docentes; | |
109 | - } | |
110 | -} |
src/UBV/PracticaBundle/Entity/DocenteEstatusRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * DocenteEstatusRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class DocenteEstatusRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/DocenteRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * DocenteRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class DocenteRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/DocumentoIdentidadTipo.php
... | ... | @@ -1,190 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | -use Symfony\Component\Validator\Constraints as Assert; | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\DocumentoIdentidadTipo | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DocumentoIdentidadTipoRepository") | |
12 | - * @ORM\Table(name="documento_identidad_tipo", uniqueConstraints={@ORM\UniqueConstraint(name="id_documento_identidad_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class DocumentoIdentidadTipo | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="documento_identidad_tipo_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=10, nullable=false) | |
26 | - * @Assert\NotBlank( message= "Por favor introduzca El Tipo De Documento") | |
27 | - *@Assert\Length( | |
28 | - * min = 4, | |
29 | - * max = 10, | |
30 | - * minMessage = "Por favor introduzca un Tipo de Documento mรกs especรญfico. Mรญnimo {{ limit }} caracteres", | |
31 | - * maxMessage = "Por favor introduzca un Tipo de Documento mรกs breve. Mรกximo {{ limit }} caracteres", | |
32 | - *) | |
33 | - */ | |
34 | - protected $descripcion; | |
35 | - | |
36 | - /** | |
37 | - * @ORM\Column(type="string", length=10, nullable=true) | |
38 | - */ | |
39 | - protected $codigo; | |
40 | - | |
41 | - /** | |
42 | - * @ORM\OneToMany(targetEntity="PersonaNacionalidad", mappedBy="documentoIdentidadTipo") | |
43 | - * @ORM\JoinColumn(name="id", referencedColumnName="documento_identidad_tipo_id", nullable=false) | |
44 | - */ | |
45 | - protected $personaNacionalidads; | |
46 | - | |
47 | - /** | |
48 | - * @ORM\OneToMany(targetEntity="Candidato", mappedBy="documentoIdentidadTipo") | |
49 | - * @ORM\JoinColumn(name="id", referencedColumnName="documento_identidad_tipo_id", nullable=false) | |
50 | - */ | |
51 | - protected $candidatos; | |
52 | - | |
53 | - public function __construct() | |
54 | - { | |
55 | - $this->candidatos = new ArrayCollection(); | |
56 | - $this->personaNacionalidads = new ArrayCollection(); | |
57 | - } | |
58 | - | |
59 | - public function __sleep() | |
60 | - { | |
61 | - return array('id', 'descripcion', 'codigo'); | |
62 | - } | |
63 | - | |
64 | - /** | |
65 | - * Get id | |
66 | - * | |
67 | - * @return integer | |
68 | - */ | |
69 | - public function getId() | |
70 | - { | |
71 | - return $this->id; | |
72 | - } | |
73 | - | |
74 | - /** | |
75 | - * Set descripcion | |
76 | - * | |
77 | - * @param string $descripcion | |
78 | - * @return DocumentoIdentidadTipo | |
79 | - */ | |
80 | - public function setDescripcion($descripcion) | |
81 | - { | |
82 | - $this->descripcion = $descripcion; | |
83 | - | |
84 | - return $this; | |
85 | - } | |
86 | - | |
87 | - /** | |
88 | - * Get descripcion | |
89 | - * | |
90 | - * @return string | |
91 | - */ | |
92 | - public function getDescripcion() | |
93 | - { | |
94 | - return $this->descripcion; | |
95 | - } | |
96 | - | |
97 | - /** | |
98 | - * Add personaNacionalidads | |
99 | - * | |
100 | - * @param \UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads | |
101 | - * @return DocumentoIdentidadTipo | |
102 | - */ | |
103 | - public function addPersonaNacionalidad(\UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads) | |
104 | - { | |
105 | - $this->personaNacionalidads[] = $personaNacionalidads; | |
106 | - | |
107 | - return $this; | |
108 | - } | |
109 | - | |
110 | - /** | |
111 | - * Remove personaNacionalidads | |
112 | - * | |
113 | - * @param \UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads | |
114 | - */ | |
115 | - public function removePersonaNacionalidad(\UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads) | |
116 | - { | |
117 | - $this->personaNacionalidads->removeElement($personaNacionalidads); | |
118 | - } | |
119 | - | |
120 | - /** | |
121 | - * Get personaNacionalidads | |
122 | - * | |
123 | - * @return \Doctrine\Common\Collections\Collection | |
124 | - */ | |
125 | - public function getPersonaNacionalidads() | |
126 | - { | |
127 | - return $this->personaNacionalidads; | |
128 | - } | |
129 | - | |
130 | - /** | |
131 | - * Set codigo | |
132 | - * | |
133 | - * @param string $codigo | |
134 | - * @return DocumentoIdentidadTipo | |
135 | - */ | |
136 | - public function setCodigo($codigo) | |
137 | - { | |
138 | - $this->codigo = $codigo; | |
139 | - | |
140 | - return $this; | |
141 | - } | |
142 | - | |
143 | - /** | |
144 | - * Get codigo | |
145 | - * | |
146 | - * @return string | |
147 | - */ | |
148 | - public function getCodigo() | |
149 | - { | |
150 | - return $this->codigo; | |
151 | - } | |
152 | - | |
153 | - public function __toString() | |
154 | - { | |
155 | - return $this->codigo; | |
156 | - } | |
157 | - | |
158 | - /** | |
159 | - * Add candidatos | |
160 | - * | |
161 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
162 | - * @return DocumentoIdentidadTipo | |
163 | - */ | |
164 | - public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
165 | - { | |
166 | - $this->candidatos[] = $candidatos; | |
167 | - | |
168 | - return $this; | |
169 | - } | |
170 | - | |
171 | - /** | |
172 | - * Remove candidatos | |
173 | - * | |
174 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
175 | - */ | |
176 | - public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
177 | - { | |
178 | - $this->candidatos->removeElement($candidatos); | |
179 | - } | |
180 | - | |
181 | - /** | |
182 | - * Get candidatos | |
183 | - * | |
184 | - * @return \Doctrine\Common\Collections\Collection | |
185 | - */ | |
186 | - public function getCandidatos() | |
187 | - { | |
188 | - return $this->candidatos; | |
189 | - } | |
190 | -} |
src/UBV/PracticaBundle/Entity/DocumentoIdentidadTipoRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * DocumentoIdentidadTipoRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class DocumentoIdentidadTipoRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/DomicilioDetalle.php
... | ... | @@ -1,127 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | - | |
7 | -/** | |
8 | - * UBV\SurUbvBundle\Entity\DomicilioDetalle | |
9 | - * | |
10 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DomicilioDetalleRepository") | |
11 | - * @ORM\Table(name="domicilio_detalle", indexes={@ORM\Index(name="fk_domicilio_detalle_domicilio_persona1_idx", columns={"domicilio_persona_id"}), @ORM\Index(name="fk_domicilio_detalle_domicilio_detalle_tipo1_idx", columns={"domicilio_detalle_tipo_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_dominilio_detalle_UNIQUE", columns={"id"})}) | |
12 | - */ | |
13 | -class DomicilioDetalle | |
14 | -{ | |
15 | - /** | |
16 | - * @ORM\Id | |
17 | - * @ORM\Column(type="integer") | |
18 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
19 | - * @ORM\SequenceGenerator(sequenceName="domicilio_detalle_id_seq", allocationSize=1, initialValue=1) | |
20 | - */ | |
21 | - protected $id; | |
22 | - | |
23 | - /** | |
24 | - * @ORM\Column(type="string", length=45) | |
25 | - */ | |
26 | - protected $descripcion; | |
27 | - | |
28 | - /** | |
29 | - * @ORM\ManyToOne(targetEntity="DomicilioPersona", inversedBy="domicilioDetalles") | |
30 | - * @ORM\JoinColumn(name="domicilio_persona_id", referencedColumnName="id", nullable=false) | |
31 | - */ | |
32 | - protected $domicilioPersona; | |
33 | - | |
34 | - /** | |
35 | - * @ORM\ManyToOne(targetEntity="DomicilioDetalleTipo", inversedBy="domicilioDetalles") | |
36 | - * @ORM\JoinColumn(name="domicilio_detalle_tipo_id", referencedColumnName="id", nullable=false) | |
37 | - */ | |
38 | - protected $domicilioDetalleTipo; | |
39 | - | |
40 | - public function __construct() | |
41 | - { | |
42 | - } | |
43 | - | |
44 | - public function __sleep() | |
45 | - { | |
46 | - return array('id', 'domicilio_persona_id', 'descripcion', 'domicilio_detalle_tipo_id'); | |
47 | - } | |
48 | - | |
49 | - /** | |
50 | - * Get id | |
51 | - * | |
52 | - * @return integer | |
53 | - */ | |
54 | - public function getId() | |
55 | - { | |
56 | - return $this->id; | |
57 | - } | |
58 | - | |
59 | - /** | |
60 | - * Set descripcion | |
61 | - * | |
62 | - * @param string $descripcion | |
63 | - * @return DomicilioDetalle | |
64 | - */ | |
65 | - public function setDescripcion($descripcion) | |
66 | - { | |
67 | - $this->descripcion = $descripcion; | |
68 | - | |
69 | - return $this; | |
70 | - } | |
71 | - | |
72 | - /** | |
73 | - * Get descripcion | |
74 | - * | |
75 | - * @return string | |
76 | - */ | |
77 | - public function getDescripcion() | |
78 | - { | |
79 | - return $this->descripcion; | |
80 | - } | |
81 | - | |
82 | - /** | |
83 | - * Set domicilioPersona | |
84 | - * | |
85 | - * @param \UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersona | |
86 | - * @return DomicilioDetalle | |
87 | - */ | |
88 | - public function setDomicilioPersona(\UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersona) | |
89 | - { | |
90 | - $this->domicilioPersona = $domicilioPersona; | |
91 | - | |
92 | - return $this; | |
93 | - } | |
94 | - | |
95 | - /** | |
96 | - * Get domicilioPersona | |
97 | - * | |
98 | - * @return \UBV\SurUbvBundle\Entity\DomicilioPersona | |
99 | - */ | |
100 | - public function getDomicilioPersona() | |
101 | - { | |
102 | - return $this->domicilioPersona; | |
103 | - } | |
104 | - | |
105 | - /** | |
106 | - * Set domicilioDetalleTipo | |
107 | - * | |
108 | - * @param \UBV\SurUbvBundle\Entity\DomicilioDetalleTipo $domicilioDetalleTipo | |
109 | - * @return DomicilioDetalle | |
110 | - */ | |
111 | - public function setDomicilioDetalleTipo(\UBV\SurUbvBundle\Entity\DomicilioDetalleTipo $domicilioDetalleTipo) | |
112 | - { | |
113 | - $this->domicilioDetalleTipo = $domicilioDetalleTipo; | |
114 | - | |
115 | - return $this; | |
116 | - } | |
117 | - | |
118 | - /** | |
119 | - * Get domicilioDetalleTipo | |
120 | - * | |
121 | - * @return \UBV\SurUbvBundle\Entity\DomicilioDetalleTipo | |
122 | - */ | |
123 | - public function getDomicilioDetalleTipo() | |
124 | - { | |
125 | - return $this->domicilioDetalleTipo; | |
126 | - } | |
127 | -} |
src/UBV/PracticaBundle/Entity/DomicilioDetalleRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * DomicilioDetalleRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class DomicilioDetalleRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/DomicilioDetalleTipo.php
... | ... | @@ -1,110 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\DomicilioDetalleTipo | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DomicilioDetalleTipoRepository") | |
12 | - * @ORM\Table(name="domicilio_detalle_tipo", uniqueConstraints={@ORM\UniqueConstraint(name="id_domicilio_detalle_tipo_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class DomicilioDetalleTipo | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="domicilio_detalle_tipo_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=45) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="DomicilioDetalle", mappedBy="domicilioDetalleTipo") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="domicilio_detalle_tipo_id", nullable=false) | |
32 | - */ | |
33 | - protected $domicilioDetalles; | |
34 | - | |
35 | - public function __construct() | |
36 | - { | |
37 | - $this->domicilioDetalles = new ArrayCollection(); | |
38 | - } | |
39 | - | |
40 | - public function __sleep() | |
41 | - { | |
42 | - return array('id', 'descripcion'); | |
43 | - } | |
44 | - | |
45 | - /** | |
46 | - * Get id | |
47 | - * | |
48 | - * @return integer | |
49 | - */ | |
50 | - public function getId() | |
51 | - { | |
52 | - return $this->id; | |
53 | - } | |
54 | - | |
55 | - /** | |
56 | - * Set descripcion | |
57 | - * | |
58 | - * @param string $descripcion | |
59 | - * @return DomicilioDetalleTipo | |
60 | - */ | |
61 | - public function setDescripcion($descripcion) | |
62 | - { | |
63 | - $this->descripcion = $descripcion; | |
64 | - | |
65 | - return $this; | |
66 | - } | |
67 | - | |
68 | - /** | |
69 | - * Get descripcion | |
70 | - * | |
71 | - * @return string | |
72 | - */ | |
73 | - public function getDescripcion() | |
74 | - { | |
75 | - return $this->descripcion; | |
76 | - } | |
77 | - | |
78 | - /** | |
79 | - * Add domicilioDetalles | |
80 | - * | |
81 | - * @param \UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles | |
82 | - * @return DomicilioDetalleTipo | |
83 | - */ | |
84 | - public function addDomicilioDetalle(\UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles) | |
85 | - { | |
86 | - $this->domicilioDetalles[] = $domicilioDetalles; | |
87 | - | |
88 | - return $this; | |
89 | - } | |
90 | - | |
91 | - /** | |
92 | - * Remove domicilioDetalles | |
93 | - * | |
94 | - * @param \UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles | |
95 | - */ | |
96 | - public function removeDomicilioDetalle(\UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles) | |
97 | - { | |
98 | - $this->domicilioDetalles->removeElement($domicilioDetalles); | |
99 | - } | |
100 | - | |
101 | - /** | |
102 | - * Get domicilioDetalles | |
103 | - * | |
104 | - * @return \Doctrine\Common\Collections\Collection | |
105 | - */ | |
106 | - public function getDomicilioDetalles() | |
107 | - { | |
108 | - return $this->domicilioDetalles; | |
109 | - } | |
110 | -} |
src/UBV/PracticaBundle/Entity/DomicilioDetalleTipoRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * DomicilioDetalleTipoRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class DomicilioDetalleTipoRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/DomicilioPersona.php
... | ... | @@ -1,169 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\DomicilioPersona | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DomicilioPersonaRepository") | |
12 | - * @ORM\Table(name="domicilio_persona", indexes={@ORM\Index(name="fk_domicilio_persona_ciudad1_idx", columns={"ciudad_id"}), @ORM\Index(name="fk_domicilio_persona_parroquia1_idx", columns={"parroquia_id"}), @ORM\Index(name="fk_domicilio_persona_persona1_idx", columns={"persona_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_domicilio_persona_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class DomicilioPersona | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="domicilio_persona_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\OneToMany(targetEntity="DomicilioDetalle", mappedBy="domicilioPersona") | |
26 | - * @ORM\JoinColumn(name="id", referencedColumnName="domicilio_persona_id", nullable=false) | |
27 | - */ | |
28 | - protected $domicilioDetalles; | |
29 | - | |
30 | - /** | |
31 | - * @ORM\ManyToOne(targetEntity="Ciudad", inversedBy="domicilioPersonas") | |
32 | - * @ORM\JoinColumn(name="ciudad_id", referencedColumnName="id", nullable=false) | |
33 | - */ | |
34 | - protected $ciudad; | |
35 | - | |
36 | - /** | |
37 | - * @ORM\ManyToOne(targetEntity="Parroquia", inversedBy="domicilioPersonas") | |
38 | - * @ORM\JoinColumn(name="parroquia_id", referencedColumnName="id", nullable=false) | |
39 | - */ | |
40 | - protected $parroquia; | |
41 | - | |
42 | - /** | |
43 | - * @ORM\ManyToOne(targetEntity="Persona", inversedBy="domicilioPersonas") | |
44 | - * @ORM\JoinColumn(name="persona_id", referencedColumnName="id", nullable=false) | |
45 | - */ | |
46 | - protected $persona; | |
47 | - | |
48 | - public function __construct() | |
49 | - { | |
50 | - $this->domicilioDetalles = new ArrayCollection(); | |
51 | - } | |
52 | - | |
53 | - public function __sleep() | |
54 | - { | |
55 | - return array('id', 'ciudad_id', 'parroquia_id', 'persona_id'); | |
56 | - } | |
57 | - | |
58 | - /** | |
59 | - * Get id | |
60 | - * | |
61 | - * @return integer | |
62 | - */ | |
63 | - public function getId() | |
64 | - { | |
65 | - return $this->id; | |
66 | - } | |
67 | - | |
68 | - /** | |
69 | - * Add domicilioDetalles | |
70 | - * | |
71 | - * @param \UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles | |
72 | - * @return DomicilioPersona | |
73 | - */ | |
74 | - public function addDomicilioDetalle(\UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles) | |
75 | - { | |
76 | - $this->domicilioDetalles[] = $domicilioDetalles; | |
77 | - | |
78 | - return $this; | |
79 | - } | |
80 | - | |
81 | - /** | |
82 | - * Remove domicilioDetalles | |
83 | - * | |
84 | - * @param \UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles | |
85 | - */ | |
86 | - public function removeDomicilioDetalle(\UBV\SurUbvBundle\Entity\DomicilioDetalle $domicilioDetalles) | |
87 | - { | |
88 | - $this->domicilioDetalles->removeElement($domicilioDetalles); | |
89 | - } | |
90 | - | |
91 | - /** | |
92 | - * Get domicilioDetalles | |
93 | - * | |
94 | - * @return \Doctrine\Common\Collections\Collection | |
95 | - */ | |
96 | - public function getDomicilioDetalles() | |
97 | - { | |
98 | - return $this->domicilioDetalles; | |
99 | - } | |
100 | - | |
101 | - /** | |
102 | - * Set ciudad | |
103 | - * | |
104 | - * @param \UBV\SurUbvBundle\Entity\Ciudad $ciudad | |
105 | - * @return DomicilioPersona | |
106 | - */ | |
107 | - public function setCiudad(\UBV\SurUbvBundle\Entity\Ciudad $ciudad) | |
108 | - { | |
109 | - $this->ciudad = $ciudad; | |
110 | - | |
111 | - return $this; | |
112 | - } | |
113 | - | |
114 | - /** | |
115 | - * Get ciudad | |
116 | - * | |
117 | - * @return \UBV\SurUbvBundle\Entity\Ciudad | |
118 | - */ | |
119 | - public function getCiudad() | |
120 | - { | |
121 | - return $this->ciudad; | |
122 | - } | |
123 | - | |
124 | - /** | |
125 | - * Set parroquia | |
126 | - * | |
127 | - * @param \UBV\SurUbvBundle\Entity\Parroquia $parroquia | |
128 | - * @return DomicilioPersona | |
129 | - */ | |
130 | - public function setParroquia(\UBV\SurUbvBundle\Entity\Parroquia $parroquia) | |
131 | - { | |
132 | - $this->parroquia = $parroquia; | |
133 | - | |
134 | - return $this; | |
135 | - } | |
136 | - | |
137 | - /** | |
138 | - * Get parroquia | |
139 | - * | |
140 | - * @return \UBV\SurUbvBundle\Entity\Parroquia | |
141 | - */ | |
142 | - public function getParroquia() | |
143 | - { | |
144 | - return $this->parroquia; | |
145 | - } | |
146 | - | |
147 | - /** | |
148 | - * Set persona | |
149 | - * | |
150 | - * @param \UBV\SurUbvBundle\Entity\Persona $persona | |
151 | - * @return DomicilioPersona | |
152 | - */ | |
153 | - public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) | |
154 | - { | |
155 | - $this->persona = $persona; | |
156 | - | |
157 | - return $this; | |
158 | - } | |
159 | - | |
160 | - /** | |
161 | - * Get persona | |
162 | - * | |
163 | - * @return \UBV\SurUbvBundle\Entity\Persona | |
164 | - */ | |
165 | - public function getPersona() | |
166 | - { | |
167 | - return $this->persona; | |
168 | - } | |
169 | -} |
src/UBV/PracticaBundle/Entity/DomicilioPersonaRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * DomicilioPersonaRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class DomicilioPersonaRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/EjeFormacion.php
... | ... | @@ -1,110 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\EjeFormacion | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\EjeFormacionRepository") | |
12 | - * @ORM\Table(name="eje_formacion", uniqueConstraints={@ORM\UniqueConstraint(name="id_eje_formacion_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class EjeFormacion | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="eje_formacion_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=70) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="UnidadCurricularDetalle", mappedBy="ejeFormacion") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="eje_formacion_id", nullable=false) | |
32 | - */ | |
33 | - protected $unidadCurricularDetalles; | |
34 | - | |
35 | - public function __construct() | |
36 | - { | |
37 | - $this->unidadCurricularDetalles = new ArrayCollection(); | |
38 | - } | |
39 | - | |
40 | - public function __sleep() | |
41 | - { | |
42 | - return array('id', 'descripcion'); | |
43 | - } | |
44 | - | |
45 | - /** | |
46 | - * Get id | |
47 | - * | |
48 | - * @return integer | |
49 | - */ | |
50 | - public function getId() | |
51 | - { | |
52 | - return $this->id; | |
53 | - } | |
54 | - | |
55 | - /** | |
56 | - * Set descripcion | |
57 | - * | |
58 | - * @param string $descripcion | |
59 | - * @return EjeFormacion | |
60 | - */ | |
61 | - public function setDescripcion($descripcion) | |
62 | - { | |
63 | - $this->descripcion = $descripcion; | |
64 | - | |
65 | - return $this; | |
66 | - } | |
67 | - | |
68 | - /** | |
69 | - * Get descripcion | |
70 | - * | |
71 | - * @return string | |
72 | - */ | |
73 | - public function getDescripcion() | |
74 | - { | |
75 | - return $this->descripcion; | |
76 | - } | |
77 | - | |
78 | - /** | |
79 | - * Add unidadCurricularDetalles | |
80 | - * | |
81 | - * @param \UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles | |
82 | - * @return EjeFormacion | |
83 | - */ | |
84 | - public function addUnidadCurricularDetalle(\UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles) | |
85 | - { | |
86 | - $this->unidadCurricularDetalles[] = $unidadCurricularDetalles; | |
87 | - | |
88 | - return $this; | |
89 | - } | |
90 | - | |
91 | - /** | |
92 | - * Remove unidadCurricularDetalles | |
93 | - * | |
94 | - * @param \UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles | |
95 | - */ | |
96 | - public function removeUnidadCurricularDetalle(\UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles) | |
97 | - { | |
98 | - $this->unidadCurricularDetalles->removeElement($unidadCurricularDetalles); | |
99 | - } | |
100 | - | |
101 | - /** | |
102 | - * Get unidadCurricularDetalles | |
103 | - * | |
104 | - * @return \Doctrine\Common\Collections\Collection | |
105 | - */ | |
106 | - public function getUnidadCurricularDetalles() | |
107 | - { | |
108 | - return $this->unidadCurricularDetalles; | |
109 | - } | |
110 | -} |
src/UBV/PracticaBundle/Entity/EjeFormacionRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * EjeFormacionRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class EjeFormacionRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/EjeMunicipal.php
... | ... | @@ -1,171 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\EjeMunicipal | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\EjeMunicipalRepository") | |
12 | - * @ORM\Table(name="eje_municipal", indexes={@ORM\Index(name="fk_eje_municipal_eje_regional1_idx", columns={"eje_regional_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_eje_municipal_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class EjeMunicipal | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="eje_municipal_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=70) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\Column(type="string", length=15) | |
31 | - */ | |
32 | - protected $codigo; | |
33 | - | |
34 | - /** | |
35 | - * @ORM\OneToMany(targetEntity="Parroquia", mappedBy="ejeMunicipal") | |
36 | - * @ORM\JoinColumn(name="id", referencedColumnName="eje_municipal_id", nullable=false) | |
37 | - */ | |
38 | - protected $parroquias; | |
39 | - | |
40 | - /** | |
41 | - * @ORM\ManyToOne(targetEntity="EjeRegional", inversedBy="ejeMunicipals", cascade={"persist", "remove"}) | |
42 | - * @ORM\JoinColumn(name="eje_regional_id", referencedColumnName="id", nullable=false) | |
43 | - */ | |
44 | - protected $ejeRegional; | |
45 | - | |
46 | - public function __construct() | |
47 | - { | |
48 | - $this->parroquias = new ArrayCollection(); | |
49 | - } | |
50 | - | |
51 | - public function __sleep() | |
52 | - { | |
53 | - return array('id', 'descripcion', 'codigo', 'eje_regional_id'); | |
54 | - } | |
55 | - | |
56 | - /** | |
57 | - * Get id | |
58 | - * | |
59 | - * @return integer | |
60 | - */ | |
61 | - public function getId() | |
62 | - { | |
63 | - return $this->id; | |
64 | - } | |
65 | - | |
66 | - /** | |
67 | - * Set descripcion | |
68 | - * | |
69 | - * @param string $descripcion | |
70 | - * @return EjeMunicipal | |
71 | - */ | |
72 | - public function setDescripcion($descripcion) | |
73 | - { | |
74 | - $this->descripcion = $descripcion; | |
75 | - | |
76 | - return $this; | |
77 | - } | |
78 | - | |
79 | - /** | |
80 | - * Get descripcion | |
81 | - * | |
82 | - * @return string | |
83 | - */ | |
84 | - public function getDescripcion() | |
85 | - { | |
86 | - return $this->descripcion; | |
87 | - } | |
88 | - | |
89 | - /** | |
90 | - * Set codigo | |
91 | - * | |
92 | - * @param string $codigo | |
93 | - * @return EjeMunicipal | |
94 | - */ | |
95 | - public function setCodigo($codigo) | |
96 | - { | |
97 | - $this->codigo = $codigo; | |
98 | - | |
99 | - return $this; | |
100 | - } | |
101 | - | |
102 | - /** | |
103 | - * Get codigo | |
104 | - * | |
105 | - * @return string | |
106 | - */ | |
107 | - public function getCodigo() | |
108 | - { | |
109 | - return $this->codigo; | |
110 | - } | |
111 | - | |
112 | - /** | |
113 | - * Add parroquias | |
114 | - * | |
115 | - * @param \UBV\SurUbvBundle\Entity\Parroquia $parroquias | |
116 | - * @return EjeMunicipal | |
117 | - */ | |
118 | - public function addParroquia(\UBV\SurUbvBundle\Entity\Parroquia $parroquias) | |
119 | - { | |
120 | - $this->parroquias[] = $parroquias; | |
121 | - | |
122 | - return $this; | |
123 | - } | |
124 | - | |
125 | - /** | |
126 | - * Remove parroquias | |
127 | - * | |
128 | - * @param \UBV\SurUbvBundle\Entity\Parroquia $parroquias | |
129 | - */ | |
130 | - public function removeParroquia(\UBV\SurUbvBundle\Entity\Parroquia $parroquias) | |
131 | - { | |
132 | - $this->parroquias->removeElement($parroquias); | |
133 | - } | |
134 | - | |
135 | - /** | |
136 | - * Get parroquias | |
137 | - * | |
138 | - * @return \Doctrine\Common\Collections\Collection | |
139 | - */ | |
140 | - public function getParroquias() | |
141 | - { | |
142 | - return $this->parroquias; | |
143 | - } | |
144 | - | |
145 | - public function __toString() { | |
146 | - return $this->getDescripcion(); | |
147 | - } | |
148 | - | |
149 | - /** | |
150 | - * Set ejeRegional | |
151 | - * | |
152 | - * @param \UBV\SurUbvBundle\Entity\EjeRegional $ejeRegional | |
153 | - * @return EjeMunicipal | |
154 | - */ | |
155 | - public function setEjeRegional(\UBV\SurUbvBundle\Entity\EjeRegional $ejeRegional) | |
156 | - { | |
157 | - $this->ejeRegional = $ejeRegional; | |
158 | - | |
159 | - return $this; | |
160 | - } | |
161 | - | |
162 | - /** | |
163 | - * Get ejeRegional | |
164 | - * | |
165 | - * @return \UBV\SurUbvBundle\Entity\EjeRegional | |
166 | - */ | |
167 | - public function getEjeRegional() | |
168 | - { | |
169 | - return $this->ejeRegional; | |
170 | - } | |
171 | -} |
src/UBV/PracticaBundle/Entity/EjeMunicipalRepository.php
... | ... | @@ -1,33 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -use Doctrine\ORM\Query\Expr\Join; | |
8 | -use Doctrine\ORM\Query; | |
9 | -/** | |
10 | - * EjeMunicipalRepository | |
11 | - * | |
12 | - * This class was generated by the Doctrine ORM. Add your own custom | |
13 | - * repository methods below. | |
14 | - */ | |
15 | -class EjeMunicipalRepository extends EntityRepository | |
16 | -{ | |
17 | - public function findEjeMunicipalByEjeRegionalId($ejeregional_id) | |
18 | - { | |
19 | - $em = $this->getEntityManager(); | |
20 | - | |
21 | - //die(dump($pais_id)); | |
22 | - $result = $em->createQueryBuilder(); | |
23 | - | |
24 | - $dql = $result -> select ('ejemunicipal') | |
25 | - ->from('UBVSurUbvBundle:EjeMunicipal', 'ejemunicipal') | |
26 | - ->Join('ejemunicipal.ejeregional', 'ejeregional', 'ejeregional.id = ejemunicipal.ejeregional_id') | |
27 | - ->where('ejeregional.id = :ejeregional_id') | |
28 | - ->setParameter('ejeregional_id',$ejeregional_id) | |
29 | - ->getQuery() | |
30 | - ->getResult(Query::HYDRATE_ARRAY); | |
31 | - return $dql; | |
32 | - } | |
33 | -} |
src/UBV/PracticaBundle/Entity/EjeRegional.php
... | ... | @@ -1,171 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\EjeRegional | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\EjeRegionalRepository") | |
12 | - * @ORM\Table(name="eje_regional", uniqueConstraints={@ORM\UniqueConstraint(name="id_eje_regional_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class EjeRegional | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="eje_regional_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=70) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\Column(type="string", length=15) | |
31 | - */ | |
32 | - protected $codigo; | |
33 | - | |
34 | - /** | |
35 | - * @ORM\OneToOne(targetEntity="Docente", mappedBy="ejeRegional") | |
36 | - */ | |
37 | - protected $docente; | |
38 | - | |
39 | - /** | |
40 | - * @ORM\OneToMany(targetEntity="EjeMunicipal", mappedBy="ejeRegional", cascade={"persist", "remove"}) | |
41 | - * @ORM\JoinColumn(name="id", referencedColumnName="eje_regional_id", nullable=false) | |
42 | - */ | |
43 | - protected $ejeMunicipals; | |
44 | - | |
45 | - public function __construct() | |
46 | - { | |
47 | - $this->docentes = new ArrayCollection(); | |
48 | - $this->ejeMunicipals = new ArrayCollection(); | |
49 | - } | |
50 | - | |
51 | - public function __sleep() | |
52 | - { | |
53 | - return array('id', 'descripcion', 'codigo'); | |
54 | - } | |
55 | - | |
56 | - /** | |
57 | - * Get id | |
58 | - * | |
59 | - * @return integer | |
60 | - */ | |
61 | - public function getId() | |
62 | - { | |
63 | - return $this->id; | |
64 | - } | |
65 | - | |
66 | - /** | |
67 | - * Set descripcion | |
68 | - * | |
69 | - * @param string $descripcion | |
70 | - * @return EjeRegional | |
71 | - */ | |
72 | - public function setDescripcion($descripcion) | |
73 | - { | |
74 | - $this->descripcion = $descripcion; | |
75 | - | |
76 | - return $this; | |
77 | - } | |
78 | - | |
79 | - /** | |
80 | - * Get descripcion | |
81 | - * | |
82 | - * @return string | |
83 | - */ | |
84 | - public function getDescripcion() | |
85 | - { | |
86 | - return $this->descripcion; | |
87 | - } | |
88 | - | |
89 | - /** | |
90 | - * Set codigo | |
91 | - * | |
92 | - * @param string $codigo | |
93 | - * @return EjeRegional | |
94 | - */ | |
95 | - public function setCodigo($codigo) | |
96 | - { | |
97 | - $this->codigo = $codigo; | |
98 | - | |
99 | - return $this; | |
100 | - } | |
101 | - | |
102 | - /** | |
103 | - * Get codigo | |
104 | - * | |
105 | - * @return string | |
106 | - */ | |
107 | - public function getCodigo() | |
108 | - { | |
109 | - return $this->codigo; | |
110 | - } | |
111 | - | |
112 | - /** | |
113 | - * Set docente | |
114 | - * | |
115 | - * @param \UBV\SurUbvBundle\Entity\Docente $docente | |
116 | - * @return EjeRegional | |
117 | - */ | |
118 | - public function setDocente(\UBV\SurUbvBundle\Entity\Docente $docente = null) | |
119 | - { | |
120 | - $this->docente = $docente; | |
121 | - | |
122 | - return $this; | |
123 | - } | |
124 | - | |
125 | - /** | |
126 | - * Get docente | |
127 | - * | |
128 | - * @return \UBV\SurUbvBundle\Entity\Docente | |
129 | - */ | |
130 | - public function getDocente() | |
131 | - { | |
132 | - return $this->docente; | |
133 | - } | |
134 | - | |
135 | - /** | |
136 | - * Add ejeMunicipals | |
137 | - * | |
138 | - * @param \UBV\SurUbvBundle\Entity\EjeMunicipal $ejeMunicipals | |
139 | - * @return EjeRegional | |
140 | - */ | |
141 | - public function addEjeMunicipal(\UBV\SurUbvBundle\Entity\EjeMunicipal $ejeMunicipals) | |
142 | - { | |
143 | - $this->ejeMunicipals[] = $ejeMunicipals; | |
144 | - | |
145 | - return $this; | |
146 | - } | |
147 | - | |
148 | - /** | |
149 | - * Remove ejeMunicipals | |
150 | - * | |
151 | - * @param \UBV\SurUbvBundle\Entity\EjeMunicipal $ejeMunicipals | |
152 | - */ | |
153 | - public function removeEjeMunicipal(\UBV\SurUbvBundle\Entity\EjeMunicipal $ejeMunicipals) | |
154 | - { | |
155 | - $this->ejeMunicipals->removeElement($ejeMunicipals); | |
156 | - } | |
157 | - | |
158 | - /** | |
159 | - * Get ejeMunicipals | |
160 | - * | |
161 | - * @return \Doctrine\Common\Collections\Collection | |
162 | - */ | |
163 | - public function getEjeMunicipals() | |
164 | - { | |
165 | - return $this->ejeMunicipals; | |
166 | - } | |
167 | - | |
168 | - public function __toString() { | |
169 | - return $this->getDescripcion(); | |
170 | - } | |
171 | -} |
src/UBV/PracticaBundle/Entity/EjeRegionalRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * EjeRegionalRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class EjeRegionalRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/Estado.php
... | ... | @@ -1,251 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\Estado | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\EstadoRepository") | |
12 | - * @ORM\Table(name="estado", indexes={@ORM\Index(name="fk_estado_pais1_idx", columns={"pais_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_estado_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class Estado | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="estado_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=50) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\Column(type="string", length=6) | |
31 | - */ | |
32 | - protected $codigo; | |
33 | - | |
34 | - /** | |
35 | - * @ORM\OneToMany(targetEntity="Ciudad", mappedBy="estado") | |
36 | - * @ORM\JoinColumn(name="id", referencedColumnName="estado_id", nullable=false) | |
37 | - */ | |
38 | - protected $ciudads; | |
39 | - | |
40 | - /** | |
41 | - * @ORM\OneToMany(targetEntity="Municipio", mappedBy="estado", cascade={"persist", "remove"}) | |
42 | - * @ORM\JoinColumn(name="id", referencedColumnName="estado_id", nullable=false) | |
43 | - */ | |
44 | - protected $municipios; | |
45 | - | |
46 | - /** | |
47 | - * @ORM\ManyToOne(targetEntity="Pais", inversedBy="estados") | |
48 | - * @ORM\JoinColumn(name="pais_id", referencedColumnName="id", nullable=false) | |
49 | - */ | |
50 | - protected $pais; | |
51 | - | |
52 | - /** | |
53 | - * @ORM\OneToMany(targetEntity="Candidato", mappedBy="estado") | |
54 | - * @ORM\JoinColumn(name="id", referencedColumnName="estado_id", nullable=false) | |
55 | - */ | |
56 | - protected $candidatos; | |
57 | - | |
58 | - public function __construct() | |
59 | - { | |
60 | - $this->ciudads = new ArrayCollection(); | |
61 | - $this->municipios = new ArrayCollection(); | |
62 | - $this->candidatos = new ArrayCollection(); | |
63 | - } | |
64 | - | |
65 | - public function __sleep() | |
66 | - { | |
67 | - return array('id', 'descripcion', 'codigo', 'pais_id'); | |
68 | - } | |
69 | - | |
70 | - /** | |
71 | - * Get id | |
72 | - * | |
73 | - * @return integer | |
74 | - */ | |
75 | - public function getId() | |
76 | - { | |
77 | - return $this->id; | |
78 | - } | |
79 | - | |
80 | - /** | |
81 | - * Set descripcion | |
82 | - * | |
83 | - * @param string $descripcion | |
84 | - * @return Estado | |
85 | - */ | |
86 | - public function setDescripcion($descripcion) | |
87 | - { | |
88 | - $this->descripcion = $descripcion; | |
89 | - | |
90 | - return $this; | |
91 | - } | |
92 | - | |
93 | - /** | |
94 | - * Get descripcion | |
95 | - * | |
96 | - * @return string | |
97 | - */ | |
98 | - public function getDescripcion() | |
99 | - { | |
100 | - return $this->descripcion; | |
101 | - } | |
102 | - | |
103 | - /** | |
104 | - * Set codigo | |
105 | - * | |
106 | - * @param string $codigo | |
107 | - * @return Estado | |
108 | - */ | |
109 | - public function setCodigo($codigo) | |
110 | - { | |
111 | - $this->codigo = $codigo; | |
112 | - | |
113 | - return $this; | |
114 | - } | |
115 | - | |
116 | - /** | |
117 | - * Get codigo | |
118 | - * | |
119 | - * @return string | |
120 | - */ | |
121 | - public function getCodigo() | |
122 | - { | |
123 | - return $this->codigo; | |
124 | - } | |
125 | - | |
126 | - /** | |
127 | - * Add ciudads | |
128 | - * | |
129 | - * @param \UBV\SurUbvBundle\Entity\Ciudad $ciudads | |
130 | - * @return Estado | |
131 | - */ | |
132 | - public function addCiudad(\UBV\SurUbvBundle\Entity\Ciudad $ciudads) | |
133 | - { | |
134 | - $this->ciudads[] = $ciudads; | |
135 | - | |
136 | - return $this; | |
137 | - } | |
138 | - | |
139 | - /** | |
140 | - * Remove ciudads | |
141 | - * | |
142 | - * @param \UBV\SurUbvBundle\Entity\Ciudad $ciudads | |
143 | - */ | |
144 | - public function removeCiudad(\UBV\SurUbvBundle\Entity\Ciudad $ciudads) | |
145 | - { | |
146 | - $this->ciudads->removeElement($ciudads); | |
147 | - } | |
148 | - | |
149 | - /** | |
150 | - * Get ciudads | |
151 | - * | |
152 | - * @return \Doctrine\Common\Collections\Collection | |
153 | - */ | |
154 | - public function getCiudads() | |
155 | - { | |
156 | - return $this->ciudads; | |
157 | - } | |
158 | - | |
159 | - /** | |
160 | - * Add municipios | |
161 | - * | |
162 | - * @param \UBV\SurUbvBundle\Entity\Municipio $municipios | |
163 | - * @return Estado | |
164 | - */ | |
165 | - public function addMunicipio(\UBV\SurUbvBundle\Entity\Municipio $municipios) | |
166 | - { | |
167 | - $this->municipios[] = $municipios; | |
168 | - | |
169 | - return $this; | |
170 | - } | |
171 | - | |
172 | - /** | |
173 | - * Remove municipios | |
174 | - * | |
175 | - * @param \UBV\SurUbvBundle\Entity\Municipio $municipios | |
176 | - */ | |
177 | - public function removeMunicipio(\UBV\SurUbvBundle\Entity\Municipio $municipios) | |
178 | - { | |
179 | - $this->municipios->removeElement($municipios); | |
180 | - } | |
181 | - | |
182 | - /** | |
183 | - * Get municipios | |
184 | - * | |
185 | - * @return \Doctrine\Common\Collections\Collection | |
186 | - */ | |
187 | - public function getMunicipios() | |
188 | - { | |
189 | - return $this->municipios; | |
190 | - } | |
191 | - | |
192 | - /** | |
193 | - * Set pais | |
194 | - * | |
195 | - * @param \UBV\SurUbvBundle\Entity\Pais $pais | |
196 | - * @return Estado | |
197 | - */ | |
198 | - public function setPais(\UBV\SurUbvBundle\Entity\Pais $pais) | |
199 | - { | |
200 | - $this->pais = $pais; | |
201 | - | |
202 | - return $this; | |
203 | - } | |
204 | - | |
205 | - /** | |
206 | - * Get pais | |
207 | - * | |
208 | - * @return \UBV\SurUbvBundle\Entity\Pais | |
209 | - */ | |
210 | - public function getPais() | |
211 | - { | |
212 | - return $this->pais; | |
213 | - } | |
214 | - | |
215 | - public function __toString(){ | |
216 | - return $this->getDescripcion(); | |
217 | - } | |
218 | - | |
219 | - /** | |
220 | - * Add candidatos | |
221 | - * | |
222 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
223 | - * @return Estado | |
224 | - */ | |
225 | - public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
226 | - { | |
227 | - $this->candidatos[] = $candidatos; | |
228 | - | |
229 | - return $this; | |
230 | - } | |
231 | - | |
232 | - /** | |
233 | - * Remove candidatos | |
234 | - * | |
235 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
236 | - */ | |
237 | - public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
238 | - { | |
239 | - $this->candidatos->removeElement($candidatos); | |
240 | - } | |
241 | - | |
242 | - /** | |
243 | - * Get candidatos | |
244 | - * | |
245 | - * @return \Doctrine\Common\Collections\Collection | |
246 | - */ | |
247 | - public function getCandidatos() | |
248 | - { | |
249 | - return $this->candidatos; | |
250 | - } | |
251 | -} |
src/UBV/PracticaBundle/Entity/EstadoCivil.php
... | ... | @@ -1,189 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | -use Symfony\Component\Validator\Constraints as Assert; | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\EstadoCivil | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\EstadoCivilRepository") | |
12 | - * @ORM\Table(name="estado_civil", uniqueConstraints={@ORM\UniqueConstraint(name="id_estado_civil_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class EstadoCivil | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="estado_civil_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=20) | |
26 | - * @Assert\NotBlank( message= "Por favor introduzca la Descripciรณn del Estado Civil") | |
27 | - * @Assert\Length( | |
28 | - * min = 6, | |
29 | - * max = 20, | |
30 | - * minMessage = "Por favor introduzca un Tipo de Estado Civil mรกs especรญfico. Mรญnimo {{ limit }} caracteres", | |
31 | - * maxMessage = "Por favor introduzca un Tipo de Estado Civil mรกs breve. Mรกximo {{ limit }} caracteres", | |
32 | - *) | |
33 | - */ | |
34 | - protected $descripcion; | |
35 | - | |
36 | - /** | |
37 | - * @ORM\Column(type="string", length=5, nullable=false) | |
38 | - */ | |
39 | - protected $codigo; | |
40 | - | |
41 | - /** | |
42 | - * @ORM\OneToMany(targetEntity="Persona", mappedBy="estadoCivil") | |
43 | - * @ORM\JoinColumn(name="id", referencedColumnName="estado_civil_id", nullable=false) | |
44 | - */ | |
45 | - protected $personas; | |
46 | - | |
47 | - /** | |
48 | - * @ORM\OneToMany(targetEntity="Candidato", mappedBy="estadoCivil") | |
49 | - * @ORM\JoinColumn(name="id", referencedColumnName="estado_civil_id", nullable=false) | |
50 | - */ | |
51 | - protected $candidatos; | |
52 | - | |
53 | - public function __construct() | |
54 | - { | |
55 | - $this->personas = new ArrayCollection(); | |
56 | - $this->candidatos = new ArrayCollection(); | |
57 | - } | |
58 | - | |
59 | - public function __sleep() | |
60 | - { | |
61 | - return array('id', 'descripcion'); | |
62 | - } | |
63 | - | |
64 | - /** | |
65 | - * Get id | |
66 | - * | |
67 | - * @return integer | |
68 | - */ | |
69 | - public function getId() | |
70 | - { | |
71 | - return $this->id; | |
72 | - } | |
73 | - | |
74 | - /** | |
75 | - * Set descripcion | |
76 | - * | |
77 | - * @param string $descripcion | |
78 | - * @return EstadoCivil | |
79 | - */ | |
80 | - public function setDescripcion($descripcion) | |
81 | - { | |
82 | - $this->descripcion = $descripcion; | |
83 | - | |
84 | - return $this; | |
85 | - } | |
86 | - | |
87 | - /** | |
88 | - * Get descripcion | |
89 | - * | |
90 | - * @return string | |
91 | - */ | |
92 | - public function getDescripcion() | |
93 | - { | |
94 | - return $this->descripcion; | |
95 | - } | |
96 | - | |
97 | - /** | |
98 | - * Add personas | |
99 | - * | |
100 | - * @param \UBV\SurUbvBundle\Entity\Persona $personas | |
101 | - * @return EstadoCivil | |
102 | - */ | |
103 | - public function addPersona(\UBV\SurUbvBundle\Entity\Persona $personas) | |
104 | - { | |
105 | - $this->personas[] = $personas; | |
106 | - | |
107 | - return $this; | |
108 | - } | |
109 | - | |
110 | - /** | |
111 | - * Remove personas | |
112 | - * | |
113 | - * @param \UBV\SurUbvBundle\Entity\Persona $personas | |
114 | - */ | |
115 | - public function removePersona(\UBV\SurUbvBundle\Entity\Persona $personas) | |
116 | - { | |
117 | - $this->personas->removeElement($personas); | |
118 | - } | |
119 | - | |
120 | - /** | |
121 | - * Get personas | |
122 | - * | |
123 | - * @return \Doctrine\Common\Collections\Collection | |
124 | - */ | |
125 | - public function getPersonas() | |
126 | - { | |
127 | - return $this->personas; | |
128 | - } | |
129 | - | |
130 | - public function __toString() { | |
131 | - return $this->getDescripcion(); | |
132 | - } | |
133 | - | |
134 | - /** | |
135 | - * Set codigo | |
136 | - * | |
137 | - * @param string $codigo | |
138 | - * @return EstadoCivil | |
139 | - */ | |
140 | - public function setCodigo($codigo) | |
141 | - { | |
142 | - $this->codigo = $codigo; | |
143 | - | |
144 | - return $this; | |
145 | - } | |
146 | - | |
147 | - /** | |
148 | - * Get codigo | |
149 | - * | |
150 | - * @return string | |
151 | - */ | |
152 | - public function getCodigo() | |
153 | - { | |
154 | - return $this->codigo; | |
155 | - } | |
156 | - | |
157 | - /** | |
158 | - * Add candidatos | |
159 | - * | |
160 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
161 | - * @return EstadoCivil | |
162 | - */ | |
163 | - public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
164 | - { | |
165 | - $this->candidatos[] = $candidatos; | |
166 | - | |
167 | - return $this; | |
168 | - } | |
169 | - | |
170 | - /** | |
171 | - * Remove candidatos | |
172 | - * | |
173 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
174 | - */ | |
175 | - public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
176 | - { | |
177 | - $this->candidatos->removeElement($candidatos); | |
178 | - } | |
179 | - | |
180 | - /** | |
181 | - * Get candidatos | |
182 | - * | |
183 | - * @return \Doctrine\Common\Collections\Collection | |
184 | - */ | |
185 | - public function getCandidatos() | |
186 | - { | |
187 | - return $this->candidatos; | |
188 | - } | |
189 | -} |
src/UBV/PracticaBundle/Entity/EstadoCivilRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * EstadoCivilRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class EstadoCivilRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/EstadoRepository.php
... | ... | @@ -1,34 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -use Doctrine\ORM\Query\Expr\Join; | |
8 | -use Doctrine\ORM\Query; | |
9 | - | |
10 | -/** | |
11 | - * EstadoRepository | |
12 | - * | |
13 | - * This class was generated by the Doctrine ORM. Add your own custom | |
14 | - * repository methods below. | |
15 | - */ | |
16 | -class EstadoRepository extends EntityRepository | |
17 | -{ | |
18 | - public function findEstadosByPaisId($pais_id) | |
19 | - { | |
20 | - $em = $this->getEntityManager(); | |
21 | - | |
22 | - //die(dump($pais_id)); | |
23 | - $result = $em->createQueryBuilder(); | |
24 | - | |
25 | - $dql = $result -> select ('estado') | |
26 | - ->from('UBVSurUbvBundle:Estado', 'estado') | |
27 | - ->Join('estado.pais', 'pais', 'pais.id = estado.pais_id') | |
28 | - ->where('pais.id = :pais_id') | |
29 | - ->setParameter('pais_id',$pais_id) | |
30 | - ->getQuery() | |
31 | - ->getResult(Query::HYDRATE_ARRAY); | |
32 | - return $dql; | |
33 | - } | |
34 | -} |
src/UBV/PracticaBundle/Entity/Estudiante.php
... | ... | @@ -1,208 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\Estudiante | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\EstudianteRepository") | |
12 | - * @ORM\Table(name="estudiante", indexes={@ORM\Index(name="fk_estudiante_persona1_idx", columns={"persona_id"}), @ORM\Index(name="fk_estudiante_aspirante_tipo1_idx", columns={"aspirante_tipo_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_estudiante_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class Estudiante | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="estudiante_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="boolean") | |
26 | - */ | |
27 | - protected $estatus; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="EstudianteDetalle", mappedBy="estudiante") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="estudiante_id", nullable=false) | |
32 | - */ | |
33 | - protected $estudianteDetalles; | |
34 | - | |
35 | - /** | |
36 | - * @ORM\OneToMany(targetEntity="Inscripcion", mappedBy="estudiante") | |
37 | - * @ORM\JoinColumn(name="id", referencedColumnName="estudiante_id", nullable=false) | |
38 | - */ | |
39 | - protected $inscripcions; | |
40 | - | |
41 | - /** | |
42 | - * @ORM\OneToOne(targetEntity="Persona", inversedBy="estudiante") | |
43 | - * @ORM\JoinColumn(name="persona_id", referencedColumnName="id", nullable=false) | |
44 | - */ | |
45 | - protected $persona; | |
46 | - | |
47 | - /** | |
48 | - * @ORM\ManyToOne(targetEntity="AspiranteTipo", inversedBy="estudiantes") | |
49 | - * @ORM\JoinColumn(name="aspirante_tipo_id", referencedColumnName="id", nullable=false) | |
50 | - */ | |
51 | - protected $aspiranteTipo; | |
52 | - | |
53 | - public function __construct() | |
54 | - { | |
55 | - $this->estudianteDetalles = new ArrayCollection(); | |
56 | - $this->inscripcions = new ArrayCollection(); | |
57 | - } | |
58 | - | |
59 | - public function __sleep() | |
60 | - { | |
61 | - return array('id', 'estatus', 'persona_id', 'aspirante_tipo_id'); | |
62 | - } | |
63 | - | |
64 | - /** | |
65 | - * Get id | |
66 | - * | |
67 | - * @return integer | |
68 | - */ | |
69 | - public function getId() | |
70 | - { | |
71 | - return $this->id; | |
72 | - } | |
73 | - | |
74 | - /** | |
75 | - * Set estatus | |
76 | - * | |
77 | - * @param boolean $estatus | |
78 | - * @return Estudiante | |
79 | - */ | |
80 | - public function setEstatus($estatus) | |
81 | - { | |
82 | - $this->estatus = $estatus; | |
83 | - | |
84 | - return $this; | |
85 | - } | |
86 | - | |
87 | - /** | |
88 | - * Get estatus | |
89 | - * | |
90 | - * @return boolean | |
91 | - */ | |
92 | - public function getEstatus() | |
93 | - { | |
94 | - return $this->estatus; | |
95 | - } | |
96 | - | |
97 | - /** | |
98 | - * Add estudianteDetalles | |
99 | - * | |
100 | - * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles | |
101 | - * @return Estudiante | |
102 | - */ | |
103 | - public function addEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles) | |
104 | - { | |
105 | - $this->estudianteDetalles[] = $estudianteDetalles; | |
106 | - | |
107 | - return $this; | |
108 | - } | |
109 | - | |
110 | - /** | |
111 | - * Remove estudianteDetalles | |
112 | - * | |
113 | - * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles | |
114 | - */ | |
115 | - public function removeEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles) | |
116 | - { | |
117 | - $this->estudianteDetalles->removeElement($estudianteDetalles); | |
118 | - } | |
119 | - | |
120 | - /** | |
121 | - * Get estudianteDetalles | |
122 | - * | |
123 | - * @return \Doctrine\Common\Collections\Collection | |
124 | - */ | |
125 | - public function getEstudianteDetalles() | |
126 | - { | |
127 | - return $this->estudianteDetalles; | |
128 | - } | |
129 | - | |
130 | - /** | |
131 | - * Add inscripcions | |
132 | - * | |
133 | - * @param \UBV\SurUbvBundle\Entity\Inscripcion $inscripcions | |
134 | - * @return Estudiante | |
135 | - */ | |
136 | - public function addInscripcion(\UBV\SurUbvBundle\Entity\Inscripcion $inscripcions) | |
137 | - { | |
138 | - $this->inscripcions[] = $inscripcions; | |
139 | - | |
140 | - return $this; | |
141 | - } | |
142 | - | |
143 | - /** | |
144 | - * Remove inscripcions | |
145 | - * | |
146 | - * @param \UBV\SurUbvBundle\Entity\Inscripcion $inscripcions | |
147 | - */ | |
148 | - public function removeInscripcion(\UBV\SurUbvBundle\Entity\Inscripcion $inscripcions) | |
149 | - { | |
150 | - $this->inscripcions->removeElement($inscripcions); | |
151 | - } | |
152 | - | |
153 | - /** | |
154 | - * Get inscripcions | |
155 | - * | |
156 | - * @return \Doctrine\Common\Collections\Collection | |
157 | - */ | |
158 | - public function getInscripcions() | |
159 | - { | |
160 | - return $this->inscripcions; | |
161 | - } | |
162 | - | |
163 | - /** | |
164 | - * Set persona | |
165 | - * | |
166 | - * @param \UBV\SurUbvBundle\Entity\Persona $persona | |
167 | - * @return Estudiante | |
168 | - */ | |
169 | - public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) | |
170 | - { | |
171 | - $this->persona = $persona; | |
172 | - | |
173 | - return $this; | |
174 | - } | |
175 | - | |
176 | - /** | |
177 | - * Get persona | |
178 | - * | |
179 | - * @return \UBV\SurUbvBundle\Entity\Persona | |
180 | - */ | |
181 | - public function getPersona() | |
182 | - { | |
183 | - return $this->persona; | |
184 | - } | |
185 | - | |
186 | - /** | |
187 | - * Set aspiranteTipo | |
188 | - * | |
189 | - * @param \UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo | |
190 | - * @return Estudiante | |
191 | - */ | |
192 | - public function setAspiranteTipo(\UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo) | |
193 | - { | |
194 | - $this->aspiranteTipo = $aspiranteTipo; | |
195 | - | |
196 | - return $this; | |
197 | - } | |
198 | - | |
199 | - /** | |
200 | - * Get aspiranteTipo | |
201 | - * | |
202 | - * @return \UBV\SurUbvBundle\Entity\AspiranteTipo | |
203 | - */ | |
204 | - public function getAspiranteTipo() | |
205 | - { | |
206 | - return $this->aspiranteTipo; | |
207 | - } | |
208 | -} |
src/UBV/PracticaBundle/Entity/EstudianteDetalle.php
... | ... | @@ -1,282 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\EstudianteDetalle | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\EstudianteDetalleRepository") | |
12 | - * @ORM\Table(name="estudiante_detalle", indexes={@ORM\Index(name="fk_estudiante_detalle_estudiante1_idx", columns={"estudiante_id"}), @ORM\Index(name="fk_estudiante_detalle_periodo_academico1_idx", columns={"periodo_academico_id"}), @ORM\Index(name="fk_estudiante_detalle_aldea_malla_curricula1_idx", columns={"aldea_malla_curricula_id"}), @ORM\Index(name="fk_estudiante_detalle_turno1_idx", columns={"turno_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_estudiante_detalle_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class EstudianteDetalle | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="estudiante_detalle_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=2) | |
26 | - */ | |
27 | - protected $estatus; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\Column(type="date") | |
31 | - */ | |
32 | - protected $fecha_ingreso; | |
33 | - | |
34 | - /** | |
35 | - * @ORM\Column(type="string", length=15) | |
36 | - */ | |
37 | - protected $numero_expediente; | |
38 | - | |
39 | - /** | |
40 | - * @ORM\OneToMany(targetEntity="ExpedienteDocumento", mappedBy="estudianteDetalle") | |
41 | - * @ORM\JoinColumn(name="id", referencedColumnName="estudiante_detalle_id", nullable=false) | |
42 | - */ | |
43 | - protected $expedienteDocumentos; | |
44 | - | |
45 | - /** | |
46 | - * @ORM\ManyToOne(targetEntity="Estudiante", inversedBy="estudianteDetalles") | |
47 | - * @ORM\JoinColumn(name="estudiante_id", referencedColumnName="id", nullable=false) | |
48 | - */ | |
49 | - protected $estudiante; | |
50 | - | |
51 | - /** | |
52 | - * @ORM\ManyToOne(targetEntity="PeriodoAcademico", inversedBy="estudianteDetalles") | |
53 | - * @ORM\JoinColumn(name="periodo_academico_id", referencedColumnName="id", nullable=false) | |
54 | - */ | |
55 | - protected $periodoAcademico; | |
56 | - | |
57 | - /** | |
58 | - * @ORM\ManyToOne(targetEntity="AldeaMallaCurricula", inversedBy="estudianteDetalles") | |
59 | - * @ORM\JoinColumn(name="aldea_malla_curricula_id", referencedColumnName="id", nullable=false) | |
60 | - */ | |
61 | - protected $aldeaMallaCurricula; | |
62 | - | |
63 | - /** | |
64 | - * @ORM\ManyToOne(targetEntity="Turno", inversedBy="estudianteDetalles") | |
65 | - * @ORM\JoinColumn(name="turno_id", referencedColumnName="id", nullable=false) | |
66 | - */ | |
67 | - protected $turno; | |
68 | - | |
69 | - public function __construct() | |
70 | - { | |
71 | - $this->expedienteDocumentos = new ArrayCollection(); | |
72 | - } | |
73 | - | |
74 | - public function __sleep() | |
75 | - { | |
76 | - return array('id', 'estatus', 'fecha_ingreso', 'numero_expediente', 'estudiante_id', 'periodo_academico_id', 'aldea_malla_curricula_id', 'turno_id'); | |
77 | - } | |
78 | - | |
79 | - /** | |
80 | - * Get id | |
81 | - * | |
82 | - * @return integer | |
83 | - */ | |
84 | - public function getId() | |
85 | - { | |
86 | - return $this->id; | |
87 | - } | |
88 | - | |
89 | - /** | |
90 | - * Set estatus | |
91 | - * | |
92 | - * @param string $estatus | |
93 | - * @return EstudianteDetalle | |
94 | - */ | |
95 | - public function setEstatus($estatus) | |
96 | - { | |
97 | - $this->estatus = $estatus; | |
98 | - | |
99 | - return $this; | |
100 | - } | |
101 | - | |
102 | - /** | |
103 | - * Get estatus | |
104 | - * | |
105 | - * @return string | |
106 | - */ | |
107 | - public function getEstatus() | |
108 | - { | |
109 | - return $this->estatus; | |
110 | - } | |
111 | - | |
112 | - /** | |
113 | - * Set fecha_ingreso | |
114 | - * | |
115 | - * @param \DateTime $fechaIngreso | |
116 | - * @return EstudianteDetalle | |
117 | - */ | |
118 | - public function setFechaIngreso($fechaIngreso) | |
119 | - { | |
120 | - $this->fecha_ingreso = $fechaIngreso; | |
121 | - | |
122 | - return $this; | |
123 | - } | |
124 | - | |
125 | - /** | |
126 | - * Get fecha_ingreso | |
127 | - * | |
128 | - * @return \DateTime | |
129 | - */ | |
130 | - public function getFechaIngreso() | |
131 | - { | |
132 | - return $this->fecha_ingreso; | |
133 | - } | |
134 | - | |
135 | - /** | |
136 | - * Set numero_expediente | |
137 | - * | |
138 | - * @param string $numeroExpediente | |
139 | - * @return EstudianteDetalle | |
140 | - */ | |
141 | - public function setNumeroExpediente($numeroExpediente) | |
142 | - { | |
143 | - $this->numero_expediente = $numeroExpediente; | |
144 | - | |
145 | - return $this; | |
146 | - } | |
147 | - | |
148 | - /** | |
149 | - * Get numero_expediente | |
150 | - * | |
151 | - * @return string | |
152 | - */ | |
153 | - public function getNumeroExpediente() | |
154 | - { | |
155 | - return $this->numero_expediente; | |
156 | - } | |
157 | - | |
158 | - /** | |
159 | - * Add expedienteDocumentos | |
160 | - * | |
161 | - * @param \UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos | |
162 | - * @return EstudianteDetalle | |
163 | - */ | |
164 | - public function addExpedienteDocumento(\UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos) | |
165 | - { | |
166 | - $this->expedienteDocumentos[] = $expedienteDocumentos; | |
167 | - | |
168 | - return $this; | |
169 | - } | |
170 | - | |
171 | - /** | |
172 | - * Remove expedienteDocumentos | |
173 | - * | |
174 | - * @param \UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos | |
175 | - */ | |
176 | - public function removeExpedienteDocumento(\UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos) | |
177 | - { | |
178 | - $this->expedienteDocumentos->removeElement($expedienteDocumentos); | |
179 | - } | |
180 | - | |
181 | - /** | |
182 | - * Get expedienteDocumentos | |
183 | - * | |
184 | - * @return \Doctrine\Common\Collections\Collection | |
185 | - */ | |
186 | - public function getExpedienteDocumentos() | |
187 | - { | |
188 | - return $this->expedienteDocumentos; | |
189 | - } | |
190 | - | |
191 | - /** | |
192 | - * Set estudiante | |
193 | - * | |
194 | - * @param \UBV\SurUbvBundle\Entity\Estudiante $estudiante | |
195 | - * @return EstudianteDetalle | |
196 | - */ | |
197 | - public function setEstudiante(\UBV\SurUbvBundle\Entity\Estudiante $estudiante) | |
198 | - { | |
199 | - $this->estudiante = $estudiante; | |
200 | - | |
201 | - return $this; | |
202 | - } | |
203 | - | |
204 | - /** | |
205 | - * Get estudiante | |
206 | - * | |
207 | - * @return \UBV\SurUbvBundle\Entity\Estudiante | |
208 | - */ | |
209 | - public function getEstudiante() | |
210 | - { | |
211 | - return $this->estudiante; | |
212 | - } | |
213 | - | |
214 | - /** | |
215 | - * Set periodoAcademico | |
216 | - * | |
217 | - * @param \UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademico | |
218 | - * @return EstudianteDetalle | |
219 | - */ | |
220 | - public function setPeriodoAcademico(\UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademico) | |
221 | - { | |
222 | - $this->periodoAcademico = $periodoAcademico; | |
223 | - | |
224 | - return $this; | |
225 | - } | |
226 | - | |
227 | - /** | |
228 | - * Get periodoAcademico | |
229 | - * | |
230 | - * @return \UBV\SurUbvBundle\Entity\PeriodoAcademico | |
231 | - */ | |
232 | - public function getPeriodoAcademico() | |
233 | - { | |
234 | - return $this->periodoAcademico; | |
235 | - } | |
236 | - | |
237 | - /** | |
238 | - * Set aldeaMallaCurricula | |
239 | - * | |
240 | - * @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurricula | |
241 | - * @return EstudianteDetalle | |
242 | - */ | |
243 | - public function setAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurricula) | |
244 | - { | |
245 | - $this->aldeaMallaCurricula = $aldeaMallaCurricula; | |
246 | - | |
247 | - return $this; | |
248 | - } | |
249 | - | |
250 | - /** | |
251 | - * Get aldeaMallaCurricula | |
252 | - * | |
253 | - * @return \UBV\SurUbvBundle\Entity\AldeaMallaCurricula | |
254 | - */ | |
255 | - public function getAldeaMallaCurricula() | |
256 | - { | |
257 | - return $this->aldeaMallaCurricula; | |
258 | - } | |
259 | - | |
260 | - /** | |
261 | - * Set turno | |
262 | - * | |
263 | - * @param \UBV\SurUbvBundle\Entity\Turno $turno | |
264 | - * @return EstudianteDetalle | |
265 | - */ | |
266 | - public function setTurno(\UBV\SurUbvBundle\Entity\Turno $turno) | |
267 | - { | |
268 | - $this->turno = $turno; | |
269 | - | |
270 | - return $this; | |
271 | - } | |
272 | - | |
273 | - /** | |
274 | - * Get turno | |
275 | - * | |
276 | - * @return \UBV\SurUbvBundle\Entity\Turno | |
277 | - */ | |
278 | - public function getTurno() | |
279 | - { | |
280 | - return $this->turno; | |
281 | - } | |
282 | -} |
src/UBV/PracticaBundle/Entity/EstudianteDetalleRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * EstudianteDetalleRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class EstudianteDetalleRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/EstudianteDocumento.php
... | ... | @@ -1,334 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | -use Symfony\Component\HttpFoundation\File\UploadedFile; | |
8 | -use Symfony\Component\HttpFoundation\File\File; | |
9 | - | |
10 | - | |
11 | -use Symfony\Component\Validator\Constraints as Assert; | |
12 | - | |
13 | -/** | |
14 | - * UBV\SurUbvBundle\Entity\EstudianteDocumento | |
15 | - * | |
16 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\EstudianteDocumentoRepository") | |
17 | - * @ORM\HasLifecycleCallbacks | |
18 | - * @ORM\Table(name="estudiante_documento", indexes={@ORM\Index(name="fk_estudiante_documento_requisito_inscripcion1_idx", columns={"requisito_inscripcion_id"}), @ORM\Index(name="fk_estudiante_documento_persona1_idx", columns={"persona_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_estudiante_documento_unique_UNIQUE", columns={"id"})}) | |
19 | - */ | |
20 | -class EstudianteDocumento | |
21 | -{ | |
22 | - /** | |
23 | - * @ORM\Id | |
24 | - * @ORM\Column(type="integer") | |
25 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
26 | - * @ORM\SequenceGenerator(sequenceName="estudiante_documento_id_seq", allocationSize=1, initialValue=1) | |
27 | - */ | |
28 | - protected $id; | |
29 | - | |
30 | - /** | |
31 | - * @ORM\Column(type="string", length=200, nullable=true) | |
32 | - */ | |
33 | - protected $ruta_documento; | |
34 | - | |
35 | - /** | |
36 | - * @ORM\Column(type="boolean", nullable=false) | |
37 | - */ | |
38 | - protected $estatus = false; | |
39 | - | |
40 | - /** | |
41 | - * @Assert\NotNull(message= "Por favor cargue un Documento", groups={"Default"}) | |
42 | - * @Assert\NotBlank( message= "Por favor cargue un Documento", groups={"Default"}) | |
43 | - * @Assert\File( | |
44 | - * maxSize = "1024k", | |
45 | - * mimeTypes = { | |
46 | - * "image/png", | |
47 | - * "image/jpeg", | |
48 | - * "image/jpg", | |
49 | - * "application/pdf", | |
50 | - * "application/x-pdf"}, | |
51 | - * mimeTypesMessage = "Por favor cargue un archivo valido (pdf,jpg,png)" | |
52 | - * ) | |
53 | - */ | |
54 | - private $file; | |
55 | - | |
56 | - private $temp; | |
57 | - | |
58 | - /** | |
59 | - * @ORM\OneToMany(targetEntity="ExpedienteDocumento", mappedBy="estudianteDocumento") | |
60 | - * @ORM\JoinColumn(name="id", referencedColumnName="estudiante_documento_id", nullable=false) | |
61 | - */ | |
62 | - protected $expedienteDocumentos; | |
63 | - | |
64 | - /** | |
65 | - * @ORM\ManyToOne(targetEntity="RequisitoInscripcion", inversedBy="estudianteDocumentos") | |
66 | - * @ORM\JoinColumn(name="requisito_inscripcion_id", referencedColumnName="id", nullable=false) | |
67 | - * @Assert\Valid | |
68 | - */ | |
69 | - protected $requisitoInscripcion; | |
70 | - | |
71 | - /** | |
72 | - * @ORM\ManyToOne(targetEntity="Persona", inversedBy="estudianteDocumentos") | |
73 | - * @ORM\JoinColumn(name="persona_id", referencedColumnName="id", nullable=false) | |
74 | - */ | |
75 | - protected $persona; | |
76 | - | |
77 | - public function __construct() | |
78 | - { | |
79 | - $this->expedienteDocumentos = new ArrayCollection(); | |
80 | - } | |
81 | - | |
82 | - public function __sleep() | |
83 | - { | |
84 | - return array('id', 'ruta_documento', 'requisito_inscripcion_id', 'persona_id'); | |
85 | - } | |
86 | - | |
87 | - /** | |
88 | - * Get id | |
89 | - * | |
90 | - * @return integer | |
91 | - */ | |
92 | - public function getId() | |
93 | - { | |
94 | - return $this->id; | |
95 | - } | |
96 | - | |
97 | - /** | |
98 | - * Set ruta_documento | |
99 | - * | |
100 | - * @param string $rutaDocumento | |
101 | - * @return EstudianteDocumento | |
102 | - */ | |
103 | - public function setRutaDocumento($rutaDocumento) | |
104 | - { | |
105 | - $this->ruta_documento = $rutaDocumento; | |
106 | - | |
107 | - return $this; | |
108 | - } | |
109 | - | |
110 | - /** | |
111 | - * Get ruta_documento | |
112 | - * | |
113 | - * @return string | |
114 | - */ | |
115 | - public function getRutaDocumento() | |
116 | - { | |
117 | - return $this->ruta_documento; | |
118 | - } | |
119 | - | |
120 | - /** | |
121 | - * Add expedienteDocumentos | |
122 | - * | |
123 | - * @param \UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos | |
124 | - * @return EstudianteDocumento | |
125 | - */ | |
126 | - public function addExpedienteDocumento(\UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos) | |
127 | - { | |
128 | - $this->expedienteDocumentos[] = $expedienteDocumentos; | |
129 | - | |
130 | - return $this; | |
131 | - } | |
132 | - | |
133 | - /** | |
134 | - * Remove expedienteDocumentos | |
135 | - * | |
136 | - * @param \UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos | |
137 | - */ | |
138 | - public function removeExpedienteDocumento(\UBV\SurUbvBundle\Entity\ExpedienteDocumento $expedienteDocumentos) | |
139 | - { | |
140 | - $this->expedienteDocumentos->removeElement($expedienteDocumentos); | |
141 | - } | |
142 | - | |
143 | - /** | |
144 | - * Get expedienteDocumentos | |
145 | - * | |
146 | - * @return \Doctrine\Common\Collections\Collection | |
147 | - */ | |
148 | - public function getExpedienteDocumentos() | |
149 | - { | |
150 | - return $this->expedienteDocumentos; | |
151 | - } | |
152 | - | |
153 | - /** | |
154 | - * Set requisitoInscripcion | |
155 | - * | |
156 | - * @param \UBV\SurUbvBundle\Entity\RequisitoInscripcion $requisitoInscripcion | |
157 | - * @return EstudianteDocumento | |
158 | - */ | |
159 | - public function setRequisitoInscripcion(\UBV\SurUbvBundle\Entity\RequisitoInscripcion $requisitoInscripcion) | |
160 | - { | |
161 | - $this->requisitoInscripcion = $requisitoInscripcion; | |
162 | - | |
163 | - return $this; | |
164 | - } | |
165 | - | |
166 | - /** | |
167 | - * Get requisitoInscripcion | |
168 | - * | |
169 | - * @return \UBV\SurUbvBundle\Entity\RequisitoInscripcion | |
170 | - */ | |
171 | - public function getRequisitoInscripcion() | |
172 | - { | |
173 | - return $this->requisitoInscripcion; | |
174 | - } | |
175 | - | |
176 | - /** | |
177 | - * Set persona | |
178 | - * | |
179 | - * @param \UBV\SurUbvBundle\Entity\Persona $persona | |
180 | - * @return EstudianteDocumento | |
181 | - */ | |
182 | - public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) | |
183 | - { | |
184 | - $this->persona = $persona; | |
185 | - | |
186 | - return $this; | |
187 | - } | |
188 | - | |
189 | - /** | |
190 | - * Get persona | |
191 | - * | |
192 | - * @return \UBV\SurUbvBundle\Entity\Persona | |
193 | - */ | |
194 | - public function getPersona() | |
195 | - { | |
196 | - return $this->persona; | |
197 | - } | |
198 | - | |
199 | - /** | |
200 | - * Sets file. | |
201 | - * | |
202 | - * @param UploadedFile $file | |
203 | - */ | |
204 | - public function setFile(UploadedFile $file = null) { | |
205 | - $this->file = $file; | |
206 | - | |
207 | - // check if we have an old image path | |
208 | - if (isset($this->ruta_documento)) { | |
209 | - // store the old name to delete after the update | |
210 | - $this->temp = $this->ruta_documento; | |
211 | - $this->ruta_documento = null; | |
212 | - } else { | |
213 | - $this->ruta_documento = 'initial'; | |
214 | - } | |
215 | - } | |
216 | - | |
217 | - /** | |
218 | - * Get file. | |
219 | - * | |
220 | - * @return UploadedFile | |
221 | - */ | |
222 | - public function getFile() { | |
223 | - return $this->file; | |
224 | - } | |
225 | - | |
226 | - public function getAbsolutePath() { | |
227 | - return null === $this->ruta_documento ? null : $this->getUploadRootDir() . '/' . $this->ruta_documento; | |
228 | - } | |
229 | - | |
230 | - public function getWebPath() { | |
231 | - return null === $this->ruta_documento ? null : $this->getUploadDir() . '/' . $this->ruta_documento; | |
232 | - } | |
233 | - | |
234 | - protected function getUploadRootDir() { | |
235 | - // la ruta absoluta del directorio donde se deben | |
236 | - // guardar los archivos cargados | |
237 | - return __DIR__ . '/../../../../web/' . $this->getUploadDir(); | |
238 | - } | |
239 | - | |
240 | - protected function getUploadDir() { | |
241 | - // se deshace del __DIR__ para no meter la pata | |
242 | - // al mostrar el documento/imagen cargada en la vista. | |
243 | - | |
244 | - return 'uploads/Documentos/'.$persona = $this->getPersona()->getId().'/Estudiante'; | |
245 | - } | |
246 | - | |
247 | - /** | |
248 | - * @ORM\PrePersist() | |
249 | - * @ORM\PreUpdate() | |
250 | - */ | |
251 | - public function preUpload() { | |
252 | - if (null !== $this->getFile()) { | |
253 | - | |
254 | - // haz lo que quieras para generar un nombre รบnico | |
255 | - //$filename = sha1(uniqid(mt_rand(), true)); | |
256 | - | |
257 | - if($this->getRequisitoInscripcion() === "Propuesta de Investigaciรณn"){ | |
258 | - $filename = $this->getFile()->getClientOriginalName(); | |
259 | - }else{ | |
260 | - $filename = $this->getRequisitoInscripcion(); | |
261 | - } | |
262 | - | |
263 | - //$filename = md5(uniqid()); | |
264 | - | |
265 | - $existe = file_exists($this->getUploadDir() . "/" . $filename . "." . $this->getFile()->guessExtension()); | |
266 | - | |
267 | - | |
268 | - if ($existe == true) { | |
269 | - //die("esxiste"); | |
270 | - $this->ruta_documento = $filename . '_' . sha1(uniqid(mt_rand(), true)) . '.' . $this->getFile()->guessExtension(); | |
271 | - } else { | |
272 | - $this->ruta_documento = $filename . '.' . $this->getFile()->guessExtension(); | |
273 | - } | |
274 | - } | |
275 | - } | |
276 | - | |
277 | - /** | |
278 | - * @ORM\PostPersist() | |
279 | - * @ORM\PostUpdate() | |
280 | - */ | |
281 | - public function upload() { | |
282 | - // the file property can be empty if the field is not required | |
283 | - if (null === $this->getFile()) { | |
284 | - return; | |
285 | - } | |
286 | - | |
287 | - // si hay un error al mover el archivo, move() automรกticamente | |
288 | - // envรญa una excepciรณn. This will properly prevent | |
289 | - // the entity from being persisted to the database on error | |
290 | - $this->getFile()->move($this->getUploadRootDir(), $this->ruta_documento); | |
291 | - | |
292 | - // check if we have an old image | |
293 | - if (isset($this->temp)) { | |
294 | - // delete the old image | |
295 | - unlink($this->getUploadRootDir() . '/' . $this->temp); | |
296 | - // clear the temp image path | |
297 | - $this->temp = null; | |
298 | - } | |
299 | - $this->file = null; | |
300 | - } | |
301 | - | |
302 | - /** | |
303 | - * @ORM\PostRemove() | |
304 | - */ | |
305 | - public function removeUpload() { | |
306 | - if ($file = $this->getAbsolutePath()) { | |
307 | - unlink($file); | |
308 | - } | |
309 | - } | |
310 | - | |
311 | - | |
312 | - /** | |
313 | - * Set estatus | |
314 | - * | |
315 | - * @param boolean $estatus | |
316 | - * @return EstudianteDocumento | |
317 | - */ | |
318 | - public function setEstatus($estatus) | |
319 | - { | |
320 | - $this->estatus = $estatus; | |
321 | - | |
322 | - return $this; | |
323 | - } | |
324 | - | |
325 | - /** | |
326 | - * Get estatus | |
327 | - * | |
328 | - * @return boolean | |
329 | - */ | |
330 | - public function getEstatus() | |
331 | - { | |
332 | - return $this->estatus; | |
333 | - } | |
334 | -} |
src/UBV/PracticaBundle/Entity/EstudianteDocumentoRepository.php
... | ... | @@ -1,146 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | -use Doctrine\ORM\Query\Expr\Join; | |
7 | -use Doctrine\ORM\Query; | |
8 | -/** | |
9 | - * EstudianteDocumentoRepository | |
10 | - * | |
11 | - * This class was generated by the Doctrine ORM. Add your own custom | |
12 | - * repository methods below. | |
13 | - */ | |
14 | -class EstudianteDocumentoRepository extends EntityRepository | |
15 | -{ | |
16 | - | |
17 | - public function findDocumentosByPersona($personaId) { | |
18 | - | |
19 | - //die("estoy en la funcion"); | |
20 | - $em = $this->getEntityManager(); | |
21 | - | |
22 | - $result = $em->createQueryBuilder(); | |
23 | - | |
24 | - $dql = $result->select('documentos') | |
25 | - ->from('UBVSurUbvBundle:EstudianteDocumento', 'documentos') | |
26 | - ->Join('documentos.persona', 'persona', 'persona.id = documentos.persona_id') | |
27 | - //->Join('documentos.tipoPrograma', 'tipoPrograma', 'tipoPrograma.id = documentos.tipoPrograma_id') | |
28 | - ->where('persona.id = :personaId') | |
29 | - //->Andwhere('tipoPrograma.id = :tipoPrograma') | |
30 | - //->setParameter('tipoPrograma', $programaTipo) | |
31 | - ->setParameter('personaId', $personaId) | |
32 | - ->getQuery()->getResult(Query::HYDRATE_ARRAY); | |
33 | - | |
34 | - //die(var_dump($dql)); | |
35 | - return $dql; | |
36 | - } | |
37 | - | |
38 | - public function findDocumentosByAspiranteId($aspiranteId) { | |
39 | - | |
40 | - //die("estoy en la funcion"); | |
41 | - $em = $this->getEntityManager(); | |
42 | - | |
43 | - $result = $em->createQueryBuilder(); | |
44 | - | |
45 | - $dql = $result->select('persona as Persona', | |
46 | - 'nacionalidad as Nacionalaidad ', | |
47 | - 'nacionalidadPersona as NacionalaidadPersona', | |
48 | - 'documentoIdentidad as Documentoidentidad', | |
49 | - 'genero as Genero', | |
50 | - 'estadoCivil as estadoCivilPersona', | |
51 | - 'telefonos as PersonaTelefonos','telefonoCodigoArea','telefonoTipo', | |
52 | - 'correos','correoTipo', | |
53 | - 'aspirantes', 'aspiranteEstatus','aspiranteTipo', | |
54 | - 'programa','programaTipo','programaNivel','aldea','aldeaTipo','programaRequisito','documentos','requisitos', | |
55 | - 'groups') | |
56 | - ->from('UBVSurUbvBundle:Persona', 'persona') | |
57 | - ->Join('persona.personaNacionalidads', 'nacionalidad', 'persona.id = nacionalidad.persona_id') | |
58 | - ->Join('persona.genero', 'genero', 'persona.id = genero.persona_id') | |
59 | - ->Join('persona.estadoCivil', 'estadoCivil', 'persona.id = estadoCivil.persona_id') | |
60 | - ->Join('persona.groups', 'groups', 'persona.id = groups.persona_id') | |
61 | - ->LeftJoin('persona.personaCorreos', 'correos', 'persona.id = correos.persona_id') | |
62 | - ->LeftJoin('persona.estudianteDocumentos', 'documentos', 'persona.id = documentos.persona_id') | |
63 | - ->LeftJoin('documentos.requisitoInscripcion', 'requisitos', 'documentos.requisito_inscripcion_id = requisitos.id') | |
64 | - ->LeftJoin('persona.aspirantes', 'aspirantes', 'persona.id = aspirantes.persona_id') | |
65 | - ->LeftJoin('aspirantes.programa', 'programa', 'aspirantes.id = programa.aspirante_id') | |
66 | - ->LeftJoin('programa.requisitoInscripcions', 'programaRequisito', 'programa.id = programaRequisito.programa_id') | |
67 | - ->LeftJoin('aspirantes.aspiranteEstatus', 'aspiranteEstatus', 'aspirantes.id = aspiranteEstatus.aspirante_id') | |
68 | - ->LeftJoin('aspirantes.aspiranteTipo', 'aspiranteTipo', 'aspirantes.id = aspiranteTipo.aspirante_id') | |
69 | - ->LeftJoin('aspirantes.aldea', 'aldea', 'aspirantes.id = aldea.aspirante_id') | |
70 | - ->LeftJoin('aldea.aldeaTipo', 'aldeaTipo', 'aldea.id = aldeaTipo.aldea_id') | |
71 | - ->LeftJoin('programa.programaTipo', 'programaTipo', 'programa.id = programaTipo.programa_id') | |
72 | - ->LeftJoin('programaTipo.programaNivel', 'programaNivel', 'programaTipo.id = programanivel.programa_id') | |
73 | - ->leftJoin('persona.personaTelefonos', 'telefonos', 'persona.id = telefonos.persona_id') | |
74 | - ->LeftJoin('correos.correoTipo', 'correoTipo', 'correoTipo.id = correo.correo_tipo_id') | |
75 | - ->LeftJoin('telefonos.telefonoCodigoArea', 'telefonoCodigoArea', 'telefonoCodigoArea.id = telefono.telefono_codigo_area_id') | |
76 | - ->LeftJoin('telefonoCodigoArea.telefonoTipo', 'telefonoTipo', 'telefonoCodigoArea.id = telefonoTipo.telefono_codigo_area_id') | |
77 | - ->Join('nacionalidad.documentoIdentidadTipo', 'documentoIdentidad', 'nacionalidad.documento_identidad_tipo_id = documentoIdentidad.id') | |
78 | - ->Join('nacionalidad.nacionalidad', 'nacionalidadPersona', 'nacionalidad.nacionalidad_id = nacionalidadPersona.id') | |
79 | - ->where('aspirantes.id = :aspiranteId') | |
80 | - ->Andwhere('nacionalidad.estatus = :estatusNacionalidad') | |
81 | - ->setParameter('aspiranteId', $aspiranteId) | |
82 | - ->setParameter('estatusNacionalidad', true) | |
83 | - | |
84 | - ->getQuery() | |
85 | - ->getSingleResult(Query::HYDRATE_ARRAY); | |
86 | - | |
87 | -// $dql = $result->select('documentos','persona','aspirante') | |
88 | -// ->from('UBVSurUbvBundle:EstudianteDocumento', 'documentos') | |
89 | -// ->Join('documentos.persona', 'persona', 'persona.id = documentos.persona_id') | |
90 | -// ->Join('persona.aspirantes', 'aspirante', 'persona.id = aspirante.persona_id') | |
91 | -// ->Join('documentos.requisitoInscripcion', 'requisito', 'documentos.requisito_inscripcion_id = requisito.id') | |
92 | -// ->Join('requisito.programas', 'requisitoPrograma', 'requisito.id = requisitoPrograma.requisito_inscripcion_id') | |
93 | -// //->Join('requisito.programas', 'requisitoPrograma', 'requisito.id = requisitoPrograma.requisito_inscripcion_id') | |
94 | -// //->Join('documentos.tipoPrograma', 'tipoPrograma', 'tipoPrograma.id = documentos.tipoPrograma_id') | |
95 | -// ->where('aspirante.id = :aspiranteId') | |
96 | -// ->Andwhere('requisitoPrograma.id = aspirante.programa') | |
97 | -// //->setParameter('tipoPrograma', $programaTipo) | |
98 | -// ->setParameter('aspiranteId', $aspiranteId) | |
99 | -// ->orderBy('documentos.id','ASC') | |
100 | -// ->getQuery()->getResult(Query::HYDRATE_ARRAY); | |
101 | - | |
102 | - //die(dump($dql)); | |
103 | - return $dql; | |
104 | - | |
105 | -// $dql = $result->select('documentos.id as id, documentos.ruta_documento as ruta_documento, documentos.estatus as estatus', | |
106 | -// 'persona.primer_nombre as primer_nombre, persona.segundo_nombre as segundo_nombre, persona.primer_apellido as primer_apellido, persona.segundo_apellido as segundo_apellido') | |
107 | -// ->from('UBVSurUbvBundle:EstudianteDocumento', 'documentos') | |
108 | -// ->Join('documentos.persona', 'persona', 'persona.id = documentos.persona_id') | |
109 | -// ->Join('persona.aspirantes', 'aspirante', 'persona.id = aspirante.persona_id') | |
110 | -// //->Join('documentos.tipoPrograma', 'tipoPrograma', 'tipoPrograma.id = documentos.tipoPrograma_id') | |
111 | -// ->where('aspirante.id = :aspiranteId') | |
112 | -// //->Andwhere('tipoPrograma.id = :tipoPrograma') | |
113 | -// //->setParameter('tipoPrograma', $programaTipo) | |
114 | -// ->setParameter('aspiranteId', $aspiranteId) | |
115 | -// ->orderBy('documentos.id','ASC') | |
116 | -// ->getQuery()->getResult(Query::HYDRATE_ARRAY); | |
117 | -//// | |
118 | -//// //die(dump($dql)); | |
119 | -// return $dql; | |
120 | - } | |
121 | - | |
122 | - public function findDocumentosAndAspiranteIdById($documentoId) { | |
123 | - | |
124 | - //die("estoy en la funcion"); | |
125 | - $em = $this->getEntityManager(); | |
126 | - | |
127 | - $result = $em->createQueryBuilder(); | |
128 | - | |
129 | - $dql = $result->select('documentos as ObjetoDocumento', | |
130 | - 'persona.primer_nombre as primer_nombre, persona.segundo_nombre as segundo_nombre, persona.primer_apellido as primer_apellido, persona.segundo_apellido as segundo_apellido', | |
131 | - 'aspirante.id as AspiranteId') | |
132 | - ->from('UBVSurUbvBundle:EstudianteDocumento', 'documentos') | |
133 | - ->Join('documentos.persona', 'persona', 'persona.id = documentos.persona_id') | |
134 | - ->Join('persona.aspirantes', 'aspirante', 'persona.id = aspirante.persona_id') | |
135 | - //->Join('documentos.tipoPrograma', 'tipoPrograma', 'tipoPrograma.id = documentos.tipoPrograma_id') | |
136 | - ->where('documentos.id = :documentoId') | |
137 | - //->Andwhere('tipoPrograma.id = :tipoPrograma') | |
138 | - //->setParameter('tipoPrograma', $programaTipo) | |
139 | - ->setParameter('documentoId', $documentoId) | |
140 | - ->orderBy('documentos.id','ASC') | |
141 | - ->getQuery()->getResult(); | |
142 | - | |
143 | - //die(dump($dql)); | |
144 | - return $dql; | |
145 | - } | |
146 | -} |
src/UBV/PracticaBundle/Entity/EstudianteRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * EstudianteRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class EstudianteRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/Etnia.php
... | ... | @@ -1,155 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\Etnia | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\EtniaRepository") | |
12 | - * @ORM\Table(name="etnia", uniqueConstraints={@ORM\UniqueConstraint(name="id_etnia_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class Etnia | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="etnia_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=35) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="PersonaEtnia", mappedBy="etnia") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="etnia_id", nullable=false) | |
32 | - */ | |
33 | - protected $personaEtnias; | |
34 | - | |
35 | - /** | |
36 | - * @ORM\OneToMany(targetEntity="Candidato", mappedBy="etnia") | |
37 | - * @ORM\JoinColumn(name="id", referencedColumnName="etnia_id", nullable=false) | |
38 | - */ | |
39 | - protected $candidatos; | |
40 | - | |
41 | - public function __construct() | |
42 | - { | |
43 | - $this->personaEtnias = new ArrayCollection(); | |
44 | - $this->candidatos = new ArrayCollection(); | |
45 | - } | |
46 | - | |
47 | - public function __sleep() | |
48 | - { | |
49 | - return array('id', 'descripcion'); | |
50 | - } | |
51 | - | |
52 | - /** | |
53 | - * Get id | |
54 | - * | |
55 | - * @return integer | |
56 | - */ | |
57 | - public function getId() | |
58 | - { | |
59 | - return $this->id; | |
60 | - } | |
61 | - | |
62 | - /** | |
63 | - * Set descripcion | |
64 | - * | |
65 | - * @param string $descripcion | |
66 | - * @return Etnia | |
67 | - */ | |
68 | - public function setDescripcion($descripcion) | |
69 | - { | |
70 | - $this->descripcion = $descripcion; | |
71 | - | |
72 | - return $this; | |
73 | - } | |
74 | - | |
75 | - /** | |
76 | - * Get descripcion | |
77 | - * | |
78 | - * @return string | |
79 | - */ | |
80 | - public function getDescripcion() | |
81 | - { | |
82 | - return $this->descripcion; | |
83 | - } | |
84 | - | |
85 | - /** | |
86 | - * Add personaEtnias | |
87 | - * | |
88 | - * @param \UBV\SurUbvBundle\Entity\PersonaEtnia $personaEtnias | |
89 | - * @return Etnia | |
90 | - */ | |
91 | - public function addPersonaEtnia(\UBV\SurUbvBundle\Entity\PersonaEtnia $personaEtnias) | |
92 | - { | |
93 | - $this->personaEtnias[] = $personaEtnias; | |
94 | - | |
95 | - return $this; | |
96 | - } | |
97 | - | |
98 | - /** | |
99 | - * Remove personaEtnias | |
100 | - * | |
101 | - * @param \UBV\SurUbvBundle\Entity\PersonaEtnia $personaEtnias | |
102 | - */ | |
103 | - public function removePersonaEtnia(\UBV\SurUbvBundle\Entity\PersonaEtnia $personaEtnias) | |
104 | - { | |
105 | - $this->personaEtnias->removeElement($personaEtnias); | |
106 | - } | |
107 | - | |
108 | - /** | |
109 | - * Get personaEtnias | |
110 | - * | |
111 | - * @return \Doctrine\Common\Collections\Collection | |
112 | - */ | |
113 | - public function getPersonaEtnias() | |
114 | - { | |
115 | - return $this->personaEtnias; | |
116 | - } | |
117 | - | |
118 | - public function __toString() | |
119 | - { | |
120 | - return $this->getDescripcion(); | |
121 | - } | |
122 | - | |
123 | - /** | |
124 | - * Add candidatos | |
125 | - * | |
126 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
127 | - * @return Etnia | |
128 | - */ | |
129 | - public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
130 | - { | |
131 | - $this->candidatos[] = $candidatos; | |
132 | - | |
133 | - return $this; | |
134 | - } | |
135 | - | |
136 | - /** | |
137 | - * Remove candidatos | |
138 | - * | |
139 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
140 | - */ | |
141 | - public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
142 | - { | |
143 | - $this->candidatos->removeElement($candidatos); | |
144 | - } | |
145 | - | |
146 | - /** | |
147 | - * Get candidatos | |
148 | - * | |
149 | - * @return \Doctrine\Common\Collections\Collection | |
150 | - */ | |
151 | - public function getCandidatos() | |
152 | - { | |
153 | - return $this->candidatos; | |
154 | - } | |
155 | -} |
src/UBV/PracticaBundle/Entity/EtniaRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * EtniaRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class EtniaRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/ExpedienteDocumento.php
... | ... | @@ -1,99 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | - | |
7 | -/** | |
8 | - * UBV\SurUbvBundle\Entity\ExpedienteDocumento | |
9 | - * | |
10 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\ExpedienteDocumentoRepository") | |
11 | - * @ORM\Table(name="expediente_documento", indexes={@ORM\Index(name="fk_expediente_documento_estudiante_documento1_idx", columns={"estudiante_documento_id"}), @ORM\Index(name="fk_expediente_documento_estudiante_detalle1_idx", columns={"estudiante_detalle_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_expediente_documento_UNIQUE", columns={"id"})}) | |
12 | - */ | |
13 | -class ExpedienteDocumento | |
14 | -{ | |
15 | - /** | |
16 | - * @ORM\Id | |
17 | - * @ORM\Column(type="integer") | |
18 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
19 | - * @ORM\SequenceGenerator(sequenceName="expediente_documento_id_seq", allocationSize=1, initialValue=1) | |
20 | - */ | |
21 | - protected $id; | |
22 | - | |
23 | - /** | |
24 | - * @ORM\ManyToOne(targetEntity="EstudianteDocumento", inversedBy="expedienteDocumentos") | |
25 | - * @ORM\JoinColumn(name="estudiante_documento_id", referencedColumnName="id", nullable=false) | |
26 | - */ | |
27 | - protected $estudianteDocumento; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\ManyToOne(targetEntity="EstudianteDetalle", inversedBy="expedienteDocumentos") | |
31 | - * @ORM\JoinColumn(name="estudiante_detalle_id", referencedColumnName="id", nullable=false) | |
32 | - */ | |
33 | - protected $estudianteDetalle; | |
34 | - | |
35 | - public function __construct() | |
36 | - { | |
37 | - } | |
38 | - | |
39 | - public function __sleep() | |
40 | - { | |
41 | - return array('id', 'estudiante_documento_id', 'estudiante_detalle_id'); | |
42 | - } | |
43 | - | |
44 | - /** | |
45 | - * Get id | |
46 | - * | |
47 | - * @return integer | |
48 | - */ | |
49 | - public function getId() | |
50 | - { | |
51 | - return $this->id; | |
52 | - } | |
53 | - | |
54 | - /** | |
55 | - * Set estudianteDocumento | |
56 | - * | |
57 | - * @param \UBV\SurUbvBundle\Entity\EstudianteDocumento $estudianteDocumento | |
58 | - * @return ExpedienteDocumento | |
59 | - */ | |
60 | - public function setEstudianteDocumento(\UBV\SurUbvBundle\Entity\EstudianteDocumento $estudianteDocumento) | |
61 | - { | |
62 | - $this->estudianteDocumento = $estudianteDocumento; | |
63 | - | |
64 | - return $this; | |
65 | - } | |
66 | - | |
67 | - /** | |
68 | - * Get estudianteDocumento | |
69 | - * | |
70 | - * @return \UBV\SurUbvBundle\Entity\EstudianteDocumento | |
71 | - */ | |
72 | - public function getEstudianteDocumento() | |
73 | - { | |
74 | - return $this->estudianteDocumento; | |
75 | - } | |
76 | - | |
77 | - /** | |
78 | - * Set estudianteDetalle | |
79 | - * | |
80 | - * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalle | |
81 | - * @return ExpedienteDocumento | |
82 | - */ | |
83 | - public function setEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalle) | |
84 | - { | |
85 | - $this->estudianteDetalle = $estudianteDetalle; | |
86 | - | |
87 | - return $this; | |
88 | - } | |
89 | - | |
90 | - /** | |
91 | - * Get estudianteDetalle | |
92 | - * | |
93 | - * @return \UBV\SurUbvBundle\Entity\EstudianteDetalle | |
94 | - */ | |
95 | - public function getEstudianteDetalle() | |
96 | - { | |
97 | - return $this->estudianteDetalle; | |
98 | - } | |
99 | -} |
src/UBV/PracticaBundle/Entity/ExpedienteDocumentoRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * ExpedienteDocumentoRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class ExpedienteDocumentoRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/Frecuencia.php
... | ... | @@ -1,110 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\Frecuencia | |
10 | - * | |
11 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\FrecuenciaRepository") | |
12 | - * @ORM\Table(name="frecuencia", uniqueConstraints={@ORM\UniqueConstraint(name="id_frecuencia_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class Frecuencia | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="frecuencia_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=45) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="UnidadCurricularDetalle", mappedBy="frecuencia") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="frecuencia_id", nullable=false) | |
32 | - */ | |
33 | - protected $unidadCurricularDetalles; | |
34 | - | |
35 | - public function __construct() | |
36 | - { | |
37 | - $this->unidadCurricularDetalles = new ArrayCollection(); | |
38 | - } | |
39 | - | |
40 | - public function __sleep() | |
41 | - { | |
42 | - return array('id', 'descripcion'); | |
43 | - } | |
44 | - | |
45 | - /** | |
46 | - * Get id | |
47 | - * | |
48 | - * @return integer | |
49 | - */ | |
50 | - public function getId() | |
51 | - { | |
52 | - return $this->id; | |
53 | - } | |
54 | - | |
55 | - /** | |
56 | - * Set descripcion | |
57 | - * | |
58 | - * @param string $descripcion | |
59 | - * @return Frecuencia | |
60 | - */ | |
61 | - public function setDescripcion($descripcion) | |
62 | - { | |
63 | - $this->descripcion = $descripcion; | |
64 | - | |
65 | - return $this; | |
66 | - } | |
67 | - | |
68 | - /** | |
69 | - * Get descripcion | |
70 | - * | |
71 | - * @return string | |
72 | - */ | |
73 | - public function getDescripcion() | |
74 | - { | |
75 | - return $this->descripcion; | |
76 | - } | |
77 | - | |
78 | - /** | |
79 | - * Add unidadCurricularDetalles | |
80 | - * | |
81 | - * @param \UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles | |
82 | - * @return Frecuencia | |
83 | - */ | |
84 | - public function addUnidadCurricularDetalle(\UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles) | |
85 | - { | |
86 | - $this->unidadCurricularDetalles[] = $unidadCurricularDetalles; | |
87 | - | |
88 | - return $this; | |
89 | - } | |
90 | - | |
91 | - /** | |
92 | - * Remove unidadCurricularDetalles | |
93 | - * | |
94 | - * @param \UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles | |
95 | - */ | |
96 | - public function removeUnidadCurricularDetalle(\UBV\SurUbvBundle\Entity\UnidadCurricularDetalle $unidadCurricularDetalles) | |
97 | - { | |
98 | - $this->unidadCurricularDetalles->removeElement($unidadCurricularDetalles); | |
99 | - } | |
100 | - | |
101 | - /** | |
102 | - * Get unidadCurricularDetalles | |
103 | - * | |
104 | - * @return \Doctrine\Common\Collections\Collection | |
105 | - */ | |
106 | - public function getUnidadCurricularDetalles() | |
107 | - { | |
108 | - return $this->unidadCurricularDetalles; | |
109 | - } | |
110 | -} |
src/UBV/PracticaBundle/Entity/FrecuenciaRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * FrecuenciaRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class FrecuenciaRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/Genero.php
... | ... | @@ -1,189 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | -use Symfony\Component\Validator\Constraints as Assert; | |
8 | - | |
9 | -/** | |
10 | - * UBV\SurUbvBundle\Entity\Genero | |
11 | - * | |
12 | - * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\GeneroRepository") | |
13 | - * @ORM\Table(name="genero", uniqueConstraints={@ORM\UniqueConstraint(name="id_genero_UNIQUE", columns={"id"})}) | |
14 | - */ | |
15 | -class Genero | |
16 | -{ | |
17 | - /** | |
18 | - * @ORM\Id | |
19 | - * @ORM\Column(type="integer") | |
20 | - * @ORM\GeneratedValue(strategy="AUTO") | |
21 | - * @ORM\SequenceGenerator(sequenceName="genero_id_seq", allocationSize=1, initialValue=1) | |
22 | - */ | |
23 | - protected $id; | |
24 | - | |
25 | - /** | |
26 | - * @ORM\Column(type="string", length=10, nullable=false) | |
27 | - * @Assert\NotBlank( message= "Por favor introduzca la Descripciรณn del Genero") | |
28 | - * @Assert\Length( | |
29 | - * min = 7, | |
30 | - * max = 10, | |
31 | - * minMessage = "Por favor introduzca un Nombre de Genero mรกs especรญfico. Mรญnimo {{ limit }} caracteres", | |
32 | - * maxMessage = "Por favor introduzca un Nombre de Genero mรกs breve. Mรกximo {{ limit }} caracteres", | |
33 | - *) | |
34 | - */ | |
35 | - protected $descripcion; | |
36 | - | |
37 | - /** | |
38 | - * @ORM\Column(type="string", length=5,nullable=false) | |
39 | - */ | |
40 | - protected $codigo; | |
41 | - | |
42 | - /** | |
43 | - * @ORM\OneToMany(targetEntity="Candidato", mappedBy="genero") | |
44 | - * @ORM\JoinColumn(name="id", referencedColumnName="genero_id", nullable=false) | |
45 | - */ | |
46 | - protected $candidatos; | |
47 | - | |
48 | - /** | |
49 | - * @ORM\OneToMany(targetEntity="Persona", mappedBy="genero") | |
50 | - * @ORM\JoinColumn(name="id", referencedColumnName="genero_id", nullable=false) | |
51 | - */ | |
52 | - protected $personas; | |
53 | - | |
54 | - public function __construct() | |
55 | - { | |
56 | - $this->personas = new ArrayCollection(); | |
57 | - } | |
58 | - | |
59 | - public function __sleep() | |
60 | - { | |
61 | - return array('id', 'descripcion'); | |
62 | - } | |
63 | - | |
64 | - /** | |
65 | - * Get id | |
66 | - * | |
67 | - * @return integer | |
68 | - */ | |
69 | - | |
70 | - public function getId() | |
71 | - { | |
72 | - return $this->id; | |
73 | - } | |
74 | - | |
75 | - /** | |
76 | - * Set descripcion | |
77 | - * | |
78 | - * @param string $descripcion | |
79 | - * @return Genero | |
80 | - */ | |
81 | - public function setDescripcion($descripcion) | |
82 | - { | |
83 | - $this->descripcion = strtoupper($descripcion); | |
84 | - return $this; | |
85 | - } | |
86 | - | |
87 | - /** | |
88 | - * Get descripcion | |
89 | - * | |
90 | - * @return string | |
91 | - */ | |
92 | - public function getDescripcion() | |
93 | - { | |
94 | - return $this->descripcion; | |
95 | - } | |
96 | - | |
97 | - /** | |
98 | - * Add personas | |
99 | - * | |
100 | - * @param \UBV\SurUbvBundle\Entity\Persona $personas | |
101 | - * @return Genero | |
102 | - */ | |
103 | - public function addPersona(\UBV\SurUbvBundle\Entity\Persona $personas) | |
104 | - { | |
105 | - $this->personas[] = $personas; | |
106 | - | |
107 | - return $this; | |
108 | - } | |
109 | - | |
110 | - /** | |
111 | - * Remove personas | |
112 | - * | |
113 | - * @param \UBV\SurUbvBundle\Entity\Persona $personas | |
114 | - */ | |
115 | - public function removePersona(\UBV\SurUbvBundle\Entity\Persona $personas) | |
116 | - { | |
117 | - $this->personas->removeElement($personas); | |
118 | - } | |
119 | - | |
120 | - /** | |
121 | - * Get personas | |
122 | - * | |
123 | - * @return \Doctrine\Common\Collections\Collection | |
124 | - */ | |
125 | - public function getPersonas() | |
126 | - { | |
127 | - return $this->personas; | |
128 | - } | |
129 | - | |
130 | - public function __toString() { | |
131 | - return $this->getDescripcion(); | |
132 | - } | |
133 | - | |
134 | - /** | |
135 | - * Set codigo | |
136 | - * | |
137 | - * @param string $codigo | |
138 | - * @return Genero | |
139 | - */ | |
140 | - public function setCodigo($codigo) | |
141 | - { | |
142 | - $this->codigo = $codigo; | |
143 | - | |
144 | - return $this; | |
145 | - } | |
146 | - | |
147 | - /** | |
148 | - * Get codigo | |
149 | - * | |
150 | - * @return string | |
151 | - */ | |
152 | - public function getCodigo() | |
153 | - { | |
154 | - return $this->codigo; | |
155 | - } | |
156 | - | |
157 | - /** | |
158 | - * Add candidatos | |
159 | - * | |
160 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
161 | - * @return Genero | |
162 | - */ | |
163 | - public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
164 | - { | |
165 | - $this->candidatos[] = $candidatos; | |
166 | - | |
167 | - return $this; | |
168 | - } | |
169 | - | |
170 | - /** | |
171 | - * Remove candidatos | |
172 | - * | |
173 | - * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
174 | - */ | |
175 | - public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
176 | - { | |
177 | - $this->candidatos->removeElement($candidatos); | |
178 | - } | |
179 | - | |
180 | - /** | |
181 | - * Get candidatos | |
182 | - * | |
183 | - * @return \Doctrine\Common\Collections\Collection | |
184 | - */ | |
185 | - public function getCandidatos() | |
186 | - { | |
187 | - return $this->candidatos; | |
188 | - } | |
189 | -} |
src/UBV/PracticaBundle/Entity/GeneroRepository.php
... | ... | @@ -1,15 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\EntityRepository; | |
6 | - | |
7 | -/** | |
8 | - * GeneroRepository | |
9 | - * | |
10 | - * This class was generated by the Doctrine ORM. Add your own custom | |
11 | - * repository methods below. | |
12 | - */ | |
13 | -class GeneroRepository extends EntityRepository | |
14 | -{ | |
15 | -} |
src/UBV/PracticaBundle/Entity/GradoAcademico.php
... | ... | @@ -1,183 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -namespace UBV\SurUbvBundle\Entity; | |
4 | - | |
5 | -use Doctrine\ORM\Mapping as ORM; | |
6 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | - | |
8 | -/** | |
9 | - * UBV\SurUbvBundle\Entity\GradoAcademico | |
10 | - * | |
11 | - * @ORM\Entity() | |
12 | - * @ORM\Table(name="grado_academico", indexes={@ORM\Index(name="fk_grado_academico_nivel_academico1_idx", columns={"nivel_academico_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_grado_academico_UNIQUE", columns={"id"})}) | |
13 | - */ | |
14 | -class GradoAcademico | |
15 | -{ | |
16 | - /** | |
17 | - * @ORM\Id | |
18 | - * @ORM\Column(type="integer") | |
19 | - * @ORM\GeneratedValue(strategy="IDENTITY") | |
20 | - * @ORM\SequenceGenerator(sequenceName="grado_academico_id_seq", allocationSize=1, initialValue=1) | |
21 | - */ | |
22 | - protected $id; | |
23 | - | |
24 | - /** | |
25 | - * @ORM\Column(type="string", length=70, nullable=true) | |
26 | - */ | |
27 | - protected $descripcion; | |
28 | - | |
29 | - /** | |
30 | - * @ORM\OneToMany(targetEntity="Aspirante", mappedBy="gradoAcademico") | |
31 | - * @ORM\JoinColumn(name="id", referencedColumnName="grado_academico_id", nullable=false) | |
32 | - */ | |
33 | - protected $aspirantes; | |
34 | - | |
35 | - /** | |
36 | - * @ORM\OneToMany(targetEntity="RequisitoGrado", mappedBy="gradoAcademico") | |
37 | - * @ORM\JoinColumn(name="id", referencedColumnName="grado_academico_id", nullable=false) | |
38 | - */ | |
39 | - protected $requisitoGrados; | |
40 | - | |
41 | - /** | |
42 | - * @ORM\ManyToOne(targetEntity="NivelAcademico", inversedBy="gradoAcademicos") | |
43 | - * @ORM\JoinColumn(name="nivel_academico_id", referencedColumnName="id", nullable=false) | |
44 | - */ | |
45 | - protected $nivelAcademico; | |
46 | - | |
47 | - public function __construct() | |
48 | - { | |
49 | - $this->aspirantes = new ArrayCollection(); | |
50 | - $this->requisitoGrados = new ArrayCollection(); | |
51 | - } | |
52 | - | |
53 | - public function __sleep() | |
54 | - { | |
55 | - return array('id', 'descripcion', 'nivel_academico_id'); | |
56 | - } | |
57 | - | |
58 | - /** | |
59 | - * Get id | |
60 | - * | |
61 | - * @return integer | |
62 | - */ | |
63 | - public function getId() | |
64 | - { | |
65 | - return $this->id; | |
66 | - } | |
67 | - | |
68 | - /** | |
69 | - * Set descripcion | |
70 | - * | |
71 | - * @param string $descripcion | |
72 | - * @return GradoAcademico | |
73 | - */ | |
74 | - public function setDescripcion($descripcion) | |
75 | - { | |
76 | - $this->descripcion = $descripcion; | |
77 | - | |
78 | - return $this; | |
79 | - } | |
80 | - | |
81 | - /** | |
82 | - * Get descripcion | |
83 | - * | |
84 | - * @return string | |
85 | - */ | |
86 | - public function getDescripcion() | |
87 | - { | |
88 | - return $this->descripcion; | |
89 | - } | |
90 | - | |
91 | - /** | |
92 | - * Add aspirantes | |
93 | - * | |
94 | - * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes | |
95 | - * @return GradoAcademico | |
96 | - */ | |
97 | - public function addAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) | |
98 | - { | |
99 | - $this->aspirantes[] = $aspirantes; | |
100 | - | |
101 | - return $this; | |
102 | - } | |
103 | - | |
104 | - /** | |
105 | - * Remove aspirantes | |
106 | - * | |
107 | - * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes | |
108 | - */ | |
109 | - public function removeAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) | |
110 | - { | |
111 | - $this->aspirantes->removeElement($aspirantes); | |
112 | - } | |
113 | - | |
114 | - /** | |
115 | - * Get aspirantes | |
116 | - * | |
117 | - * @return \Doctrine\Common\Collections\Collection | |
118 | - */ | |
119 | - public function getAspirantes() | |
120 | - { | |
121 | - return $this->aspirantes; | |
122 | - } | |
123 | - | |
124 | - /** | |
125 | - * Add requisitoGrados | |
126 | - * | |
127 | - * @param \UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados | |
128 | - * @return GradoAcademico | |
129 | - */ | |
130 | - public function addRequisitoGrado(\UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados) | |
131 | - { | |
132 | - $this->requisitoGrados[] = $requisitoGrados; | |
133 | - | |
134 | - return $this; | |
135 | - } | |
136 | - | |
137 | - /** | |
138 | - * Remove requisitoGrados | |
139 | - * | |
140 | - * @param \UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados | |
141 | - */ | |
142 | - public function removeRequisitoGrado(\UBV\SurUbvBundle\Entity\RequisitoGrado $requisitoGrados) | |
143 | - { | |
144 | - $this->requisitoGrados->removeElement($requisitoGrados); | |
145 | - } | |
146 | - | |
147 | - /** | |
148 | - * Get requisitoGrados | |
149 | - * | |
150 | - * @return \Doctrine\Common\Collections\Collection | |
151 | - */ | |
152 | - public function getRequisitoGrados() | |
153 | - { | |
154 | - return $this->requisitoGrados; | |
155 | - } | |
156 | - | |
157 | - /** | |
158 | - * Set nivelAcademico | |
159 | - * | |
160 | - * @param \UBV\SurUbvBundle\Entity\NivelAcademico $nivelAcademico | |
161 | - * @return GradoAcademico | |
162 | - */ | |
163 | - public function setNivelAcademico(\UBV\SurUbvBundle\Entity\NivelAcademico $nivelAcademico) | |
164 | - { | |
165 | - $this->nivelAcademico = $nivelAcademico; | |
166 | - | |
167 | - return $this; | |
168 | - } | |
169 | - | |
170 | - /** | |
171 | - * Get nivelAcademico | |
172 | - * | |
173 | - * @return \UBV\SurUbvBundle\Entity\NivelAcademico | |
174 | - */ | |
175 | - public function getNivelAcademico() | |
176 | - { | |
177 | - return $this->nivelAcademico; | |
178 | - } | |
179 | - | |
180 | - public function __toString(){ | |
181 | - return $this->getDescripcion(); | |
182 | - } | |
183 | -} |