Commit 261ba21510b6832df5df0366dd17e3657f6dcd69
1 parent
dc23c7a930
Exists in
master
creada la entidad para registrar la actividad del PIDA de los docentes
Showing
1 changed file
with
64 additions
and
268 deletions
Show diff stats
src/AppBundle/Entity/AdscripcionPida.php
1 | 1 | <?php |
2 | -/** | |
3 | - * Created by PhpStorm. | |
4 | - * User: Wilmer Ramones | |
5 | - * Date: 29/06/16 | |
6 | - * Time: 07:52 AM | |
7 | - */ | |
2 | + | |
8 | 3 | |
9 | 4 | namespace AppBundle\Entity; |
10 | 5 | |
11 | 6 | use Doctrine\ORM\Mapping as ORM; |
12 | -use Symfony\Component\Validator\Constraints as Assert; | |
13 | -use Doctrine\Common\Collections\ArrayCollection; | |
7 | + | |
14 | 8 | |
15 | 9 | /** |
16 | - * Adscripcion | |
10 | + * AdscripcionPida | |
17 | 11 | * |
18 | - * @ORM\Table(name="solicitud_adscripcion", uniqueConstraints={@ORM\UniqueConstraint(name="adscripcion_id_rol_institucion_key", columns={"id_rol_institucion"})}) | |
12 | + * @ORM\Table(name="solicitud_pida", uniqueConstraints={@ORM\UniqueConstraint(name="pida_id_rol_institucion_key", columns={"id_rol_institucion"})}) | |
19 | 13 | * @ORM\Entity |
20 | 14 | * @ORM\HasLifecycleCallbacks() |
21 | 15 | */ |
22 | -class Adscripcion | |
16 | +class AdscripcionPida | |
23 | 17 | { |
24 | 18 | |
25 | 19 | /** |
26 | 20 | * @var integer |
27 | 21 | * |
28 | - * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la Adscripcion"}) | |
22 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la AdscripcionPida"}) | |
29 | 23 | * @ORM\Id |
30 | 24 | * @ORM\GeneratedValue(strategy="IDENTITY") |
31 | 25 | * @ORM\SequenceGenerator(sequenceName="adscripcion_id_seq", allocationSize=1, initialValue=1) |
... | ... | @@ -44,101 +38,29 @@ class Adscripcion |
44 | 38 | */ |
45 | 39 | protected $idRolInstitucion; |
46 | 40 | |
47 | - /** @ORM\Column(type="date", nullable=false, options={"comment" = "Fecha de de Ingreso a la Institucion"}) | |
48 | - /** | |
49 | - * @Assert\Date() | |
50 | - */ | |
51 | - private $fecha_ingreso; | |
52 | - | |
41 | + | |
53 | 42 | |
54 | 43 | /** |
55 | - * @var \AppBundle\Entity\LineasInvestigacion | |
44 | + * @var \AppBundle\Entity\PlanHistoricoNacionalEstrategico | |
56 | 45 | * |
57 | - * @ORM\ManyToOne(targetEntity="AppBundle\Entity\LineasInvestigacion") | |
46 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\PlanHistoricoNacionalEstrategico") | |
58 | 47 | * @ORM\JoinColumns({ |
59 | - * @ORM\JoinColumn(name="id_linea_investigacion", referencedColumnName="id", nullable=true) | |
48 | + * @ORM\JoinColumn(name="id_plan_historico_nacional_estrategico", referencedColumnName="id", nullable=true) | |
60 | 49 | * }) |
61 | 50 | */ |
62 | - protected $idLineaInvestigacion; | |
63 | - | |
64 | - | |
65 | - /** | |
66 | - * @ORM\Column(type="string", nullable=false, options={"comment" = "ubicacion de la constancia de trabajo"}) | |
67 | - * | |
68 | - * @Assert\NotBlank(message="Debe cargar su constancia de Trabajo, es obligatoria.") | |
69 | - * @Assert\File(mimeTypes={ "application/pdf" }) | |
70 | - */ | |
71 | - private $trabajo; | |
72 | - | |
73 | - | |
74 | - /** | |
75 | - * @ORM\Column(type="string", nullable=false, options={"comment" = "ubicacion del titulo de pregrado"}) | |
76 | - * | |
77 | - * @Assert\NotBlank(message="debe cargar su tรญtulo de pregrado en digital, es obligatorio.") | |
78 | - * @Assert\File(mimeTypes={ "application/pdf" }) | |
79 | - */ | |
80 | - private $pregrado; | |
51 | + protected $idPlanHistoricoNacionalEstrategico; | |
81 | 52 | |
82 | 53 | |
83 | 54 | /** |
84 | - * @ORM\Column(type="string", nullable=true, options={"comment" = "ubicacion del titulo de postgrado en caso de tenerlo"}) | |
85 | - * | |
86 | - * | |
87 | - * @Assert\File(mimeTypes={ "application/pdf" }) | |
88 | - */ | |
89 | - private $postgrado; | |
90 | - | |
91 | - /** | |
92 | - * @ORM\Column(type="string", nullable=true, options={"comment" = "digital del documento de aprobaciรณn del concurso de oposicion"}) | |
93 | - * | |
94 | - * | |
95 | - * @Assert\File(mimeTypes={ "application/pdf" }) | |
96 | - */ | |
97 | - private $oposicion; | |
98 | - | |
99 | - /** | |
100 | - * @ORM\Column(type="string", nullable=true, options={"comment" = "digital del documento de ascenso de Asistente"}) | |
101 | - * | |
102 | - * | |
103 | - * @Assert\File(mimeTypes={ "application/pdf" }) | |
104 | - */ | |
105 | - private $asistente; | |
106 | - | |
107 | - /** | |
108 | - * @ORM\Column(type="string", nullable=true, options={"comment" = "digital del documento de ascenso de Asociado"}) | |
109 | - * | |
110 | - * | |
111 | - * @Assert\File(mimeTypes={ "application/pdf" }) | |
112 | - */ | |
113 | - private $asociado; | |
114 | - | |
115 | - | |
116 | - | |
117 | - | |
118 | - /** | |
119 | - * @ORM\Column(type="string", nullable=true, options={"comment" = "digital del documento de ascenso de agregado"}) | |
120 | - * | |
121 | - * | |
122 | - * @Assert\File(mimeTypes={ "application/pdf" }) | |
123 | - */ | |
124 | - private $agreado; | |
125 | - | |
126 | - | |
127 | - /** | |
128 | - * @ORM\Column(type="string", nullable=true, options={"comment" = "digital del documento de ascenso de titular"}) | |
55 | + * @var \AppBundle\Entity\ActividadDocente | |
129 | 56 | * |
130 | - * | |
131 | - * @Assert\File(mimeTypes={ "application/pdf" }) | |
132 | - */ | |
133 | - private $titular; | |
134 | - | |
135 | - | |
136 | - | |
137 | - /** | |
138 | - * @ORM\Column(name="titulo_trabajo", type="string", nullable=true, options={"comment" = "titulo del trabajo de investigacion"}) | |
57 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\ActividadDocente") | |
58 | + * @ORM\JoinColumns({ | |
59 | + * @ORM\JoinColumn(name="id_actividad_docente", referencedColumnName="id", nullable=true) | |
60 | + * }) | |
139 | 61 | */ |
140 | - private $tituloTrabajo; | |
141 | - | |
62 | + protected $idActividadDocente; | |
63 | + | |
142 | 64 | |
143 | 65 | /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de creaciรณn de la solicitud"}) |
144 | 66 | |
... | ... | @@ -162,122 +84,7 @@ class Adscripcion |
162 | 84 | * }) |
163 | 85 | */ |
164 | 86 | protected $idEstatus; |
165 | - | |
166 | - | |
167 | - | |
168 | - | |
169 | - | |
170 | - public function getTrabajo() | |
171 | - { | |
172 | - return $this->trabajo; | |
173 | - } | |
174 | - | |
175 | - public function setTrabajo($trabajo) | |
176 | - { | |
177 | - $this->trabajo = $trabajo; | |
178 | - | |
179 | - return $this; | |
180 | - } | |
181 | - | |
182 | - public function getPregrado() | |
183 | - { | |
184 | - return $this->pregrado; | |
185 | - } | |
186 | - | |
187 | - public function setPregrado($pregrado) | |
188 | - { | |
189 | - $this->pregrado = $pregrado; | |
190 | - | |
191 | - return $this; | |
192 | - } | |
193 | - | |
194 | - public function getPostgrado() | |
195 | - { | |
196 | - return $this->postgrado; | |
197 | - } | |
198 | - | |
199 | - public function setPostgrado($postgrado) | |
200 | - { | |
201 | - $this->postgrado = $postgrado; | |
202 | - | |
203 | - return $this; | |
204 | - } | |
205 | - | |
206 | - public function getAsistente() | |
207 | - { | |
208 | - return $this->asistente; | |
209 | - } | |
210 | - | |
211 | - public function setAsistente($asistente) | |
212 | - { | |
213 | - $this->asistente = $asistente; | |
214 | - | |
215 | - return $this; | |
216 | - } | |
217 | - | |
218 | - /** | |
219 | - * @return mixed | |
220 | - */ | |
221 | - public function getOposicion() | |
222 | - { | |
223 | - return $this->oposicion; | |
224 | - } | |
225 | - | |
226 | - /** | |
227 | - * @param mixed $oposicion | |
228 | - */ | |
229 | - public function setOposicion($oposicion) | |
230 | - { | |
231 | - $this->oposicion = $oposicion; | |
232 | - } | |
233 | - | |
234 | - /** | |
235 | - * @return mixed | |
236 | - */ | |
237 | - public function getAsociado() | |
238 | - { | |
239 | - return $this->asociado; | |
240 | - } | |
241 | - | |
242 | - /** | |
243 | - * @param mixed $asociado | |
244 | - */ | |
245 | - public function setAsociado($asociado) | |
246 | - { | |
247 | - $this->asociado = $asociado; | |
248 | - } | |
249 | - | |
250 | - /** | |
251 | - * @return mixed | |
252 | - */ | |
253 | - public function getAgreado() | |
254 | - { | |
255 | - return $this->agreado; | |
256 | - } | |
257 | - | |
258 | - /** | |
259 | - * @param mixed $agreado | |
260 | - */ | |
261 | - public function setAgreado($agreado) | |
262 | - { | |
263 | - $this->agreado = $agreado; | |
264 | - } | |
265 | - | |
266 | - /** | |
267 | - * @return mixed | |
268 | - */ | |
269 | - public function getTitular() | |
270 | - { | |
271 | - return $this->titular; | |
272 | - } | |
273 | - | |
274 | - /** | |
275 | - * @param mixed $titular | |
276 | - */ | |
277 | - public function setTitular($titular) | |
278 | - { | |
279 | - $this->titular = $titular; | |
280 | - } | |
87 | + | |
281 | 88 | |
282 | 89 | /** |
283 | 90 | * Get id |
... | ... | @@ -313,30 +120,7 @@ class Adscripcion |
313 | 120 | return $this->idRolInstitucion; |
314 | 121 | } |
315 | 122 | |
316 | - | |
317 | - | |
318 | - /** | |
319 | - * Set idLineaInvestigacion | |
320 | - * | |
321 | - * @param \AppBundle\Entity\LineasInvestigacion $idLineaInvestigacion | |
322 | - * @return LineasInvestigacion | |
323 | - */ | |
324 | - public function setIdLineaInvestigacion(\AppBundle\Entity\LineasInvestigacion $idLineaInvestigacion = null) | |
325 | - { | |
326 | - $this->idLineaInvestigacion = $idLineaInvestigacion; | |
327 | - | |
328 | - return $this; | |
329 | - } | |
330 | - | |
331 | - /** | |
332 | - * Get idLineaIvestigacion | |
333 | - * | |
334 | - * @return \AppBundle\Entity\LineasInvestigacion | |
335 | - */ | |
336 | - public function getIdLineaInvestigacion() | |
337 | - { | |
338 | - return $this->idLineaInvestigacion; | |
339 | - } | |
123 | + | |
340 | 124 | |
341 | 125 | |
342 | 126 | |
... | ... | @@ -390,47 +174,59 @@ class Adscripcion |
390 | 174 | } |
391 | 175 | |
392 | 176 | |
393 | - | |
394 | 177 | /** |
395 | - * @return mixed | |
178 | + * Get fecha_ultima_actualizacion | |
179 | + * | |
180 | + * @return \DateTime | |
396 | 181 | */ |
397 | - public function getTituloTrabajo() | |
182 | + public function getFechaUltimaActualizacion() | |
398 | 183 | { |
399 | - return $this->tituloTrabajo; | |
184 | + return $this->fecha_ultima_actualizacion; | |
400 | 185 | } |
401 | 186 | |
402 | - | |
403 | 187 | /** |
404 | - * @param mixed $tituloTrabajo | |
188 | + * Set idPlanHistoricoNacionalEstrategico | |
189 | + * | |
190 | + * @param \AppBundle\Entity\PlanHistoricoNacionalEstrategico $idPlanHistoricoNacionalEstrategico | |
191 | + * @return AdscripcionPida | |
405 | 192 | */ |
406 | - public function setTituloTrabajo($tituloTrabajo) | |
407 | - { | |
408 | - $this->tituloTrabajo = $tituloTrabajo; | |
409 | - } | |
410 | - | |
411 | - | |
412 | - /** | |
413 | - * Set fecha_escala | |
414 | - * | |
415 | - * @param \DateTime $fecha_escala | |
416 | - * @return Comment | |
417 | - */ | |
418 | - public function setFechaIngreso($fecha_ingreso) | |
419 | - { | |
420 | - $this->fecha_ingreso = $fecha_ingreso; | |
193 | + public function setIdPlanHistoricoNacionalEstrategico(\AppBundle\Entity\PlanHistoricoNacionalEstrategico $idPlanHistoricoNacionalEstrategico = null) | |
194 | + { | |
195 | + $this->idPlanHistoricoNacionalEstrategico = $idPlanHistoricoNacionalEstrategico; | |
421 | 196 | |
422 | - return $this; | |
423 | - } | |
197 | + return $this; | |
198 | + } | |
424 | 199 | |
425 | - /** | |
426 | - * Get fecha_escala | |
427 | - * | |
428 | - * @return \DateTime | |
429 | - */ | |
430 | - public function getFechaIngreso() | |
431 | - { | |
432 | - return $this->fecha_ingreso; | |
433 | - } | |
200 | + /** | |
201 | + * Get idPlanHistoricoNacionalEstrategico | |
202 | + * | |
203 | + * @return \AppBundle\Entity\PlanHistoricoNacionalEstrategico | |
204 | + */ | |
205 | + public function getIdPlanHistoricoNacionalEstrategico() | |
206 | + { | |
207 | + return $this->idPlanHistoricoNacionalEstrategico; | |
208 | + } | |
434 | 209 | |
210 | + /** | |
211 | + * Set idActividadDocente | |
212 | + * | |
213 | + * @param \AppBundle\Entity\ActividadDocente $idActividadDocente | |
214 | + * @return AdscripcionPida | |
215 | + */ | |
216 | + public function setIdActividadDocente(\AppBundle\Entity\ActividadDocente $idActividadDocente = null) | |
217 | + { | |
218 | + $this->idActividadDocente = $idActividadDocente; | |
219 | + | |
220 | + return $this; | |
221 | + } | |
435 | 222 | |
223 | + /** | |
224 | + * Get idActividadDocente | |
225 | + * | |
226 | + * @return \AppBundle\Entity\ActividadDocente | |
227 | + */ | |
228 | + public function getIdActividadDocente() | |
229 | + { | |
230 | + return $this->idActividadDocente; | |
231 | + } | |
436 | 232 | } | ... | ... |