Commit 3522f897ea9aba21945dc55e3aafa0720720bade
1 parent
6153231177
Exists in
master
se añadio la entidad de caducidad del PIDA
Showing
1 changed file
with
136 additions
and
0 deletions
Show diff stats
src/AppBundle/Entity/PidaCaducidad.php
... | ... | @@ -0,0 +1,136 @@ |
1 | +<?php | |
2 | + | |
3 | +namespace AppBundle\Entity; | |
4 | + | |
5 | +use Doctrine\ORM\Mapping as ORM; | |
6 | +use Symfony\Component\Validator\Constraints as Assert; | |
7 | + | |
8 | + | |
9 | +/** | |
10 | + * PidaCaducidad | |
11 | + * | |
12 | + * @ORM\Table(name="pida_caducidad", uniqueConstraints={@ORM\UniqueConstraint(name="docete_servicio", columns={"id_docente_servicio"})}) | |
13 | + * @ORM\Entity | |
14 | + * @ORM\HasLifecycleCallbacks() | |
15 | + */ | |
16 | +class PidaCaducidad | |
17 | +{ | |
18 | + | |
19 | + /** | |
20 | + * @var integer | |
21 | + * | |
22 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador del Ascenso"}) | |
23 | + * @ORM\Id | |
24 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
25 | + * @ORM\SequenceGenerator(sequenceName="adscripcion_id_seq", allocationSize=1, initialValue=1) | |
26 | + */ | |
27 | + private $id; | |
28 | + | |
29 | + | |
30 | + /** | |
31 | + * @var \AppBundle\Entity\DocenteServicio | |
32 | + * | |
33 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\DocenteServicio") | |
34 | + * @ORM\JoinColumns({ | |
35 | + * @ORM\JoinColumn(name="id_docente_servicio", referencedColumnName="id", nullable=false) | |
36 | + * }) | |
37 | + */ | |
38 | + protected $idDocenteServicio; | |
39 | + | |
40 | + | |
41 | + | |
42 | + | |
43 | + | |
44 | + /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha donde comienza a correr el tiempo del pida"}) | |
45 | + | |
46 | + */ | |
47 | + | |
48 | + private $fechaInicio; | |
49 | + | |
50 | + | |
51 | + /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha donde termina el Pida"}) | |
52 | + | |
53 | + */ | |
54 | + | |
55 | + private $fechaFinal; | |
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 fechaInicio | |
70 | + * | |
71 | + * @param \DateTime $fechaInicio | |
72 | + * @return PidaCaducidad | |
73 | + */ | |
74 | + public function setFechaInicio($fechaInicio) | |
75 | + { | |
76 | + $this->fechaInicio = $fechaInicio; | |
77 | + | |
78 | + return $this; | |
79 | + } | |
80 | + | |
81 | + /** | |
82 | + * Get fechaInicio | |
83 | + * | |
84 | + * @return \DateTime | |
85 | + */ | |
86 | + public function getFechaInicio() | |
87 | + { | |
88 | + return $this->fechaInicio; | |
89 | + } | |
90 | + | |
91 | + /** | |
92 | + * Set fechaFinal | |
93 | + * | |
94 | + * @param \DateTime $fechaFinal | |
95 | + * @return PidaCaducidad | |
96 | + */ | |
97 | + public function setFechaFinal($fechaFinal) | |
98 | + { | |
99 | + $this->fechaFinal = $fechaFinal; | |
100 | + | |
101 | + return $this; | |
102 | + } | |
103 | + | |
104 | + /** | |
105 | + * Get fechaFinal | |
106 | + * | |
107 | + * @return \DateTime | |
108 | + */ | |
109 | + public function getFechaFinal() | |
110 | + { | |
111 | + return $this->fechaFinal; | |
112 | + } | |
113 | + | |
114 | + /** | |
115 | + * Set idDocenteServicio | |
116 | + * | |
117 | + * @param \AppBundle\Entity\DocenteServicio $idDocenteServicio | |
118 | + * @return PidaCaducidad | |
119 | + */ | |
120 | + public function setIdDocenteServicio(\AppBundle\Entity\DocenteServicio $idDocenteServicio) | |
121 | + { | |
122 | + $this->idDocenteServicio = $idDocenteServicio; | |
123 | + | |
124 | + return $this; | |
125 | + } | |
126 | + | |
127 | + /** | |
128 | + * Get idDocenteServicio | |
129 | + * | |
130 | + * @return \AppBundle\Entity\DocenteServicio | |
131 | + */ | |
132 | + public function getIdDocenteServicio() | |
133 | + { | |
134 | + return $this->idDocenteServicio; | |
135 | + } | |
136 | +} | ... | ... |