Commit 2a5d9ff833b40c80bab129b471fc1e96e7f17681
1 parent
d6b35223b5
Exists in
master
creado el estado academico, creado la oferta academica y creada la solicitud de …
…estado academico con aprobacion por parte del CEA :) todo eso sólo hoy....
Showing
52 changed files
with
4523 additions
and
33 deletions
Show diff stats
app/Resources/views/base_app.html.twig
@@ -55,20 +55,47 @@ | @@ -55,20 +55,47 @@ | ||
55 | {% if is_granted('ROLE_ADSCRITO') %} | 55 | {% if is_granted('ROLE_ADSCRITO') %} |
56 | <li class="dropdown"> | 56 | <li class="dropdown"> |
57 | <a class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-gears"></i> | 57 | <a class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-gears"></i> |
58 | - <span>Servicios Docente</span> <b class="caret"></b> | 58 | + <span>Serv. Docente</span> <b class="caret"></b> |
59 | </a> | 59 | </a> |
60 | <ul class="dropdown-menu"> | 60 | <ul class="dropdown-menu"> |
61 | <li><a href="{{ path('servicios_index') }}">Mis Servicios</a></li> | 61 | <li><a href="{{ path('servicios_index') }}">Mis Servicios</a></li> |
62 | <li><a href="#">Solicitar Ascenso</a></li> | 62 | <li><a href="#">Solicitar Ascenso</a></li> |
63 | + <li><a href="{{ path( 'cea_solicitudes_estado_academico' ) }}">Solicitar Estado Académico</a></li> | ||
63 | <li><a href="{{ path('cea_solicitudes_recocimiento_antiguedad') }}">Reconocimiento de Antiguedad</a></li> | 64 | <li><a href="{{ path('cea_solicitudes_recocimiento_antiguedad') }}">Reconocimiento de Antiguedad</a></li> |
64 | </ul> | 65 | </ul> |
65 | </li> | 66 | </li> |
66 | - {% endif %} | 67 | + {% endif %} |
68 | + | ||
69 | + | ||
70 | + {% if is_granted('ROLE_ESTUDIANTE') %} | ||
71 | + <li class="dropdown"> | ||
72 | + <a class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-gears"></i> | ||
73 | + <span>Serv. Estudiante</span> <b class="caret"></b> | ||
74 | + </a> | ||
75 | + <ul class="dropdown-menu"> | ||
76 | + <li><a href="#">Inscripción</a></li> | ||
77 | + <li><a href="#">Notas</a></li> | ||
78 | + </ul> | ||
79 | + </li> | ||
80 | + {% endif %} | ||
81 | + | ||
82 | + | ||
83 | + | ||
67 | </ul> | 84 | </ul> |
68 | <ul class="pull-right"> | 85 | <ul class="pull-right"> |
69 | {% if is_granted('ROLE_COORDINADOR_REGIONAL') %} | 86 | {% if is_granted('ROLE_COORDINADOR_REGIONAL') %} |
87 | + | ||
88 | + <li class="dropdown"><a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"> | ||
89 | + <i class="fa fa-calendar-plus-o"></i><span>Adm. Academica</span> <b class="caret"></b></a> | ||
90 | + <ul class="dropdown-menu"> | ||
91 | + <li><a href="#">Oferta Academica</a></li> | ||
92 | + </ul> | ||
93 | + </li> | ||
94 | + | ||
95 | + | ||
70 | 96 | ||
71 | - <li class="dropdown"><a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-group"></i><span>Ver Solicitudes</span> <b class="caret"></b></a> | 97 | + <li class="dropdown"><a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"> |
98 | + <i class="fa fa-group"></i><span>Solicitudes</span> <b class="caret"></b></a> | ||
72 | <ul class="dropdown-menu"> | 99 | <ul class="dropdown-menu"> |
73 | <li> <a data-toggle="modal" data-target="#buscarServicios">Buscar Servicios</a></li> | 100 | <li> <a data-toggle="modal" data-target="#buscarServicios">Buscar Servicios</a></li> |
74 | <li><a href="{{ path('cea_servicios', {'tipo' : 'antiguedad'})}}">En espera de Aprobación</a></li> | 101 | <li><a href="{{ path('cea_servicios', {'tipo' : 'antiguedad'})}}">En espera de Aprobación</a></li> |
@@ -78,7 +105,7 @@ | @@ -78,7 +105,7 @@ | ||
78 | </li> | 105 | </li> |
79 | {% endif %} | 106 | {% endif %} |
80 | {% if is_granted('ROLE_ADMINISTRADOR') %} | 107 | {% if is_granted('ROLE_ADMINISTRADOR') %} |
81 | - <li {% if (app.request.attributes.get('_route') == 'admin_usuarios_index') %} class="active" {% endif %}><a href="{{path('admin_usuarios_index')}}"><i class="fa fa-user"></i><span>Gestión de Usuarios</span> </a> </li> | 108 | + <li {% if (app.request.attributes.get('_route') == 'admin_usuarios_index') %} class="active" {% endif %}><a href="{{path('admin_usuarios_index')}}"><i class="fa fa-user"></i><span>Usuarios</span> </a> </li> |
82 | {% endif %} | 109 | {% endif %} |
83 | </ul> | 110 | </ul> |
84 | 111 |
app/Resources/views/cea/servicios.html.twig
@@ -67,11 +67,13 @@ | @@ -67,11 +67,13 @@ | ||
67 | {{servicio.idRolInstitucion.idInstitucion.idEjeParroquia.IdEje}} | 67 | {{servicio.idRolInstitucion.idInstitucion.idEjeParroquia.IdEje}} |
68 | </td> | 68 | </td> |
69 | <td>{{servicio.idRolInstitucion.idInstitucion.idEjeParroquia.idParroquia.idMunicipio.idEstado}} </td> | 69 | <td>{{servicio.idRolInstitucion.idInstitucion.idEjeParroquia.idParroquia.idMunicipio.idEstado}} </td> |
70 | - <td> | 70 | + <td> |
71 | {% if servicio.idServicioCe.id == 1 %} | 71 | {% if servicio.idServicioCe.id == 1 %} |
72 | <a href="{{ path('cea_servicio_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | 72 | <a href="{{ path('cea_servicio_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> |
73 | {% elseif servicio.idServicioCe.id == 2 %} | 73 | {% elseif servicio.idServicioCe.id == 2 %} |
74 | - <a href="{{ path('cea_adscripcion_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | 74 | + <a href="{{ path('cea_adscripcion_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> |
75 | + {% elseif servicio.idServicioCe.id == 3 %} | ||
76 | + <a href="{{ path('cea_estado_academico_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | ||
75 | {% endif %} | 77 | {% endif %} |
76 | </td> | 78 | </td> |
77 | </tr> | 79 | </tr> |
app/Resources/views/cea/servicios_mostar.html.twig
@@ -65,7 +65,16 @@ | @@ -65,7 +65,16 @@ | ||
65 | </div> | 65 | </div> |
66 | 66 | ||
67 | 67 | ||
68 | - {% endif %} | 68 | + {% endif %} |
69 | + | ||
70 | + {% if servicio.idServicioCe.id == 3 %} | ||
71 | + <div class="form-group"> | ||
72 | + <label for="Escalafones">Malla que Solicita:</label> | ||
73 | + {{ estado_academico.idOfertaMallaCurricular.idMallaCurricularInstitucion.idMallaCurricular }} | ||
74 | + </div> | ||
75 | + | ||
76 | + | ||
77 | + {% endif %} | ||
69 | 78 | ||
70 | 79 | ||
71 | 80 | ||
@@ -75,7 +84,7 @@ | @@ -75,7 +84,7 @@ | ||
75 | <hr /> | 84 | <hr /> |
76 | </div> | 85 | </div> |
77 | </div> | 86 | </div> |
78 | - | 87 | + {% if servicio.idServicioCe.id == 1 %} |
79 | <div class="col-md-5"> | 88 | <div class="col-md-5"> |
80 | <h3>Documentos Para confirmar</h3> | 89 | <h3>Documentos Para confirmar</h3> |
81 | <div class="widget-content"> | 90 | <div class="widget-content"> |
@@ -107,6 +116,7 @@ | @@ -107,6 +116,7 @@ | ||
107 | 116 | ||
108 | </div> | 117 | </div> |
109 | </div> | 118 | </div> |
119 | + {% endif %} | ||
110 | 120 | ||
111 | </div> | 121 | </div> |
112 | </div> | 122 | </div> |
app/Resources/views/ofertaacademica/edit.html.twig
@@ -0,0 +1,21 @@ | @@ -0,0 +1,21 @@ | ||
1 | +{% extends 'base.html.twig' %} | ||
2 | + | ||
3 | +{% block body %} | ||
4 | + <h1>OfertaAcademica edit</h1> | ||
5 | + | ||
6 | + {{ form_start(edit_form) }} | ||
7 | + {{ form_widget(edit_form) }} | ||
8 | + <input type="submit" value="Edit" /> | ||
9 | + {{ form_end(edit_form) }} | ||
10 | + | ||
11 | + <ul> | ||
12 | + <li> | ||
13 | + <a href="{{ path('ceapp_gestion_oferta_academica_index') }}">Back to the list</a> | ||
14 | + </li> | ||
15 | + <li> | ||
16 | + {{ form_start(delete_form) }} | ||
17 | + <input type="submit" value="Delete"> | ||
18 | + {{ form_end(delete_form) }} | ||
19 | + </li> | ||
20 | + </ul> | ||
21 | +{% endblock %} |
app/Resources/views/ofertaacademica/index.html.twig
@@ -0,0 +1,41 @@ | @@ -0,0 +1,41 @@ | ||
1 | +{% extends 'base.html.twig' %} | ||
2 | + | ||
3 | +{% block body %} | ||
4 | + <h1>OfertaAcademica list</h1> | ||
5 | + | ||
6 | + <table> | ||
7 | + <thead> | ||
8 | + <tr> | ||
9 | + <th>Aula</th> | ||
10 | + <th>Cupo</th> | ||
11 | + <th>Id</th> | ||
12 | + <th>Actions</th> | ||
13 | + </tr> | ||
14 | + </thead> | ||
15 | + <tbody> | ||
16 | + {% for ofertaAcademica in ofertaAcademicas %} | ||
17 | + <tr> | ||
18 | + <td><a href="{{ path('ceapp_gestion_oferta_academica_show', { 'id': ofertaAcademica.id }) }}">{{ ofertaAcademica.aula }}</a></td> | ||
19 | + <td>{{ ofertaAcademica.cupo }}</td> | ||
20 | + <td>{{ ofertaAcademica.id }}</td> | ||
21 | + <td> | ||
22 | + <ul> | ||
23 | + <li> | ||
24 | + <a href="{{ path('ceapp_gestion_oferta_academica_show', { 'id': ofertaAcademica.id }) }}">show</a> | ||
25 | + </li> | ||
26 | + <li> | ||
27 | + <a href="{{ path('ceapp_gestion_oferta_academica_edit', { 'id': ofertaAcademica.id }) }}">edit</a> | ||
28 | + </li> | ||
29 | + </ul> | ||
30 | + </td> | ||
31 | + </tr> | ||
32 | + {% endfor %} | ||
33 | + </tbody> | ||
34 | + </table> | ||
35 | + | ||
36 | + <ul> | ||
37 | + <li> | ||
38 | + <a href="{{ path('ceapp_gestion_oferta_academica_new') }}">Create a new entry</a> | ||
39 | + </li> | ||
40 | + </ul> | ||
41 | +{% endblock %} |
app/Resources/views/ofertaacademica/new.html.twig
@@ -0,0 +1,16 @@ | @@ -0,0 +1,16 @@ | ||
1 | +{% extends 'base.html.twig' %} | ||
2 | + | ||
3 | +{% block body %} | ||
4 | + <h1>OfertaAcademica creation</h1> | ||
5 | + | ||
6 | + {{ form_start(form) }} | ||
7 | + {{ form_widget(form) }} | ||
8 | + <input type="submit" value="Create" /> | ||
9 | + {{ form_end(form) }} | ||
10 | + | ||
11 | + <ul> | ||
12 | + <li> | ||
13 | + <a href="{{ path('ceapp_gestion_oferta_academica_index') }}">Back to the list</a> | ||
14 | + </li> | ||
15 | + </ul> | ||
16 | +{% endblock %} |
app/Resources/views/ofertaacademica/show.html.twig
@@ -0,0 +1,36 @@ | @@ -0,0 +1,36 @@ | ||
1 | +{% extends 'base.html.twig' %} | ||
2 | + | ||
3 | +{% block body %} | ||
4 | + <h1>OfertaAcademica</h1> | ||
5 | + | ||
6 | + <table> | ||
7 | + <tbody> | ||
8 | + <tr> | ||
9 | + <th>Aula</th> | ||
10 | + <td>{{ ofertaAcademica.aula }}</td> | ||
11 | + </tr> | ||
12 | + <tr> | ||
13 | + <th>Cupo</th> | ||
14 | + <td>{{ ofertaAcademica.cupo }}</td> | ||
15 | + </tr> | ||
16 | + <tr> | ||
17 | + <th>Id</th> | ||
18 | + <td>{{ ofertaAcademica.id }}</td> | ||
19 | + </tr> | ||
20 | + </tbody> | ||
21 | + </table> | ||
22 | + | ||
23 | + <ul> | ||
24 | + <li> | ||
25 | + <a href="{{ path('ceapp_gestion_oferta_academica_index') }}">Back to the list</a> | ||
26 | + </li> | ||
27 | + <li> | ||
28 | + <a href="{{ path('ceapp_gestion_oferta_academica_edit', { 'id': ofertaAcademica.id }) }}">Edit</a> | ||
29 | + </li> | ||
30 | + <li> | ||
31 | + {{ form_start(delete_form) }} | ||
32 | + <input type="submit" value="Delete"> | ||
33 | + {{ form_end(delete_form) }} | ||
34 | + </li> | ||
35 | + </ul> | ||
36 | +{% endblock %} |
app/Resources/views/solicitudes/estado_academico.html.twig
@@ -0,0 +1,75 @@ | @@ -0,0 +1,75 @@ | ||
1 | +{% extends 'base_app.html.twig' %} | ||
2 | +{% block body %} | ||
3 | + <div class="main"> | ||
4 | + <div class="main-inner"> | ||
5 | + <div class="container"> | ||
6 | + {% for message in app.session.flashBag.get('notice') %} | ||
7 | + <h4 class="alert alert-success">{{ message }}</h4> | ||
8 | + {%endfor %} | ||
9 | + | ||
10 | + {% for message in app.session.flashBag.get('warning') %} | ||
11 | + <h4 class="alert alert-warning">{{ message }}</h4> | ||
12 | + {%endfor %} | ||
13 | + <div class="widget widget-nopad"> | ||
14 | + <div class="widget-header"> <i class="fa fa-list-alt"></i> | ||
15 | + <h3> CEA@UBV Solicitud de Estado Academico</h3> | ||
16 | + </div> | ||
17 | + <div class="widget-content"> | ||
18 | + <div class="widget big-stats-container"> | ||
19 | + <div class="widget-content"> | ||
20 | + <h6 class="bigstats"> | ||
21 | + A través de esta solicitud, el Centro de Estudios ambientales, | ||
22 | + previa verificación, aprobará su solicitud de inclusión del | ||
23 | + estado académico en una malla curricular ofrecida por este | ||
24 | + Centro. A continuación mostramos todos sus estados académicos. | ||
25 | + </h6> | ||
26 | + | ||
27 | + <table class="table table-striped table-bordered"> | ||
28 | + <thead> | ||
29 | + <tr> | ||
30 | + <th> Solicitado </th> | ||
31 | + <th> Período </th> | ||
32 | + <th> Malla Curricular</th> | ||
33 | + <th> Fecha</th> | ||
34 | + <th> observación</th> | ||
35 | + </tr> | ||
36 | + </thead> | ||
37 | + <tbody> | ||
38 | + {% for estado in estado_academico %} | ||
39 | + <tr> | ||
40 | + <td>{{estado.idDocenteServicio.fechaSolicitud | date('d-m-Y')}}</td> | ||
41 | + <td>{{estado.idOfertaMallaCurricular.idPeriodo}}</td> | ||
42 | + <td>{{estado.idOfertaMallaCurricular.idMallaCurricularInstitucion.idMallaCurricular}}</td> | ||
43 | + <td>{{estado.fecha | date('d-m-Y')}}</td> | ||
44 | + <td>{{estado.observacion}}</td> | ||
45 | + </tr> | ||
46 | + | ||
47 | + | ||
48 | + {% endfor %} | ||
49 | + | ||
50 | + | ||
51 | + </tbody> | ||
52 | + </table> | ||
53 | + </div> | ||
54 | + <div > | ||
55 | + {% form_theme form 'bootstrap_3_horizontal_layout.html.twig' %} | ||
56 | + {{form_start(form)}} | ||
57 | + {{form_widget(form)}} | ||
58 | + <div class="form-group"> | ||
59 | + <div class="col-sm-2"></div> | ||
60 | + <div class="col-sm-10"> | ||
61 | + {{ form_widget(form.send) }} | ||
62 | + <a href="{{ path('cea_index')}}" class="btn btn-sm btn-default"><span class="fa fa-arrow-left">Regresar</span></a> | ||
63 | + </div> | ||
64 | + </div> | ||
65 | + {{form_end(form)}} | ||
66 | + | ||
67 | + </div> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + </div> | ||
72 | + </div> | ||
73 | + </div> | ||
74 | + | ||
75 | +{% endblock %} |
src/AppBundle/Controller/AntiguedadController.php
@@ -19,14 +19,11 @@ | @@ -19,14 +19,11 @@ | ||
19 | 19 | ||
20 | namespace AppBundle\Controller; | 20 | namespace AppBundle\Controller; |
21 | 21 | ||
22 | -use AppBundle\Entity\Adscripcion; | ||
23 | -use AppBundle\Entity\DocenteEscala; | 22 | + |
24 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | 23 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
25 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; | ||
26 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | 24 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
27 | - | ||
28 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 25 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
29 | -use Symfony\Component\HttpFoundation\Request; | 26 | + |
30 | use AppBundle\Entity\Memorando; | 27 | use AppBundle\Entity\Memorando; |
31 | use AppBundle\Entity\DocenteServicio; | 28 | use AppBundle\Entity\DocenteServicio; |
32 | 29 |
src/AppBundle/Controller/AppController.php
@@ -167,21 +167,31 @@ class AppController extends Controller { | @@ -167,21 +167,31 @@ class AppController extends Controller { | ||
167 | */ | 167 | */ |
168 | public function serviciosEditAction(DocenteServicio $servicios, $estatus) | 168 | public function serviciosEditAction(DocenteServicio $servicios, $estatus) |
169 | { | 169 | { |
170 | - | ||
171 | - $servicio = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findOneById($servicios->getId()); | ||
172 | - | 170 | + |
171 | + $em = $this->getDoctrine()->getManager(); | ||
173 | if($estatus == "true") { | 172 | if($estatus == "true") { |
174 | - $servicio->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(1)); | 173 | + $servicios->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(1)); |
174 | + | ||
175 | + if($servicios->getIdServicioCe()->getId() == '3'){ | ||
176 | + $user = $this->getDoctrine()->getRepository('AppBundle:Usuarios')->findOneByIdRolInstitucion($servicios->getIdRolInstitucion()); | ||
177 | + $user->addRol($this->getDoctrine()->getRepository('AppBundle:Role')->findOneByName("ROLE_ESTUDIANTE")); | ||
178 | + $em->persist($user); | ||
179 | + } | ||
180 | + | ||
175 | 181 | ||
176 | }else{ | 182 | }else{ |
177 | - $servicio->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(3)); | 183 | + $servicios->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(3)); |
184 | + if($servicios->getIdServicioCe()->getId() == '3'){ | ||
185 | + $user = $this->getDoctrine()->getRepository('AppBundle:Usuarios')->findOneByIdRolInstitucion($servicios->getIdRolInstitucion()); | ||
186 | + $user->removeRol($this->getDoctrine()->getRepository('AppBundle:Role')->findOneByName("ROLE_ESTUDIANTE")); | ||
187 | + $em->persist($user); | ||
188 | + } | ||
178 | } | 189 | } |
179 | - | ||
180 | - $em = $this->getDoctrine()->getManager(); | ||
181 | - $em->persist($servicio); | 190 | + |
191 | + $em->persist($servicios); | ||
182 | $em->flush(); | 192 | $em->flush(); |
183 | 193 | ||
184 | - $user = $this->getDoctrine()->getRepository('AppBundle:Usuarios')->findOneByIdRolInstitucion($servicio->getIdRolInstitucion()); | 194 | + $user = $this->getDoctrine()->getRepository('AppBundle:Usuarios')->findOneByIdRolInstitucion($servicios->getIdRolInstitucion()); |
185 | 195 | ||
186 | $message = \Swift_Message::newInstance() | 196 | $message = \Swift_Message::newInstance() |
187 | ->setSubject('Resultado Solicitud de Servicio Docente CEA@UBV') | 197 | ->setSubject('Resultado Solicitud de Servicio Docente CEA@UBV') |
@@ -193,7 +203,7 @@ class AppController extends Controller { | @@ -193,7 +203,7 @@ class AppController extends Controller { | ||
193 | array( | 203 | array( |
194 | 'nombres' => $user->getIdRolInstitucion()->getIdRol()->getIdPersona()->getPrimerNombre(), | 204 | 'nombres' => $user->getIdRolInstitucion()->getIdRol()->getIdPersona()->getPrimerNombre(), |
195 | 'apellidos' => $user->getIdRolInstitucion()->getIdRol()->getIdPersona()->getPrimerApellido(), | 205 | 'apellidos' => $user->getIdRolInstitucion()->getIdRol()->getIdPersona()->getPrimerApellido(), |
196 | - 'servicio' => $servicio | 206 | + 'servicio' => $servicios |
197 | ) | 207 | ) |
198 | ), | 208 | ), |
199 | 'text/html' | 209 | 'text/html' |
@@ -204,15 +214,17 @@ class AppController extends Controller { | @@ -204,15 +214,17 @@ class AppController extends Controller { | ||
204 | $this->addFlash('notice', 'Servicio Actualizada Correctamente, hemos enviado un correo al docente notificandole los cambios.'); | 214 | $this->addFlash('notice', 'Servicio Actualizada Correctamente, hemos enviado un correo al docente notificandole los cambios.'); |
205 | 215 | ||
206 | $escala = $this->getDoctrine()->getRepository('AppBundle:DocenteEscala')->findOneBy(array( | 216 | $escala = $this->getDoctrine()->getRepository('AppBundle:DocenteEscala')->findOneBy(array( |
207 | - 'idRolInstitucion' => $servicio->getIdRolInstitucion(), | 217 | + 'idRolInstitucion' => $servicios->getIdRolInstitucion(), |
208 | 'idTipoEscala' => 1 | 218 | 'idTipoEscala' => 1 |
209 | )); | 219 | )); |
210 | 220 | ||
211 | - $adscripcion = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findOneByIdRolInstitucion($servicio->getIdRolInstitucion()); | 221 | + $adscripcion = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findOneByIdRolInstitucion($servicios->getIdRolInstitucion()); |
222 | + $ea = $this->getDoctrine()->getRepository('AppBundle:EstadoAcademico')->findOneByIdDocenteServicio($servicios); | ||
212 | return $this->render('cea/servicios_mostar.html.twig', array( | 223 | return $this->render('cea/servicios_mostar.html.twig', array( |
213 | - 'servicio' => $servicio, | 224 | + 'servicio' => $servicios, |
214 | 'oposicion' => $escala, | 225 | 'oposicion' => $escala, |
215 | - 'adscripcion' => $adscripcion | 226 | + 'adscripcion' => $adscripcion, |
227 | + 'estado_academico' => $ea | ||
216 | )); | 228 | )); |
217 | 229 | ||
218 | } | 230 | } |
src/AppBundle/Controller/EstadoAcademicoController.php
@@ -0,0 +1,211 @@ | @@ -0,0 +1,211 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +/* | ||
4 | + * Copyright (C) 2016 ubv-cipee | ||
5 | + * | ||
6 | + * This program is free software: you can redistribute it and/or modify | ||
7 | + * it under the terms of the GNU General Public License as published by | ||
8 | + * the Free Software Foundation, either version 3 of the License, or | ||
9 | + * (at your option) any later version. | ||
10 | + * | ||
11 | + * This program is distributed in the hope that it will be useful, | ||
12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | + * GNU General Public License for more details. | ||
15 | + * | ||
16 | + * You should have received a copy of the GNU General Public License | ||
17 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
18 | + */ | ||
19 | + | ||
20 | +namespace AppBundle\Controller; | ||
21 | + | ||
22 | + | ||
23 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | ||
24 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | ||
25 | +use Symfony\Bundle\FrameworkBundle\Controller\Controller; | ||
26 | + | ||
27 | +use AppBundle\Entity\Memorando; | ||
28 | +use AppBundle\Entity\DocenteServicio; | ||
29 | +use AppBundle\Entity\EstadoAcademico; | ||
30 | +use Symfony\Component\HttpFoundation\Request; | ||
31 | + | ||
32 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; | ||
33 | + | ||
34 | +/** | ||
35 | + * Description of EstadoAcademicoController | ||
36 | + * | ||
37 | + * @author ubv-cipee | ||
38 | + */ | ||
39 | +class EstadoAcademicoController extends Controller { | ||
40 | + | ||
41 | + /** | ||
42 | + * Muestra la página donde explica brevemente el reconocimiento de EstadoAcademico | ||
43 | + * y permite realizar la solicitud | ||
44 | + * | ||
45 | + * @Route("/servicios/estado_academico/", name="cea_solicitudes_estado_academico") | ||
46 | + * @Method({"GET", "POST"}) | ||
47 | + */ | ||
48 | + public function serviciosEstadoAcademicoIndexAction(Request $request){ | ||
49 | + | ||
50 | + | ||
51 | + $ea = new EstadoAcademico(); | ||
52 | + $form = $this->createForm('AppBundle\Form\EstadoAcademicoType', $ea); | ||
53 | + $form->handleRequest($request); | ||
54 | + // get the value of a $_POST parameter | ||
55 | + if ($form->isSubmitted() && $form->isValid()) { | ||
56 | + | ||
57 | + $existe = $this->getDoctrine()->getRepository('AppBundle:EstadoAcademico')->findOneBy(array( | ||
58 | + 'idRolInstitucion' => $this->getUser()->getIdRolInstitucion(), | ||
59 | + 'idOfertaMallaCurricular' => $ea->getIdOfertaMallaCurricular() | ||
60 | + )); | ||
61 | + | ||
62 | + if(!$existe){ | ||
63 | + $servicios = new DocenteServicio(); | ||
64 | + $servicios->setIdRolInstitucion($this->getUser()->getIdRolInstitucion()); | ||
65 | + $servicios->setIdServicioCe($this->getDoctrine()->getRepository('AppBundle:ServiciosCe')->findOneById(3)); | ||
66 | + $servicios->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:estatus')->findOneById(2)); | ||
67 | + | ||
68 | + $em = $this->getDoctrine()->getManager(); | ||
69 | + $em->persist($servicios); | ||
70 | + $em->flush(); | ||
71 | + | ||
72 | + $ea->setIdDocenteServicio($servicios); | ||
73 | + $ea->setIdGradoAcademico($this->getDoctrine()->getRepository('AppBundle:GradoAcademico')->findOneById(1)); | ||
74 | + $ea->setIdRolInstitucion($this->getUser()->getIdRolInstitucion()); | ||
75 | + | ||
76 | + $em->persist($ea); | ||
77 | + $em->flush(); | ||
78 | + | ||
79 | + | ||
80 | + $this->addFlash('notice', 'Solicitud Creada Correctamente, en lo que la solicitud sea aprobada, se le notificará por correo.'); | ||
81 | + }else{ | ||
82 | + $this->addFlash('warning', 'Solicitud ya existente'); | ||
83 | + } | ||
84 | + | ||
85 | + | ||
86 | + } | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + $ea = $this->getDoctrine()->getRepository('AppBundle:EstadoAcademico')->findByIdRolInstitucion($this->getUser()->getIdRolInstitucion()); | ||
91 | + $oferta = $this->getDoctrine()->getRepository('AppBundle:OfertaMallaCurricular')->findBy(array( | ||
92 | + 'idMallaCurricularInstitucion' => $this->getUser()->getIdRolInstitucion()->getIdInstitucion() | ||
93 | + )); | ||
94 | + | ||
95 | + return $this->render('solicitudes/estado_academico.html.twig', array( | ||
96 | + 'estado_academico' => $ea, | ||
97 | + 'oferta' => $oferta, | ||
98 | + 'form' => $form->createView() | ||
99 | + )); | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + } | ||
104 | + | ||
105 | + | ||
106 | + /** | ||
107 | + * Encuentra y muestra una entidad de tipo Adscripción. | ||
108 | + * | ||
109 | + * @Route("/estado_academico/{id}", name="cea_estado_academico_show") | ||
110 | + * @Method("GET") | ||
111 | + * @Security("has_role('ROLE_COORDINADOR_REGIONAL')") | ||
112 | + */ | ||
113 | + public function solicitudesEstadoAcademicoShowAction(DocenteServicio $servicio) | ||
114 | + { | ||
115 | + $ea = $this->getDoctrine()->getRepository('AppBundle:EstadoAcademico')->findOneByIdDocenteServicio($servicio); | ||
116 | + | ||
117 | + $adscripcion = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findOneByIdRolInstitucion($servicio->getIdRolInstitucion()); | ||
118 | + | ||
119 | + return $this->render('cea/servicios_mostar.html.twig', array( | ||
120 | + 'estado_academico' => $ea, | ||
121 | + 'servicio' => $servicio, | ||
122 | + )); | ||
123 | + } | ||
124 | + | ||
125 | + | ||
126 | + /** | ||
127 | + * | ||
128 | + * | ||
129 | + * @Route("/mis_servicios/estado_academico/imprimir/{id}", name="servicio_estado_academico_imprimir") | ||
130 | + * @Method({"GET", "POST"}) | ||
131 | + */ | ||
132 | + public function serviciosEstadoAcademicoImprimirAction(DocenteServicio $estado_academico){ | ||
133 | + | ||
134 | + | ||
135 | + | ||
136 | + if($estado_academico->getIdEstatus()->getId() == 1){ | ||
137 | + $adscripcion = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findOneByIdRolInstitucion($estado_academico->getIdRolInstitucion()); | ||
138 | + $escala = $this->getDoctrine()->getRepository('AppBundle:DocenteEscala')->findOneByIdRolInstitucion($estado_academico->getIdRolInstitucion()); | ||
139 | + $idRol = $escala->getIdRolInstitucion()->getId(); | ||
140 | + $stmt = $this->getDoctrine()->getManager() | ||
141 | + ->getConnection() | ||
142 | + ->prepare("select age(e.fecha_escala, a.fecha_ingreso), | ||
143 | + date_part('year',age(e.fecha_escala, a.fecha_ingreso)) as anos, | ||
144 | + date_part('month',age(e.fecha_escala, a.fecha_ingreso)) as meses, | ||
145 | + date_part('day',age(e.fecha_escala, a.fecha_ingreso)) as dias | ||
146 | + FROM docente_escala as e | ||
147 | + INNER JOIN solicitud_adscripcion as a | ||
148 | + ON a.id_rol_institucion = e.id_rol_institucion | ||
149 | + WHERE e.id_tipo_escala = '1' AND a.id_rol_institucion = $idRol"); | ||
150 | + $stmt->execute(); | ||
151 | + $result = $stmt->fetchAll(); | ||
152 | + $recon = $result[0]['anos'] . " años " . $result[0]['meses'] . " meses y " . $result[0]['dias'] . " días."; | ||
153 | + | ||
154 | + $correlativo = $this->getDoctrine()->getRepository('AppBundle:Memorando')->findOneByIdDocenteServicio($estado_academico->getId()); | ||
155 | + | ||
156 | + if(!$correlativo){ | ||
157 | + $correlativo = $this->getDoctrine()->getRepository('AppBundle:Memorando')->findOneBy( | ||
158 | + array('ano'=> date("Y")), | ||
159 | + array('id' => 'DESC') | ||
160 | + ); | ||
161 | + $numero = 1; | ||
162 | + if ($correlativo) $numero = $correlativo->getCorrelativo() + 1; | ||
163 | + | ||
164 | + $memo = new Memorando(); | ||
165 | + $memo->setCorrelativo($numero); | ||
166 | + $memo->setIdDocenteServicio($estado_academico); | ||
167 | + $memo->setAno(date("Y")); | ||
168 | + $memo->setIdEstatus($this->getDoctrine()->getRepository("AppBundle:Estatus")->findOneById(1)); | ||
169 | + | ||
170 | + $em = $this->getDoctrine()->getManager(); | ||
171 | + $em->persist($memo); | ||
172 | + $em->flush(); | ||
173 | + $memorando = $memo->getCorrelativo() . "-" . $memo->getAno(); | ||
174 | + }else{ | ||
175 | + $memorando = $correlativo->getCorrelativo() . "-" . $correlativo->getAno(); | ||
176 | + } | ||
177 | + | ||
178 | + return $this->render('memorando/estado_academico.html.twig', array( | ||
179 | + 'estado_academico' => $estado_academico, | ||
180 | + 'adscripcion' => $adscripcion, | ||
181 | + 'escala' => $escala, | ||
182 | + 'diferencia' => $recon, | ||
183 | + 'correlativo' => $memorando | ||
184 | + )); | ||
185 | + | ||
186 | + | ||
187 | + }else{ | ||
188 | + | ||
189 | + $this->addFlash('danger', 'No Puede Imprimir el reconocimiento de EstadoAcademico hasta que esté aprobado por el coordinador del CEA.'); | ||
190 | + | ||
191 | + $servicios = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findByIdRolInstitucion($this->getUser()->getIdRolInstitucion()); | ||
192 | + $adscripcion = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findByIdRolInstitucion($this->getUser()->getIdRolInstitucion()); | ||
193 | + | ||
194 | + | ||
195 | + return $this->render('solicitudes/index.html.twig', array( | ||
196 | + 'servicios' => $servicios, | ||
197 | + 'adscripcion' => $adscripcion | ||
198 | + )); | ||
199 | + | ||
200 | + } | ||
201 | + | ||
202 | + | ||
203 | + | ||
204 | + } | ||
205 | + | ||
206 | + | ||
207 | + | ||
208 | + | ||
209 | + | ||
210 | + //put your code here | ||
211 | +} |
src/AppBundle/Controller/OfertaAcademicaController.php
@@ -0,0 +1,140 @@ | @@ -0,0 +1,140 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Controller; | ||
4 | + | ||
5 | +use Symfony\Component\HttpFoundation\Request; | ||
6 | +use Symfony\Bundle\FrameworkBundle\Controller\Controller; | ||
7 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | ||
8 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | ||
9 | +use AppBundle\Entity\OfertaAcademica; | ||
10 | +use AppBundle\Form\OfertaAcademicaType; | ||
11 | + | ||
12 | +/** | ||
13 | + * OfertaAcademica controller. | ||
14 | + * | ||
15 | + * @Route("/ceapp/gestion/oferta_academica") | ||
16 | + */ | ||
17 | +class OfertaAcademicaController extends Controller | ||
18 | +{ | ||
19 | + /** | ||
20 | + * Lists all OfertaAcademica entities. | ||
21 | + * | ||
22 | + * @Route("/", name="ceapp_gestion_oferta_academica_index") | ||
23 | + * @Method("GET") | ||
24 | + */ | ||
25 | + public function indexAction() | ||
26 | + { | ||
27 | + $em = $this->getDoctrine()->getManager(); | ||
28 | + | ||
29 | + $ofertaAcademicas = $em->getRepository('AppBundle:OfertaAcademica')->findAll(); | ||
30 | + | ||
31 | + return $this->render('ofertaacademica/index.html.twig', array( | ||
32 | + 'ofertaAcademicas' => $ofertaAcademicas, | ||
33 | + )); | ||
34 | + } | ||
35 | + | ||
36 | + /** | ||
37 | + * Creates a new OfertaAcademica entity. | ||
38 | + * | ||
39 | + * @Route("/new", name="ceapp_gestion_oferta_academica_new") | ||
40 | + * @Method({"GET", "POST"}) | ||
41 | + */ | ||
42 | + public function newAction(Request $request) | ||
43 | + { | ||
44 | + $ofertaAcademica = new OfertaAcademica(); | ||
45 | + $form = $this->createForm('AppBundle\Form\OfertaAcademicaType', $ofertaAcademica); | ||
46 | + $form->handleRequest($request); | ||
47 | + | ||
48 | + if ($form->isSubmitted() && $form->isValid()) { | ||
49 | + $em = $this->getDoctrine()->getManager(); | ||
50 | + $em->persist($ofertaAcademica); | ||
51 | + $em->flush(); | ||
52 | + | ||
53 | + return $this->redirectToRoute('ceapp_gestion_oferta_academica_show', array('id' => $ofertaAcademica->getId())); | ||
54 | + } | ||
55 | + | ||
56 | + return $this->render('ofertaacademica/new.html.twig', array( | ||
57 | + 'ofertaAcademica' => $ofertaAcademica, | ||
58 | + 'form' => $form->createView(), | ||
59 | + )); | ||
60 | + } | ||
61 | + | ||
62 | + /** | ||
63 | + * Finds and displays a OfertaAcademica entity. | ||
64 | + * | ||
65 | + * @Route("/{id}", name="ceapp_gestion_oferta_academica_show") | ||
66 | + * @Method("GET") | ||
67 | + */ | ||
68 | + public function showAction(OfertaAcademica $ofertaAcademica) | ||
69 | + { | ||
70 | + $deleteForm = $this->createDeleteForm($ofertaAcademica); | ||
71 | + | ||
72 | + return $this->render('ofertaacademica/show.html.twig', array( | ||
73 | + 'ofertaAcademica' => $ofertaAcademica, | ||
74 | + 'delete_form' => $deleteForm->createView(), | ||
75 | + )); | ||
76 | + } | ||
77 | + | ||
78 | + /** | ||
79 | + * Displays a form to edit an existing OfertaAcademica entity. | ||
80 | + * | ||
81 | + * @Route("/{id}/edit", name="ceapp_gestion_oferta_academica_edit") | ||
82 | + * @Method({"GET", "POST"}) | ||
83 | + */ | ||
84 | + public function editAction(Request $request, OfertaAcademica $ofertaAcademica) | ||
85 | + { | ||
86 | + $deleteForm = $this->createDeleteForm($ofertaAcademica); | ||
87 | + $editForm = $this->createForm('AppBundle\Form\OfertaAcademicaType', $ofertaAcademica); | ||
88 | + $editForm->handleRequest($request); | ||
89 | + | ||
90 | + if ($editForm->isSubmitted() && $editForm->isValid()) { | ||
91 | + $em = $this->getDoctrine()->getManager(); | ||
92 | + $em->persist($ofertaAcademica); | ||
93 | + $em->flush(); | ||
94 | + | ||
95 | + return $this->redirectToRoute('ceapp_gestion_oferta_academica_edit', array('id' => $ofertaAcademica->getId())); | ||
96 | + } | ||
97 | + | ||
98 | + return $this->render('ofertaacademica/edit.html.twig', array( | ||
99 | + 'ofertaAcademica' => $ofertaAcademica, | ||
100 | + 'edit_form' => $editForm->createView(), | ||
101 | + 'delete_form' => $deleteForm->createView(), | ||
102 | + )); | ||
103 | + } | ||
104 | + | ||
105 | + /** | ||
106 | + * Deletes a OfertaAcademica entity. | ||
107 | + * | ||
108 | + * @Route("/{id}", name="ceapp_gestion_oferta_academica_delete") | ||
109 | + * @Method("DELETE") | ||
110 | + */ | ||
111 | + public function deleteAction(Request $request, OfertaAcademica $ofertaAcademica) | ||
112 | + { | ||
113 | + $form = $this->createDeleteForm($ofertaAcademica); | ||
114 | + $form->handleRequest($request); | ||
115 | + | ||
116 | + if ($form->isSubmitted() && $form->isValid()) { | ||
117 | + $em = $this->getDoctrine()->getManager(); | ||
118 | + $em->remove($ofertaAcademica); | ||
119 | + $em->flush(); | ||
120 | + } | ||
121 | + | ||
122 | + return $this->redirectToRoute('ceapp_gestion_oferta_academica_index'); | ||
123 | + } | ||
124 | + | ||
125 | + /** | ||
126 | + * Creates a form to delete a OfertaAcademica entity. | ||
127 | + * | ||
128 | + * @param OfertaAcademica $ofertaAcademica The OfertaAcademica entity | ||
129 | + * | ||
130 | + * @return \Symfony\Component\Form\Form The form | ||
131 | + */ | ||
132 | + private function createDeleteForm(OfertaAcademica $ofertaAcademica) | ||
133 | + { | ||
134 | + return $this->createFormBuilder() | ||
135 | + ->setAction($this->generateUrl('ceapp_gestion_oferta_academica_delete', array('id' => $ofertaAcademica->getId()))) | ||
136 | + ->setMethod('DELETE') | ||
137 | + ->getForm() | ||
138 | + ; | ||
139 | + } | ||
140 | +} |
src/AppBundle/Entity/DocenteServicio.php
@@ -67,13 +67,13 @@ class DocenteServicio { | @@ -67,13 +67,13 @@ class DocenteServicio { | ||
67 | /** | 67 | /** |
68 | * @Assert\Date() | 68 | * @Assert\Date() |
69 | */ | 69 | */ |
70 | - private $fecha_solicitud; | 70 | + private $fechaSolicitud; |
71 | 71 | ||
72 | /** @ORM\Column(type="date", nullable=false, options={"comment" = "Fecha de actualizada la solicitud"}) | 72 | /** @ORM\Column(type="date", nullable=false, options={"comment" = "Fecha de actualizada la solicitud"}) |
73 | /** | 73 | /** |
74 | * @Assert\Date() | 74 | * @Assert\Date() |
75 | */ | 75 | */ |
76 | - private $fecha_ultima_actualizacion; | 76 | + private $fechaUltimaActualizacion; |
77 | 77 | ||
78 | 78 | ||
79 | /** | 79 | /** |
@@ -127,13 +127,13 @@ class DocenteServicio { | @@ -127,13 +127,13 @@ class DocenteServicio { | ||
127 | */ | 127 | */ |
128 | public function setFechaSolicitud() | 128 | public function setFechaSolicitud() |
129 | { | 129 | { |
130 | - $this->fecha_solicitud = new \DateTime(); | ||
131 | - $this->fecha_ultima_actualizacion = new \DateTime(); | 130 | + $this->fechaSolicitud = new \DateTime(); |
131 | + $this->fechaUltimaActualizacion = new \DateTime(); | ||
132 | } | 132 | } |
133 | 133 | ||
134 | public function getFechaSolicitud() | 134 | public function getFechaSolicitud() |
135 | { | 135 | { |
136 | - return $this->fecha_solicitud; | 136 | + return $this->fechaSolicitud; |
137 | } | 137 | } |
138 | 138 | ||
139 | /** | 139 | /** |
@@ -141,7 +141,7 @@ class DocenteServicio { | @@ -141,7 +141,7 @@ class DocenteServicio { | ||
141 | */ | 141 | */ |
142 | public function setFechaUltimaActualizacion() | 142 | public function setFechaUltimaActualizacion() |
143 | { | 143 | { |
144 | - $this->fecha_utlima_actualizacion = new \DateTime(); | 144 | + $this->fechaUltimaActualizacion = new \DateTime(); |
145 | } | 145 | } |
146 | 146 | ||
147 | 147 | ||
@@ -191,4 +191,14 @@ class DocenteServicio { | @@ -191,4 +191,14 @@ class DocenteServicio { | ||
191 | { | 191 | { |
192 | return $this->idServicioCe; | 192 | return $this->idServicioCe; |
193 | } | 193 | } |
194 | + | ||
195 | + /** | ||
196 | + * Get fechaUltimaActualizacion | ||
197 | + * | ||
198 | + * @return \DateTime | ||
199 | + */ | ||
200 | + public function getFechaUltimaActualizacion() | ||
201 | + { | ||
202 | + return $this->fechaUltimaActualizacion; | ||
203 | + } | ||
194 | } | 204 | } |
src/AppBundle/Entity/DocenteServicio.php~
@@ -0,0 +1,194 @@ | @@ -0,0 +1,194 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +/* | ||
4 | + * Copyright (C) 2016 ubv-cipee | ||
5 | + * | ||
6 | + * This program is free software: you can redistribute it and/or modify | ||
7 | + * it under the terms of the GNU General Public License as published by | ||
8 | + * the Free Software Foundation, either version 3 of the License, or | ||
9 | + * (at your option) any later version. | ||
10 | + * | ||
11 | + * This program is distributed in the hope that it will be useful, | ||
12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | + * GNU General Public License for more details. | ||
15 | + * | ||
16 | + * You should have received a copy of the GNU General Public License | ||
17 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
18 | + */ | ||
19 | + | ||
20 | +namespace AppBundle\Entity; | ||
21 | +use Doctrine\ORM\Mapping as ORM; | ||
22 | +use Symfony\Component\Validator\Constraints as Assert; | ||
23 | + | ||
24 | +/** | ||
25 | + * DocenteServicio | ||
26 | + * | ||
27 | + * @ORM\Table(name="docente_servicio" ) | ||
28 | + * @ORM\Entity | ||
29 | + * @ORM\HasLifecycleCallbacks() | ||
30 | + */ | ||
31 | +class DocenteServicio { | ||
32 | + | ||
33 | + /** | ||
34 | + * @var integer | ||
35 | + * | ||
36 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la Adscripcion"}) | ||
37 | + * @ORM\Id | ||
38 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
39 | + * @ORM\SequenceGenerator(sequenceName="adscripcion_id_seq", allocationSize=1, initialValue=1) | ||
40 | + */ | ||
41 | + private $id; | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + /** | ||
46 | + * @var \AppBundle\Entity\RolInstitucion | ||
47 | + * | ||
48 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\RolInstitucion") | ||
49 | + * @ORM\JoinColumns({ | ||
50 | + * @ORM\JoinColumn(name="id_rol_institucion", referencedColumnName="id", nullable=false) | ||
51 | + * }) | ||
52 | + */ | ||
53 | + protected $idRolInstitucion; | ||
54 | + | ||
55 | + | ||
56 | + /** | ||
57 | + * @var \AppBundle\Entity\ServiciosCe | ||
58 | + * | ||
59 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\ServiciosCe") | ||
60 | + * @ORM\JoinColumns({ | ||
61 | + * @ORM\JoinColumn(name="id_servicio_ce", referencedColumnName="id", nullable=false) | ||
62 | + * }) | ||
63 | + */ | ||
64 | + protected $idServicioCe; | ||
65 | + | ||
66 | + /** @ORM\Column(type="date", nullable=false, options={"comment" = "Fecha de creación de la solicitud"}) | ||
67 | + /** | ||
68 | + * @Assert\Date() | ||
69 | + */ | ||
70 | + private $fechaSolicitud; | ||
71 | + | ||
72 | + /** @ORM\Column(type="date", nullable=false, options={"comment" = "Fecha de actualizada la solicitud"}) | ||
73 | + /** | ||
74 | + * @Assert\Date() | ||
75 | + */ | ||
76 | + private $fechaUltimaActualizacion; | ||
77 | + | ||
78 | + | ||
79 | + /** | ||
80 | + * @var \AppBundle\Entity\Estatus | ||
81 | + * | ||
82 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Estatus") | ||
83 | + * @ORM\JoinColumns({ | ||
84 | + * @ORM\JoinColumn(name="id_estatus", referencedColumnName="id", nullable=false) | ||
85 | + * }) | ||
86 | + */ | ||
87 | + protected $idEstatus; | ||
88 | + | ||
89 | + | ||
90 | + /** | ||
91 | + * Get id | ||
92 | + * | ||
93 | + * @return integer | ||
94 | + */ | ||
95 | + public function getId() | ||
96 | + { | ||
97 | + return $this->id; | ||
98 | + } | ||
99 | + | ||
100 | + | ||
101 | + /** | ||
102 | + * Set idRolInstitucion | ||
103 | + * | ||
104 | + * @param \AppBundle\Entity\RolInstitucion $idRolInstitucion | ||
105 | + * @return Usuarios | ||
106 | + */ | ||
107 | + public function setIdRolInstitucion(\AppBundle\Entity\RolInstitucion $idRolInstitucion = null) | ||
108 | + { | ||
109 | + $this->idRolInstitucion = $idRolInstitucion; | ||
110 | + | ||
111 | + return $this; | ||
112 | + } | ||
113 | + | ||
114 | + /** | ||
115 | + * Get idRolInstitucion | ||
116 | + * | ||
117 | + * @return \AppBundle\Entity\RolInstitucion | ||
118 | + */ | ||
119 | + public function getIdRolInstitucion() | ||
120 | + { | ||
121 | + return $this->idRolInstitucion; | ||
122 | + } | ||
123 | + | ||
124 | + | ||
125 | + /** | ||
126 | + * @ORM\PrePersist | ||
127 | + */ | ||
128 | + public function setFechaSolicitud() | ||
129 | + { | ||
130 | + $this->fecha_solicitud = new \DateTime(); | ||
131 | + $this->fecha_ultima_actualizacion = new \DateTime(); | ||
132 | + } | ||
133 | + | ||
134 | + public function getFechaSolicitud() | ||
135 | + { | ||
136 | + return $this->fecha_solicitud; | ||
137 | + } | ||
138 | + | ||
139 | + /** | ||
140 | + * @ORM\PreUpdate | ||
141 | + */ | ||
142 | + public function setFechaUltimaActualizacion() | ||
143 | + { | ||
144 | + $this->fecha_utlima_actualizacion = new \DateTime(); | ||
145 | + } | ||
146 | + | ||
147 | + | ||
148 | + /** | ||
149 | + * Set idEstatus | ||
150 | + * | ||
151 | + * @param \AppBundle\Entity\Estatus $idEstatus | ||
152 | + * @return Estatus | ||
153 | + */ | ||
154 | + public function setIdEstatus(\AppBundle\Entity\Estatus $idEstatus = null) | ||
155 | + { | ||
156 | + $this->idEstatus = $idEstatus; | ||
157 | + | ||
158 | + return $this; | ||
159 | + } | ||
160 | + | ||
161 | + /** | ||
162 | + * Get idEstatus | ||
163 | + * | ||
164 | + * @return \AppBundle\Entity\Estatus | ||
165 | + */ | ||
166 | + public function getIdEstatus() | ||
167 | + { | ||
168 | + return $this->idEstatus; | ||
169 | + } | ||
170 | + | ||
171 | + | ||
172 | + /** | ||
173 | + * Set $idServicioCe | ||
174 | + * | ||
175 | + * @param \AppBundle\Entity\ServiciosCe $idEstatus | ||
176 | + * @return ServicioCe | ||
177 | + */ | ||
178 | + public function setIdServicioCe(\AppBundle\Entity\ServiciosCe $idServicioCe = null) | ||
179 | + { | ||
180 | + $this->idServicioCe = $idServicioCe; | ||
181 | + | ||
182 | + return $this; | ||
183 | + } | ||
184 | + | ||
185 | + /** | ||
186 | + * Get $idServicioCe | ||
187 | + * | ||
188 | + * @return \AppBundle\Entity\ServiciosCe | ||
189 | + */ | ||
190 | + public function getIdServicioCe() | ||
191 | + { | ||
192 | + return $this->idServicioCe; | ||
193 | + } | ||
194 | +} |
src/AppBundle/Entity/EstadoAcademico.php
@@ -0,0 +1,227 @@ | @@ -0,0 +1,227 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * EstadoAcademico | ||
9 | + * | ||
10 | + * @ORM\Table(name="estado_academico", uniqueConstraints={@ORM\UniqueConstraint(name="i_rol_institucion_oferta_malla", columns={"id_rol_institucion", "id_oferta_malla_curricular"})}, indexes = {@ORM\Index(name="fki_docente_servicio_estado_academico", columns={"id_docente_servicio"}), @ORM\Index(name="fki_grado_academico_estado_academico", columns={"id_grado_academico"}), @ORM\Index(name="fki_oferta_malla_curricular_estado_academico", columns={"id_oferta_malla_curricular"}), @ORM\Index(name="fki_rol_institucion_estado_academico", columns={"id_rol_institucion"})}) | ||
11 | + * @ORM\Entity | ||
12 | + * @ORM\HasLifecycleCallbacks() | ||
13 | + */ | ||
14 | +class EstadoAcademico | ||
15 | +{ | ||
16 | + /** | ||
17 | + * @var \DateTime | ||
18 | + * | ||
19 | + * @ORM\Column(name="fecha", type="date", nullable=false, options={"comment" = "fecha de registro del estdo academico"}) | ||
20 | + */ | ||
21 | + private $fecha; | ||
22 | + | ||
23 | + /** | ||
24 | + * @var string | ||
25 | + * | ||
26 | + * @ORM\Column(name="observacion", type="string", length=255, nullable=true, options={"comment" = "observacion del registro"}) | ||
27 | + */ | ||
28 | + private $observacion; | ||
29 | + | ||
30 | + /** | ||
31 | + * @var integer | ||
32 | + * | ||
33 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del estado academico"}) | ||
34 | + * @ORM\Id | ||
35 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
36 | + * @ORM\SequenceGenerator(sequenceName="estado_academico_id_seq", allocationSize=1, initialValue=1) | ||
37 | + */ | ||
38 | + private $id; | ||
39 | + | ||
40 | + /** | ||
41 | + * @var \AppBundle\Entity\DocenteServicio | ||
42 | + * | ||
43 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\DocenteServicio") | ||
44 | + * @ORM\JoinColumns({ | ||
45 | + * @ORM\JoinColumn(name="id_docente_servicio", referencedColumnName="id", nullable=false) | ||
46 | + * }) | ||
47 | + */ | ||
48 | + private $idDocenteServicio; | ||
49 | + | ||
50 | + /** | ||
51 | + * @var \AppBundle\Entity\RolInstitucion | ||
52 | + * | ||
53 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\RolInstitucion") | ||
54 | + * @ORM\JoinColumns({ | ||
55 | + * @ORM\JoinColumn(name="id_rol_institucion", referencedColumnName="id", nullable=false) | ||
56 | + * }) | ||
57 | + */ | ||
58 | + private $idRolInstitucion; | ||
59 | + | ||
60 | + | ||
61 | + /** | ||
62 | + * @var \AppBundle\Entity\MallaCurricular | ||
63 | + * | ||
64 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\OfertaMallaCurricular") | ||
65 | + * @ORM\JoinColumns({ | ||
66 | + * @ORM\JoinColumn(name="id_oferta_malla_curricular", referencedColumnName="id", nullable=false) | ||
67 | + * }) | ||
68 | + */ | ||
69 | + private $idOfertaMallaCurricular; | ||
70 | + | ||
71 | + /** | ||
72 | + * @var \AppBundle\Entity\GradoAcademico | ||
73 | + * | ||
74 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\GradoAcademico") | ||
75 | + * @ORM\JoinColumns({ | ||
76 | + * @ORM\JoinColumn(name="id_grado_academico", referencedColumnName="id",nullable=false) | ||
77 | + * }) | ||
78 | + */ | ||
79 | + private $idGradoAcademico; | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + /** | ||
84 | + * @ORM\PrePersist | ||
85 | + */ | ||
86 | + public function setFecha() | ||
87 | + { | ||
88 | + $this->fecha = new \DateTime(); | ||
89 | + | ||
90 | + return $this; | ||
91 | + } | ||
92 | + | ||
93 | + /** | ||
94 | + * Get fecha | ||
95 | + * | ||
96 | + * @return \DateTime | ||
97 | + */ | ||
98 | + public function getFecha() | ||
99 | + { | ||
100 | + return $this->fecha; | ||
101 | + } | ||
102 | + | ||
103 | + /** | ||
104 | + * Set observacion | ||
105 | + * | ||
106 | + * @param string $observacion | ||
107 | + * @return EstadoAcademico | ||
108 | + */ | ||
109 | + public function setObservacion($observacion) | ||
110 | + { | ||
111 | + $this->observacion = $observacion; | ||
112 | + | ||
113 | + return $this; | ||
114 | + } | ||
115 | + | ||
116 | + /** | ||
117 | + * Get observacion | ||
118 | + * | ||
119 | + * @return string | ||
120 | + */ | ||
121 | + public function getObservacion() | ||
122 | + { | ||
123 | + return $this->observacion; | ||
124 | + } | ||
125 | + | ||
126 | + /** | ||
127 | + * Get id | ||
128 | + * | ||
129 | + * @return integer | ||
130 | + */ | ||
131 | + public function getId() | ||
132 | + { | ||
133 | + return $this->id; | ||
134 | + } | ||
135 | + | ||
136 | + /** | ||
137 | + * Set idDocenteServicio | ||
138 | + * | ||
139 | + * @param \AppBundle\Entity\DocenteServicio $idDocenteServicio | ||
140 | + * @return EstadoAcademico | ||
141 | + */ | ||
142 | + public function setIdDocenteServicio(\AppBundle\Entity\DocenteServicio $idDocenteServicio) | ||
143 | + { | ||
144 | + $this->idDocenteServicio = $idDocenteServicio; | ||
145 | + | ||
146 | + return $this; | ||
147 | + } | ||
148 | + | ||
149 | + /** | ||
150 | + * Get idDocenteServicio | ||
151 | + * | ||
152 | + * @return \AppBundle\Entity\DocenteServicio | ||
153 | + */ | ||
154 | + public function getIdDocenteServicio() | ||
155 | + { | ||
156 | + return $this->idDocenteServicio; | ||
157 | + } | ||
158 | + | ||
159 | + /** | ||
160 | + * Set idRolInstitucion | ||
161 | + * | ||
162 | + * @param \AppBundle\Entity\RolInstitucion $idRolInstitucion | ||
163 | + * @return EstadoAcademico | ||
164 | + */ | ||
165 | + public function setIdRolInstitucion(\AppBundle\Entity\RolInstitucion $idRolInstitucion) | ||
166 | + { | ||
167 | + $this->idRolInstitucion = $idRolInstitucion; | ||
168 | + | ||
169 | + return $this; | ||
170 | + } | ||
171 | + | ||
172 | + /** | ||
173 | + * Get idRolInstitucion | ||
174 | + * | ||
175 | + * @return \AppBundle\Entity\RolInstitucion | ||
176 | + */ | ||
177 | + public function getIdRolInstitucion() | ||
178 | + { | ||
179 | + return $this->idRolInstitucion; | ||
180 | + } | ||
181 | + | ||
182 | + /** | ||
183 | + * Set idOfertaMallaCurricular | ||
184 | + * | ||
185 | + * @param \AppBundle\Entity\OfertaMallaCurricular $idOfertaMallaCurricular | ||
186 | + * @return EstadoAcademico | ||
187 | + */ | ||
188 | + public function setIdOfertaMallaCurricular(\AppBundle\Entity\OfertaMallaCurricular $idOfertaMallaCurricular) | ||
189 | + { | ||
190 | + $this->idOfertaMallaCurricular = $idOfertaMallaCurricular; | ||
191 | + | ||
192 | + return $this; | ||
193 | + } | ||
194 | + | ||
195 | + /** | ||
196 | + * Get idOfertaMallaCurricular | ||
197 | + * | ||
198 | + * @return \AppBundle\Entity\OfertaMallaCurricular | ||
199 | + */ | ||
200 | + public function getIdOfertaMallaCurricular() | ||
201 | + { | ||
202 | + return $this->idOfertaMallaCurricular; | ||
203 | + } | ||
204 | + | ||
205 | + /** | ||
206 | + * Set idGradoAcademico | ||
207 | + * | ||
208 | + * @param \AppBundle\Entity\GradoAcademico $idGradoAcademico | ||
209 | + * @return EstadoAcademico | ||
210 | + */ | ||
211 | + public function setIdGradoAcademico(\AppBundle\Entity\GradoAcademico $idGradoAcademico) | ||
212 | + { | ||
213 | + $this->idGradoAcademico = $idGradoAcademico; | ||
214 | + | ||
215 | + return $this; | ||
216 | + } | ||
217 | + | ||
218 | + /** | ||
219 | + * Get idGradoAcademico | ||
220 | + * | ||
221 | + * @return \AppBundle\Entity\GradoAcademico | ||
222 | + */ | ||
223 | + public function getIdGradoAcademico() | ||
224 | + { | ||
225 | + return $this->idGradoAcademico; | ||
226 | + } | ||
227 | +} |
src/AppBundle/Entity/EstadoAcademico.php~
@@ -0,0 +1,81 @@ | @@ -0,0 +1,81 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * EstadoAcademico | ||
9 | + * | ||
10 | + * @ORM\Table(name="estado_academico", indexes={@ORM\Index(name="fki_id_perido", columns={"id_periodo"}), @ORM\Index(name="fki_docente_servicio_estado_academico", columns={"id_docente_servicio"}), @ORM\Index(name="fki_grado_academico_estado_academico", columns={"id_grado_academico"}), @ORM\Index(name="fki_malla_curricular_estado_academico", columns={"id_malla_curricular"}), @ORM\Index(name="fki_rol_institucion_estado_academico", columns={"id_rol_institucion"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class EstadoAcademico | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var \DateTime | ||
17 | + * | ||
18 | + * @ORM\Column(name="fecha", type="date", nullable=false, options={"comment" = "fecha de registro del estdo academico"}) | ||
19 | + */ | ||
20 | + private $fecha; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var string | ||
24 | + * | ||
25 | + * @ORM\Column(name="observacion", type="string", length=255, nullable=true, options={"comment" = "observacion del registro"}) | ||
26 | + */ | ||
27 | + private $observacion; | ||
28 | + | ||
29 | + /** | ||
30 | + * @var integer | ||
31 | + * | ||
32 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del estado academico"}) | ||
33 | + * @ORM\Id | ||
34 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
35 | + * @ORM\SequenceGenerator(sequenceName="estado_academico_id_seq", allocationSize=1, initialValue=1) | ||
36 | + */ | ||
37 | + private $id; | ||
38 | + | ||
39 | + /** | ||
40 | + * @var \AppBundle\Entity\DocenteServicio | ||
41 | + * | ||
42 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\DocenteServicio") | ||
43 | + * @ORM\JoinColumns({ | ||
44 | + * @ORM\JoinColumn(name="id_docente_servicio", referencedColumnName="id", nullable=false) | ||
45 | + * }) | ||
46 | + */ | ||
47 | + private $idDocenteServicio; | ||
48 | + | ||
49 | + /** | ||
50 | + * @var \AppBundle\Entity\RolInstitucion | ||
51 | + * | ||
52 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\RolInstitucion") | ||
53 | + * @ORM\JoinColumns({ | ||
54 | + * @ORM\JoinColumn(name="id_rol_institucion", referencedColumnName="id", nullable=false) | ||
55 | + * }) | ||
56 | + */ | ||
57 | + private $idRolInstitucion; | ||
58 | + | ||
59 | + | ||
60 | + /** | ||
61 | + * @var \AppBundle\Entity\MallaCurricular | ||
62 | + * | ||
63 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\OfertaMallaCurricular") | ||
64 | + * @ORM\JoinColumns({ | ||
65 | + * @ORM\JoinColumn(name="id_oferta_malla_curricular", referencedColumnName="id", nullable=false) | ||
66 | + * }) | ||
67 | + */ | ||
68 | + private $idOfertaMallaCurricular; | ||
69 | + | ||
70 | + /** | ||
71 | + * @var \AppBundle\Entity\GradoAcademico | ||
72 | + * | ||
73 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\GradoAcademico") | ||
74 | + * @ORM\JoinColumns({ | ||
75 | + * @ORM\JoinColumn(name="id_grado_academico", referencedColumnName="id",nullable=false) | ||
76 | + * }) | ||
77 | + */ | ||
78 | + private $idGradoAcademico; | ||
79 | + | ||
80 | + | ||
81 | +} |
src/AppBundle/Entity/GradoAcademico.php
@@ -0,0 +1,96 @@ | @@ -0,0 +1,96 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * GradoAcademico | ||
9 | + * | ||
10 | + * @ORM\Table(name="grado_academico", uniqueConstraints={@ORM\UniqueConstraint(name="uq_grado_academico", columns={"nombre", "abreviacion"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class GradoAcademico | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=30, nullable=false, options={"comment" = "Nombre del grado academico"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var string | ||
24 | + * | ||
25 | + * @ORM\Column(name="abreviacion", type="string", length=5, nullable=false, options={"comment" = "Siglas del grado academico Ejm. Lic., TSU"}) | ||
26 | + */ | ||
27 | + private $abreviacion; | ||
28 | + | ||
29 | + /** | ||
30 | + * @var integer | ||
31 | + * | ||
32 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador del grado_academico"}) | ||
33 | + * @ORM\Id | ||
34 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
35 | + * @ORM\SequenceGenerator(sequenceName="grado_academico_id_seq", allocationSize=1, initialValue=1) | ||
36 | + */ | ||
37 | + private $id; | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + /** | ||
42 | + * Set nombre | ||
43 | + * | ||
44 | + * @param string $nombre | ||
45 | + * @return GradoAcademico | ||
46 | + */ | ||
47 | + public function setNombre($nombre) | ||
48 | + { | ||
49 | + $this->nombre = $nombre; | ||
50 | + | ||
51 | + return $this; | ||
52 | + } | ||
53 | + | ||
54 | + /** | ||
55 | + * Get nombre | ||
56 | + * | ||
57 | + * @return string | ||
58 | + */ | ||
59 | + public function getNombre() | ||
60 | + { | ||
61 | + return $this->nombre; | ||
62 | + } | ||
63 | + | ||
64 | + /** | ||
65 | + * Set abreviacion | ||
66 | + * | ||
67 | + * @param string $abreviacion | ||
68 | + * @return GradoAcademico | ||
69 | + */ | ||
70 | + public function setAbreviacion($abreviacion) | ||
71 | + { | ||
72 | + $this->abreviacion = $abreviacion; | ||
73 | + | ||
74 | + return $this; | ||
75 | + } | ||
76 | + | ||
77 | + /** | ||
78 | + * Get abreviacion | ||
79 | + * | ||
80 | + * @return string | ||
81 | + */ | ||
82 | + public function getAbreviacion() | ||
83 | + { | ||
84 | + return $this->abreviacion; | ||
85 | + } | ||
86 | + | ||
87 | + /** | ||
88 | + * Get id | ||
89 | + * | ||
90 | + * @return integer | ||
91 | + */ | ||
92 | + public function getId() | ||
93 | + { | ||
94 | + return $this->id; | ||
95 | + } | ||
96 | +} |
src/AppBundle/Entity/GradoAcademico.php~
@@ -0,0 +1,96 @@ | @@ -0,0 +1,96 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * GradoAcademico | ||
9 | + * | ||
10 | + * @ORM\Table(name="grado_academico", uniqueConstraints={@ORM\UniqueConstraint(name="uq_grado_academico", columns={"nombre", "abreviacion"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class GradoAcademico | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=30, nullable=false, options={"comment" = "Nombre del grado academico"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var string | ||
24 | + * | ||
25 | + * @ORM\Column(name="abreviacion", type="string", length=5, nullable=false, options={"comment" = "Siglas del grado academico Ejm. Lic., TSU"}) | ||
26 | + */ | ||
27 | + private $abreviacion; | ||
28 | + | ||
29 | + /** | ||
30 | + * @var integer | ||
31 | + * | ||
32 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador del grado_academico"}) | ||
33 | + * @ORM\Id | ||
34 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
35 | + * @ORM\SequenceGenerator(sequenceName="grado_academico_id_seq", allocationSize=1, initialValue=1) | ||
36 | + */ | ||
37 | + private $id; | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + /** | ||
42 | + * Set nombre | ||
43 | + * | ||
44 | + * @param string $nombre | ||
45 | + * @return GradoAcademico | ||
46 | + */ | ||
47 | + public function setNombre($nombre) | ||
48 | + { | ||
49 | + $this->nombre = $nombre; | ||
50 | + | ||
51 | + return $this; | ||
52 | + } | ||
53 | + | ||
54 | + /** | ||
55 | + * Get nombre | ||
56 | + * | ||
57 | + * @return string | ||
58 | + */ | ||
59 | + public function getNombre() | ||
60 | + { | ||
61 | + return $this->nombre; | ||
62 | + } | ||
63 | + | ||
64 | + /** | ||
65 | + * Set abreviacion | ||
66 | + * | ||
67 | + * @param string $abreviacion | ||
68 | + * @return GradoAcademico | ||
69 | + */ | ||
70 | + public function setAbreviacion($abreviacion) | ||
71 | + { | ||
72 | + $this->abreviacion = $abreviacion; | ||
73 | + | ||
74 | + return $this; | ||
75 | + } | ||
76 | + | ||
77 | + /** | ||
78 | + * Get abreviacion | ||
79 | + * | ||
80 | + * @return string | ||
81 | + */ | ||
82 | + public function getAbreviacion() | ||
83 | + { | ||
84 | + return $this->abreviacion; | ||
85 | + } | ||
86 | + | ||
87 | + /** | ||
88 | + * Get id | ||
89 | + * | ||
90 | + * @return integer | ||
91 | + */ | ||
92 | + public function getId() | ||
93 | + { | ||
94 | + return $this->id; | ||
95 | + } | ||
96 | +} | ||
0 | \ No newline at end of file | 97 | \ No newline at end of file |
src/AppBundle/Entity/Inscripcion.php
@@ -0,0 +1,135 @@ | @@ -0,0 +1,135 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Inscripcion | ||
9 | + * | ||
10 | + * @ORM\Table(name="inscripcion", uniqueConstraints={@ORM\UniqueConstraint(name="i_inscripcion", columns={"id_oferta_academica", "id_estado_academico"})}, indexes={@ORM\Index(name="oferta_academica_inscripcion", columns={"id_oferta_academica"}), @ORM\Index(name="fki_estado_academico_inscripcion", columns={"id_estado_academico"}), @ORM\Index(name="fki_estatus_inscripcion", columns={"id_estatus"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Inscripcion | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var integer | ||
17 | + * | ||
18 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la inscripcion del estudiante"}) | ||
19 | + * @ORM\Id | ||
20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
21 | + * @ORM\SequenceGenerator(sequenceName="inscripcion_id_seq", allocationSize=1, initialValue=1) | ||
22 | + */ | ||
23 | + private $id; | ||
24 | + | ||
25 | + /** | ||
26 | + * @var \AppBundle\Entity\EstadoAcademico | ||
27 | + * | ||
28 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\EstadoAcademico") | ||
29 | + * @ORM\JoinColumns({ | ||
30 | + * @ORM\JoinColumn(name="id_estado_academico", referencedColumnName="id", nullable=false) | ||
31 | + * }) | ||
32 | + */ | ||
33 | + private $idEstadoAcademico; | ||
34 | + | ||
35 | + /** | ||
36 | + * @var \AppBundle\Entity\OfertaAcademica | ||
37 | + * | ||
38 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\OfertaAcademica") | ||
39 | + * @ORM\JoinColumns({ | ||
40 | + * @ORM\JoinColumn(name="id_oferta_academica", referencedColumnName="id", nullable=false) | ||
41 | + * }) | ||
42 | + */ | ||
43 | + private $idOfertaAcademica; | ||
44 | + | ||
45 | + /** | ||
46 | + * @var \AppBundle\Entity\Estatus | ||
47 | + * | ||
48 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Estatus") | ||
49 | + * @ORM\JoinColumns({ | ||
50 | + * @ORM\JoinColumn(name="id_estatus", referencedColumnName="id", nullable=false) | ||
51 | + * }) | ||
52 | + */ | ||
53 | + private $idEstatus; | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + /** | ||
58 | + * Get id | ||
59 | + * | ||
60 | + * @return integer | ||
61 | + */ | ||
62 | + public function getId() | ||
63 | + { | ||
64 | + return $this->id; | ||
65 | + } | ||
66 | + | ||
67 | + /** | ||
68 | + * Set idEstadoAcademico | ||
69 | + * | ||
70 | + * @param \AppBundle\Entity\EstadoAcademico $idEstadoAcademico | ||
71 | + * @return Inscripcion | ||
72 | + */ | ||
73 | + public function setIdEstadoAcademico(\AppBundle\Entity\EstadoAcademico $idEstadoAcademico) | ||
74 | + { | ||
75 | + $this->idEstadoAcademico = $idEstadoAcademico; | ||
76 | + | ||
77 | + return $this; | ||
78 | + } | ||
79 | + | ||
80 | + /** | ||
81 | + * Get idEstadoAcademico | ||
82 | + * | ||
83 | + * @return \AppBundle\Entity\EstadoAcademico | ||
84 | + */ | ||
85 | + public function getIdEstadoAcademico() | ||
86 | + { | ||
87 | + return $this->idEstadoAcademico; | ||
88 | + } | ||
89 | + | ||
90 | + /** | ||
91 | + * Set idOfertaAcademica | ||
92 | + * | ||
93 | + * @param \AppBundle\Entity\OfertaAcademica $idOfertaAcademica | ||
94 | + * @return Inscripcion | ||
95 | + */ | ||
96 | + public function setIdOfertaAcademica(\AppBundle\Entity\OfertaAcademica $idOfertaAcademica) | ||
97 | + { | ||
98 | + $this->idOfertaAcademica = $idOfertaAcademica; | ||
99 | + | ||
100 | + return $this; | ||
101 | + } | ||
102 | + | ||
103 | + /** | ||
104 | + * Get idOfertaAcademica | ||
105 | + * | ||
106 | + * @return \AppBundle\Entity\OfertaAcademica | ||
107 | + */ | ||
108 | + public function getIdOfertaAcademica() | ||
109 | + { | ||
110 | + return $this->idOfertaAcademica; | ||
111 | + } | ||
112 | + | ||
113 | + /** | ||
114 | + * Set idEstatus | ||
115 | + * | ||
116 | + * @param \AppBundle\Entity\Estatus $idEstatus | ||
117 | + * @return Inscripcion | ||
118 | + */ | ||
119 | + public function setIdEstatus(\AppBundle\Entity\Estatus $idEstatus) | ||
120 | + { | ||
121 | + $this->idEstatus = $idEstatus; | ||
122 | + | ||
123 | + return $this; | ||
124 | + } | ||
125 | + | ||
126 | + /** | ||
127 | + * Get idEstatus | ||
128 | + * | ||
129 | + * @return \AppBundle\Entity\Estatus | ||
130 | + */ | ||
131 | + public function getIdEstatus() | ||
132 | + { | ||
133 | + return $this->idEstatus; | ||
134 | + } | ||
135 | +} |
src/AppBundle/Entity/Inscripcion.php~
@@ -0,0 +1,56 @@ | @@ -0,0 +1,56 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Inscripcion | ||
9 | + * | ||
10 | + * @ORM\Table(name="inscripcion", uniqueConstraints={@ORM\UniqueConstraint(name="i_inscripcion", columns={"id_oferta_academica", "id_estado_academico"})}, indexes={@ORM\Index(name="oferta_academica_inscripcion", columns={"id_oferta_academica"}), @ORM\Index(name="fki_estado_academico_inscripcion", columns={"id_estado_academico"}), @ORM\Index(name="fki_estatus_inscripcion", columns={"id_estatus"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Inscripcion | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var integer | ||
17 | + * | ||
18 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la inscripcion del estudiante"}) | ||
19 | + * @ORM\Id | ||
20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
21 | + * @ORM\SequenceGenerator(sequenceName="inscripcion_id_seq", allocationSize=1, initialValue=1) | ||
22 | + */ | ||
23 | + private $id; | ||
24 | + | ||
25 | + /** | ||
26 | + * @var \AppBundle\Entity\EstadoAcademico | ||
27 | + * | ||
28 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\EstadoAcademico") | ||
29 | + * @ORM\JoinColumns({ | ||
30 | + * @ORM\JoinColumn(name="id_estado_academico", referencedColumnName="id", nullable=false) | ||
31 | + * }) | ||
32 | + */ | ||
33 | + private $idEstadoAcademico; | ||
34 | + | ||
35 | + /** | ||
36 | + * @var \AppBundle\Entity\OfertaAcademica | ||
37 | + * | ||
38 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\OfertaAcademica") | ||
39 | + * @ORM\JoinColumns({ | ||
40 | + * @ORM\JoinColumn(name="id_oferta_academica", referencedColumnName="id", nullable=false) | ||
41 | + * }) | ||
42 | + */ | ||
43 | + private $idOfertaAcademica; | ||
44 | + | ||
45 | + /** | ||
46 | + * @var \AppBundle\Entity\Estatus | ||
47 | + * | ||
48 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Estatus") | ||
49 | + * @ORM\JoinColumns({ | ||
50 | + * @ORM\JoinColumn(name="id_estatus", referencedColumnName="id", nullable=false) | ||
51 | + * }) | ||
52 | + */ | ||
53 | + private $idEstatus; | ||
54 | + | ||
55 | + | ||
56 | +} |
src/AppBundle/Entity/MallaCurricular.php
@@ -0,0 +1,165 @@ | @@ -0,0 +1,165 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | +use Doctrine\ORM\Mapping as ORM; | ||
5 | + | ||
6 | +/** | ||
7 | + * MallaCurricular | ||
8 | + * | ||
9 | + * @ORM\Table(name="malla_curricular", uniqueConstraints={@ORM\UniqueConstraint(name="uq_codigo_malla_curricular", columns={"codigo"})}, indexes={@ORM\Index(name="fki_pfg_malla_curricular", columns={"id_pfg"}), @ORM\Index(name="fki_modalidad_malla_curricular", columns={"id_modalidad"})}) | ||
10 | + * @ORM\Entity | ||
11 | + */ | ||
12 | +class MallaCurricular | ||
13 | +{ | ||
14 | + /** | ||
15 | + * @var string | ||
16 | + * | ||
17 | + * @ORM\Column(name="nombre", type="string", length=100, nullable=false, options={"comment" = "Nombre de la malla curricular"}) | ||
18 | + */ | ||
19 | + private $nombre; | ||
20 | + | ||
21 | + /** | ||
22 | + * @var string | ||
23 | + * | ||
24 | + * @ORM\Column(name="codigo", type="string", length=12, nullable=false, options={"comment" = "Codigo de la malla curricular (valor existente previo de crear este modelo de BD)"}) | ||
25 | + */ | ||
26 | + private $codigo; | ||
27 | + | ||
28 | + /** | ||
29 | + * @var integer | ||
30 | + * | ||
31 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la malla curricular"}) | ||
32 | + * @ORM\Id | ||
33 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
34 | + * @ORM\SequenceGenerator(sequenceName="malla_curricular_id_seq", allocationSize=1, initialValue=1) | ||
35 | + */ | ||
36 | + private $id; | ||
37 | + | ||
38 | + /** | ||
39 | + * @var \AppBundle\Entity\Pfg | ||
40 | + * | ||
41 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Pfg") | ||
42 | + * @ORM\JoinColumns({ | ||
43 | + * @ORM\JoinColumn(name="id_pfg", referencedColumnName="id", nullable=false) | ||
44 | + * }) | ||
45 | + */ | ||
46 | + private $idPfg; | ||
47 | + | ||
48 | + /** | ||
49 | + * @var \AppBundle\Entity\Modalidad | ||
50 | + * | ||
51 | + * @ORM\ManyToOne(targetEntity="\AppBundle\Entity\Modalidad") | ||
52 | + * @ORM\JoinColumns({ | ||
53 | + * @ORM\JoinColumn(name="id_modalidad", referencedColumnName="id", nullable=false) | ||
54 | + * }) | ||
55 | + */ | ||
56 | + private $idModalidad; | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + /** | ||
61 | + * Set nombre | ||
62 | + * | ||
63 | + * @param string $nombre | ||
64 | + * @return MallaCurricular | ||
65 | + */ | ||
66 | + public function setNombre($nombre) | ||
67 | + { | ||
68 | + $this->nombre = $nombre; | ||
69 | + | ||
70 | + return $this; | ||
71 | + } | ||
72 | + | ||
73 | + /** | ||
74 | + * Get nombre | ||
75 | + * | ||
76 | + * @return string | ||
77 | + */ | ||
78 | + public function getNombre() | ||
79 | + { | ||
80 | + return $this->nombre; | ||
81 | + } | ||
82 | + | ||
83 | + /** | ||
84 | + * Set codigo | ||
85 | + * | ||
86 | + * @param string $codigo | ||
87 | + * @return MallaCurricular | ||
88 | + */ | ||
89 | + public function setCodigo($codigo) | ||
90 | + { | ||
91 | + $this->codigo = $codigo; | ||
92 | + | ||
93 | + return $this; | ||
94 | + } | ||
95 | + | ||
96 | + /** | ||
97 | + * Get codigo | ||
98 | + * | ||
99 | + * @return string | ||
100 | + */ | ||
101 | + public function getCodigo() | ||
102 | + { | ||
103 | + return $this->codigo; | ||
104 | + } | ||
105 | + | ||
106 | + /** | ||
107 | + * Get id | ||
108 | + * | ||
109 | + * @return integer | ||
110 | + */ | ||
111 | + public function getId() | ||
112 | + { | ||
113 | + return $this->id; | ||
114 | + } | ||
115 | + | ||
116 | + /** | ||
117 | + * Set idPfg | ||
118 | + * | ||
119 | + * @param \AppBundle\Entity\Pfg $idPfg | ||
120 | + * @return MallaCurricular | ||
121 | + */ | ||
122 | + public function setIdPfg(\AppBundle\Entity\Pfg $idPfg) | ||
123 | + { | ||
124 | + $this->idPfg = $idPfg; | ||
125 | + | ||
126 | + return $this; | ||
127 | + } | ||
128 | + | ||
129 | + /** | ||
130 | + * Get idPfg | ||
131 | + * | ||
132 | + * @return \AppBundle\Entity\Pfg | ||
133 | + */ | ||
134 | + public function getIdPfg() | ||
135 | + { | ||
136 | + return $this->idPfg; | ||
137 | + } | ||
138 | + | ||
139 | + /** | ||
140 | + * Set idModalidad | ||
141 | + * | ||
142 | + * @param \AppBundle\Entity\Modalidad $idModalidad | ||
143 | + * @return MallaCurricular | ||
144 | + */ | ||
145 | + public function setIdModalidad(\AppBundle\Entity\Modalidad $idModalidad) | ||
146 | + { | ||
147 | + $this->idModalidad = $idModalidad; | ||
148 | + | ||
149 | + return $this; | ||
150 | + } | ||
151 | + | ||
152 | + /** | ||
153 | + * Get idModalidad | ||
154 | + * | ||
155 | + * @return \AppBundle\Entity\Modalidad | ||
156 | + */ | ||
157 | + public function getIdModalidad() | ||
158 | + { | ||
159 | + return $this->idModalidad; | ||
160 | + } | ||
161 | + | ||
162 | + public function __toString() { | ||
163 | + return $this->getNombre(); | ||
164 | + } | ||
165 | +} |
src/AppBundle/Entity/MallaCurricular.php~
@@ -0,0 +1,61 @@ | @@ -0,0 +1,61 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | +use Doctrine\ORM\Mapping as ORM; | ||
5 | + | ||
6 | +/** | ||
7 | + * MallaCurricular | ||
8 | + * | ||
9 | + * @ORM\Table(name="malla_curricular", uniqueConstraints={@ORM\UniqueConstraint(name="uq_codigo_malla_curricular", columns={"codigo"})}, indexes={@ORM\Index(name="fki_pfg_malla_curricular", columns={"id_pfg"}), @ORM\Index(name="fki_modalidad_malla_curricular", columns={"id_modalidad"})}) | ||
10 | + * @ORM\Entity | ||
11 | + */ | ||
12 | +class MallaCurricular | ||
13 | +{ | ||
14 | + /** | ||
15 | + * @var string | ||
16 | + * | ||
17 | + * @ORM\Column(name="nombre", type="string", length=100, nullable=false, options={"comment" = "Nombre de la malla curricular"}) | ||
18 | + */ | ||
19 | + private $nombre; | ||
20 | + | ||
21 | + /** | ||
22 | + * @var string | ||
23 | + * | ||
24 | + * @ORM\Column(name="codigo", type="string", length=12, nullable=false, options={"comment" = "Codigo de la malla curricular (valor existente previo de crear este modelo de BD)"}) | ||
25 | + */ | ||
26 | + private $codigo; | ||
27 | + | ||
28 | + /** | ||
29 | + * @var integer | ||
30 | + * | ||
31 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la malla curricular"}) | ||
32 | + * @ORM\Id | ||
33 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
34 | + * @ORM\SequenceGenerator(sequenceName="malla_curricular_id_seq", allocationSize=1, initialValue=1) | ||
35 | + */ | ||
36 | + private $id; | ||
37 | + | ||
38 | + /** | ||
39 | + * @var \AppBundle\Entity\Pfg | ||
40 | + * | ||
41 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Pfg") | ||
42 | + * @ORM\JoinColumns({ | ||
43 | + * @ORM\JoinColumn(name="id_pfg", referencedColumnName="id", nullable=false) | ||
44 | + * }) | ||
45 | + */ | ||
46 | + private $idPfg; | ||
47 | + | ||
48 | + /** | ||
49 | + * @var \AppBundle\Entity\Modalidad | ||
50 | + * | ||
51 | + * @ORM\ManyToOne(targetEntity="\AppBundle\Entity\Modalidad") | ||
52 | + * @ORM\JoinColumns({ | ||
53 | + * @ORM\JoinColumn(name="id_modalidad", referencedColumnName="id", nullable=false) | ||
54 | + * }) | ||
55 | + */ | ||
56 | + private $idModalidad; | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | +} |
src/AppBundle/Entity/MallaCurricularInstitucion.php
@@ -0,0 +1,137 @@ | @@ -0,0 +1,137 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * MallaCurricularInstitucion | ||
9 | + * | ||
10 | + * @ORM\Table(name="malla_curricular_institucion", uniqueConstraints={@ORM\UniqueConstraint(name="i_malla_curricular_institucion", columns={"id_institucion", "id_malla_curricular"})}, indexes={@ORM\Index(name="fki_estatus_malla_curricular_institucion", columns={"id_estatus"}), @ORM\Index(name="fki_malla_curricular_malla_curricular_institucion", columns={"id_malla_curricular"}), @ORM\Index(name="fki_institucion_malla_curricular_institucion", columns={"id_institucion"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class MallaCurricularInstitucion | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var integer | ||
17 | + * | ||
18 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la malla curricular institucion"}) | ||
19 | + * @ORM\Id | ||
20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
21 | + * @ORM\SequenceGenerator(sequenceName="malla_curricular_institucion_id_seq", allocationSize=1, initialValue=1) | ||
22 | + */ | ||
23 | + private $id; | ||
24 | + | ||
25 | + /** | ||
26 | + * @var \AppBundle\Entity\MallaCurricular | ||
27 | + * | ||
28 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\MallaCurricular") | ||
29 | + * @ORM\JoinColumns({ | ||
30 | + * @ORM\JoinColumn(name="id_malla_curricular", referencedColumnName="id", nullable=false) | ||
31 | + * }) | ||
32 | + */ | ||
33 | + private $idMallaCurricular; | ||
34 | + | ||
35 | + /** | ||
36 | + * @var \AppBundle\Entity\Institucion | ||
37 | + * | ||
38 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Institucion") | ||
39 | + * @ORM\JoinColumns({ | ||
40 | + * @ORM\JoinColumn(name="id_institucion", referencedColumnName="id", nullable=false) | ||
41 | + * }) | ||
42 | + */ | ||
43 | + private $idInstitucion; | ||
44 | + | ||
45 | + /** | ||
46 | + * @var \AppBundle\Entity\Estatus | ||
47 | + * | ||
48 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Estatus") | ||
49 | + * @ORM\JoinColumns({ | ||
50 | + * @ORM\JoinColumn(name="id_estatus", referencedColumnName="id", nullable=false) | ||
51 | + * }) | ||
52 | + */ | ||
53 | + private $idEstatus; | ||
54 | + | ||
55 | + | ||
56 | + | ||
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 idMallaCurricular | ||
71 | + * | ||
72 | + * @param \AppBundle\Entity\MallaCurricular $idMallaCurricular | ||
73 | + * @return MallaCurricularInstitucion | ||
74 | + */ | ||
75 | + public function setIdMallaCurricular(\AppBundle\Entity\MallaCurricular $idMallaCurricular) | ||
76 | + { | ||
77 | + $this->idMallaCurricular = $idMallaCurricular; | ||
78 | + | ||
79 | + return $this; | ||
80 | + } | ||
81 | + | ||
82 | + /** | ||
83 | + * Get idMallaCurricular | ||
84 | + * | ||
85 | + * @return \AppBundle\Entity\MallaCurricular | ||
86 | + */ | ||
87 | + public function getIdMallaCurricular() | ||
88 | + { | ||
89 | + return $this->idMallaCurricular; | ||
90 | + } | ||
91 | + | ||
92 | + /** | ||
93 | + * Set idInstitucion | ||
94 | + * | ||
95 | + * @param \AppBundle\Entity\Institucion $idInstitucion | ||
96 | + * @return MallaCurricularInstitucion | ||
97 | + */ | ||
98 | + public function setIdInstitucion(\AppBundle\Entity\Institucion $idInstitucion) | ||
99 | + { | ||
100 | + $this->idInstitucion = $idInstitucion; | ||
101 | + | ||
102 | + return $this; | ||
103 | + } | ||
104 | + | ||
105 | + /** | ||
106 | + * Get idInstitucion | ||
107 | + * | ||
108 | + * @return \AppBundle\Entity\Institucion | ||
109 | + */ | ||
110 | + public function getIdInstitucion() | ||
111 | + { | ||
112 | + return $this->idInstitucion; | ||
113 | + } | ||
114 | + | ||
115 | + /** | ||
116 | + * Set idEstatus | ||
117 | + * | ||
118 | + * @param \AppBundle\Entity\Estatus $idEstatus | ||
119 | + * @return MallaCurricularInstitucion | ||
120 | + */ | ||
121 | + public function setIdEstatus(\AppBundle\Entity\Estatus $idEstatus) | ||
122 | + { | ||
123 | + $this->idEstatus = $idEstatus; | ||
124 | + | ||
125 | + return $this; | ||
126 | + } | ||
127 | + | ||
128 | + /** | ||
129 | + * Get idEstatus | ||
130 | + * | ||
131 | + * @return \AppBundle\Entity\Estatus | ||
132 | + */ | ||
133 | + public function getIdEstatus() | ||
134 | + { | ||
135 | + return $this->idEstatus; | ||
136 | + } | ||
137 | +} |
src/AppBundle/Entity/MallaCurricularInstitucion.php~
@@ -0,0 +1,58 @@ | @@ -0,0 +1,58 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * MallaCurricularInstitucion | ||
9 | + * | ||
10 | + * @ORM\Table(name="malla_curricular_institucion", uniqueConstraints={@ORM\UniqueConstraint(name="i_malla_curricular_institucion", columns={"id_institucion", "id_malla_curricular"})}, indexes={@ORM\Index(name="fki_estatus_malla_curricular_institucion", columns={"id_estatus"}), @ORM\Index(name="fki_malla_curricular_malla_curricular_institucion", columns={"id_malla_curricular"}), @ORM\Index(name="fki_institucion_malla_curricular_institucion", columns={"id_institucion"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class MallaCurricularInstitucion | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var integer | ||
17 | + * | ||
18 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la malla curricular institucion"}) | ||
19 | + * @ORM\Id | ||
20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
21 | + * @ORM\SequenceGenerator(sequenceName="malla_curricular_institucion_id_seq", allocationSize=1, initialValue=1) | ||
22 | + */ | ||
23 | + private $id; | ||
24 | + | ||
25 | + /** | ||
26 | + * @var \AppBundle\Entity\MallaCurricular | ||
27 | + * | ||
28 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\MallaCurricular") | ||
29 | + * @ORM\JoinColumns({ | ||
30 | + * @ORM\JoinColumn(name="id_malla_curricular", referencedColumnName="id", nullable=false) | ||
31 | + * }) | ||
32 | + */ | ||
33 | + private $idMallaCurricular; | ||
34 | + | ||
35 | + /** | ||
36 | + * @var \AppBundle\Entity\Institucion | ||
37 | + * | ||
38 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Institucion") | ||
39 | + * @ORM\JoinColumns({ | ||
40 | + * @ORM\JoinColumn(name="id_institucion", referencedColumnName="id", nullable=false) | ||
41 | + * }) | ||
42 | + */ | ||
43 | + private $idInstitucion; | ||
44 | + | ||
45 | + /** | ||
46 | + * @var \AppBundle\Entity\Estatus | ||
47 | + * | ||
48 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Estatus") | ||
49 | + * @ORM\JoinColumns({ | ||
50 | + * @ORM\JoinColumn(name="id_estatus", referencedColumnName="id", nullable=false) | ||
51 | + * }) | ||
52 | + */ | ||
53 | + private $idEstatus; | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | +} |
src/AppBundle/Entity/MallaCurricularUc.php
@@ -0,0 +1,164 @@ | @@ -0,0 +1,164 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * MallaCurricularUc | ||
9 | + * | ||
10 | + * @ORM\Table(name="malla_curricular_uc", uniqueConstraints={@ORM\UniqueConstraint(name="i_malla_curricular", columns={"id_malla_curricular", "id_unidad_curricular_volumen"})}, indexes={@ORM\Index(name="fki_malla_curricular_malla_curricular_uc", columns={"id_malla_curricular"}), @ORM\Index(name="fki_trayecto_tramo_modalidad_malla_curricular_uc", columns={"id_trayecto_tramo_mod"}), @ORM\Index(name="fki_unidad_curricular_volumen_malla_curricular", columns={"id_unidad_curricular_volumen"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class MallaCurricularUc | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="num_tramos", type="decimal", precision=2, scale=0, nullable=false, options={"comment" = "Numero de tramos de la unidad curricular"}) | ||
19 | + */ | ||
20 | + private $numTramos; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var integer | ||
24 | + * | ||
25 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador del registro"}) | ||
26 | + * @ORM\Id | ||
27 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
28 | + * @ORM\SequenceGenerator(sequenceName="malla_curricular_uc_id_seq", allocationSize=1, initialValue=1) | ||
29 | + */ | ||
30 | + private $id; | ||
31 | + | ||
32 | + /** | ||
33 | + * @var \AppBundle\Entity\UnidadCurricularVolumen | ||
34 | + * | ||
35 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\UnidadCurricularVolumen") | ||
36 | + * @ORM\JoinColumns({ | ||
37 | + * @ORM\JoinColumn(name="id_unidad_curricular_volumen", referencedColumnName="id", nullable=false) | ||
38 | + * }) | ||
39 | + */ | ||
40 | + private $idUnidadCurricularVolumen; | ||
41 | + | ||
42 | + /** | ||
43 | + * @var \AppBundle\Entity\TrayectoTramoModalidad | ||
44 | + * | ||
45 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\TrayectoTramoModalidad") | ||
46 | + * @ORM\JoinColumns({ | ||
47 | + * @ORM\JoinColumn(name="id_trayecto_tramo_mod", referencedColumnName="id", nullable=false) | ||
48 | + * }) | ||
49 | + */ | ||
50 | + private $idTrayectoTramoMod; | ||
51 | + | ||
52 | + /** | ||
53 | + * @var \AppBundle\Entity\MallaCurricular | ||
54 | + * | ||
55 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\MallaCurricular") | ||
56 | + * @ORM\JoinColumns({ | ||
57 | + * @ORM\JoinColumn(name="id_malla_curricular", referencedColumnName="id", nullable=false) | ||
58 | + * }) | ||
59 | + */ | ||
60 | + private $idMallaCurricular; | ||
61 | + | ||
62 | + | ||
63 | + /** | ||
64 | + * Set numTramos | ||
65 | + * | ||
66 | + * @param string $numTramos | ||
67 | + * @return MallaCurricularUc | ||
68 | + */ | ||
69 | + public function setNumTramos($numTramos) | ||
70 | + { | ||
71 | + $this->numTramos = $numTramos; | ||
72 | + | ||
73 | + return $this; | ||
74 | + } | ||
75 | + | ||
76 | + /** | ||
77 | + * Get numTramos | ||
78 | + * | ||
79 | + * @return string | ||
80 | + */ | ||
81 | + public function getNumTramos() | ||
82 | + { | ||
83 | + return $this->numTramos; | ||
84 | + } | ||
85 | + | ||
86 | + /** | ||
87 | + * Get id | ||
88 | + * | ||
89 | + * @return integer | ||
90 | + */ | ||
91 | + public function getId() | ||
92 | + { | ||
93 | + return $this->id; | ||
94 | + } | ||
95 | + | ||
96 | + /** | ||
97 | + * Set idUnidadCurricularVolumen | ||
98 | + * | ||
99 | + * @param \AppBundle\Entity\UnidadCurricularVolumen $idUnidadCurricularVolumen | ||
100 | + * @return MallaCurricularUc | ||
101 | + */ | ||
102 | + public function setIdUnidadCurricularVolumen(\AppBundle\Entity\UnidadCurricularVolumen $idUnidadCurricularVolumen) | ||
103 | + { | ||
104 | + $this->idUnidadCurricularVolumen = $idUnidadCurricularVolumen; | ||
105 | + | ||
106 | + return $this; | ||
107 | + } | ||
108 | + | ||
109 | + /** | ||
110 | + * Get idUnidadCurricularVolumen | ||
111 | + * | ||
112 | + * @return \AppBundle\Entity\UnidadCurricularVolumen | ||
113 | + */ | ||
114 | + public function getIdUnidadCurricularVolumen() | ||
115 | + { | ||
116 | + return $this->idUnidadCurricularVolumen; | ||
117 | + } | ||
118 | + | ||
119 | + /** | ||
120 | + * Set idTrayectoTramoMod | ||
121 | + * | ||
122 | + * @param \AppBundle\Entity\TrayectoTramoModalidad $idTrayectoTramoMod | ||
123 | + * @return MallaCurricularUc | ||
124 | + */ | ||
125 | + public function setIdTrayectoTramoMod(\AppBundle\Entity\TrayectoTramoModalidad $idTrayectoTramoMod) | ||
126 | + { | ||
127 | + $this->idTrayectoTramoMod = $idTrayectoTramoMod; | ||
128 | + | ||
129 | + return $this; | ||
130 | + } | ||
131 | + | ||
132 | + /** | ||
133 | + * Get idTrayectoTramoMod | ||
134 | + * | ||
135 | + * @return \AppBundle\Entity\TrayectoTramoModalidad | ||
136 | + */ | ||
137 | + public function getIdTrayectoTramoMod() | ||
138 | + { | ||
139 | + return $this->idTrayectoTramoMod; | ||
140 | + } | ||
141 | + | ||
142 | + /** | ||
143 | + * Set idMallaCurricular | ||
144 | + * | ||
145 | + * @param \AppBundle\Entity\MallaCurricular $idMallaCurricular | ||
146 | + * @return MallaCurricularUc | ||
147 | + */ | ||
148 | + public function setIdMallaCurricular(\AppBundle\Entity\MallaCurricular $idMallaCurricular) | ||
149 | + { | ||
150 | + $this->idMallaCurricular = $idMallaCurricular; | ||
151 | + | ||
152 | + return $this; | ||
153 | + } | ||
154 | + | ||
155 | + /** | ||
156 | + * Get idMallaCurricular | ||
157 | + * | ||
158 | + * @return \AppBundle\Entity\MallaCurricular | ||
159 | + */ | ||
160 | + public function getIdMallaCurricular() | ||
161 | + { | ||
162 | + return $this->idMallaCurricular; | ||
163 | + } | ||
164 | +} |
src/AppBundle/Entity/MallaCurricularUc.php~
@@ -0,0 +1,62 @@ | @@ -0,0 +1,62 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * MallaCurricularUc | ||
9 | + * | ||
10 | + * @ORM\Table(name="malla_curricular_uc", uniqueConstraints={@ORM\UniqueConstraint(name="i_malla_curricular", columns={"id_malla_curricular", "id_unidad_curricular_volumen"})}, indexes={@ORM\Index(name="fki_malla_curricular_malla_curricular_uc", columns={"id_malla_curricular"}), @ORM\Index(name="fki_trayecto_tramo_modalidad_malla_curricular_uc", columns={"id_trayecto_tramo_mod"}), @ORM\Index(name="fki_unidad_curricular_volumen_malla_curricular", columns={"id_unidad_curricular_volumen"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class MallaCurricularUc | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="num_tramos", type="decimal", precision=2, scale=0, nullable=false, options={"comment" = "Numero de tramos de la unidad curricular"}) | ||
19 | + */ | ||
20 | + private $numTramos; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var integer | ||
24 | + * | ||
25 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador del registro"}) | ||
26 | + * @ORM\Id | ||
27 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
28 | + * @ORM\SequenceGenerator(sequenceName="malla_curricular_uc_id_seq", allocationSize=1, initialValue=1) | ||
29 | + */ | ||
30 | + private $id; | ||
31 | + | ||
32 | + /** | ||
33 | + * @var \AppBundle\Entity\UnidadCurricularVolumen | ||
34 | + * | ||
35 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\UnidadCurricularVolumen") | ||
36 | + * @ORM\JoinColumns({ | ||
37 | + * @ORM\JoinColumn(name="id_unidad_curricular_volumen", referencedColumnName="id", nullable=false) | ||
38 | + * }) | ||
39 | + */ | ||
40 | + private $idUnidadCurricularVolumen; | ||
41 | + | ||
42 | + /** | ||
43 | + * @var \AppBundle\Entity\TrayectoTramoModalidad | ||
44 | + * | ||
45 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\TrayectoTramoModalidad") | ||
46 | + * @ORM\JoinColumns({ | ||
47 | + * @ORM\JoinColumn(name="id_trayecto_tramo_mod", referencedColumnName="id", nullable=false) | ||
48 | + * }) | ||
49 | + */ | ||
50 | + private $idTrayectoTramoMod; | ||
51 | + | ||
52 | + /** | ||
53 | + * @var \AppBundle\Entity\MallaCurricular | ||
54 | + * | ||
55 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\MallaCurricular") | ||
56 | + * @ORM\JoinColumns({ | ||
57 | + * @ORM\JoinColumn(name="id_malla_curricular", referencedColumnName="id", nullable=false) | ||
58 | + * }) | ||
59 | + */ | ||
60 | + private $idMallaCurricular; | ||
61 | + | ||
62 | +} |
src/AppBundle/Entity/Modalidad.php
@@ -0,0 +1,76 @@ | @@ -0,0 +1,76 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Modalidad | ||
9 | + * | ||
10 | + * @ORM\Table(name="modalidad", uniqueConstraints={@ORM\UniqueConstraint(name="uq_modalidad", columns={"nombre"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Modalidad | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=20, nullable=false, options={"comment" = "Nombre de la modalidad de estudio"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var integer | ||
24 | + * | ||
25 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la modalidad"}) | ||
26 | + * @ORM\Id | ||
27 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
28 | + * @ORM\SequenceGenerator(sequenceName="modalidad_id_seq", allocationSize=1, initialValue=1) | ||
29 | + */ | ||
30 | + private $id; | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + /** | ||
35 | + * Set nombre | ||
36 | + * | ||
37 | + * @param string $nombre | ||
38 | + * @return Modalidad | ||
39 | + */ | ||
40 | + public function setNombre($nombre) | ||
41 | + { | ||
42 | + $this->nombre = $nombre; | ||
43 | + | ||
44 | + return $this; | ||
45 | + } | ||
46 | + | ||
47 | + /** | ||
48 | + * Get nombre | ||
49 | + * | ||
50 | + * @return string | ||
51 | + */ | ||
52 | + public function getNombre() | ||
53 | + { | ||
54 | + return $this->nombre; | ||
55 | + } | ||
56 | + | ||
57 | + /** | ||
58 | + * Get id | ||
59 | + * | ||
60 | + * @return integer | ||
61 | + */ | ||
62 | + public function getId() | ||
63 | + { | ||
64 | + return $this->id; | ||
65 | + } | ||
66 | + | ||
67 | + | ||
68 | + /** | ||
69 | + * | ||
70 | + * @return string | ||
71 | + */ | ||
72 | + | ||
73 | + public function __toString() { | ||
74 | + return $this->getNombre(); | ||
75 | + } | ||
76 | +} | ||
0 | \ No newline at end of file | 77 | \ No newline at end of file |
src/AppBundle/Entity/OfertaAcademica.php
@@ -0,0 +1,260 @@ | @@ -0,0 +1,260 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * OfertaAcademica | ||
9 | + * | ||
10 | + * @ORM\Table(name="oferta_academica", uniqueConstraints={@ORM\UniqueConstraint(name="i_oferta_academica", columns={"id_malla_curricular_uc", "id_seccion", "id_oferta_malla_curricular"})}, indexes={@ORM\Index(name="fki_oferta_malla_curricular_oferta_academica", columns={"id_oferta_malla_curricular"}), @ORM\Index(name="fki_seccion_oferta_academica", columns={"id_seccion"}), @ORM\Index(name="fki_turno_oferta_academica", columns={"id_turno"}), @ORM\Index(name="fki_rol_institucion_oferta_academica", columns={"id_rol_institucion"}), @ORM\Index(name="fki_malla_curricular_uc_oferta_academica", columns={"id_malla_curricular_uc"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class OfertaAcademica | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="aula", type="string", length=10, nullable=true, options={"comment" = "Indica el aula donde se va a dictar la unidad curricular (EN OBSERVACION, ESTE VALOR PUEDE SER VARIABLE PARA UNA MISMA OFERTA)"}) | ||
19 | + */ | ||
20 | + private $aula; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var string | ||
24 | + * | ||
25 | + * @ORM\Column(name="cupo", type="decimal", precision=2, scale=0, nullable=false, options={"comment" = "Indica el numero de cupos para esa oferta"}) | ||
26 | + */ | ||
27 | + private $cupo; | ||
28 | + | ||
29 | + /** | ||
30 | + * @var integer | ||
31 | + * | ||
32 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la unidad cirrucular"}) | ||
33 | + * @ORM\Id | ||
34 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
35 | + * @ORM\SequenceGenerator(sequenceName="oferta_academica_id_seq", allocationSize=1, initialValue=1) | ||
36 | + */ | ||
37 | + private $id; | ||
38 | + | ||
39 | + /** | ||
40 | + * @var \AppBundle\Entity\MallaCurricularUC | ||
41 | + * | ||
42 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\MallaCurricularUc") | ||
43 | + * @ORM\JoinColumns({ | ||
44 | + * @ORM\JoinColumn(name="id_malla_curricular_uc", referencedColumnName="id", nullable=false) | ||
45 | + * }) | ||
46 | + */ | ||
47 | + private $idMallaCurricularUc; | ||
48 | + | ||
49 | + /** | ||
50 | + * @var \AppBundle\Entity\Turno | ||
51 | + * | ||
52 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Turno") | ||
53 | + * @ORM\JoinColumns({ | ||
54 | + * @ORM\JoinColumn(name="id_turno", referencedColumnName="id", nullable=false) | ||
55 | + * }) | ||
56 | + */ | ||
57 | + private $idTurno; | ||
58 | + | ||
59 | + /** | ||
60 | + * @var \AppBundle\Entity\Seccion | ||
61 | + * | ||
62 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Seccion") | ||
63 | + * @ORM\JoinColumns({ | ||
64 | + * @ORM\JoinColumn(name="id_seccion", referencedColumnName="id", nullable=false) | ||
65 | + * }) | ||
66 | + */ | ||
67 | + private $idSeccion; | ||
68 | + | ||
69 | + /** | ||
70 | + * @var \AppBundle\Entity\RolInstitucion | ||
71 | + * | ||
72 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\RolInstitucion") | ||
73 | + * @ORM\JoinColumns({ | ||
74 | + * @ORM\JoinColumn(name="id_rol_institucion", referencedColumnName="id", nullable=false) | ||
75 | + * }) | ||
76 | + */ | ||
77 | + private $idRolInstitucion; | ||
78 | + | ||
79 | + /** | ||
80 | + * @var \AppBundle\Entity\OfertaMallaCurricular | ||
81 | + * | ||
82 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\OfertaMallaCurricular") | ||
83 | + * @ORM\JoinColumns({ | ||
84 | + * @ORM\JoinColumn(name="id_oferta_malla_curricular", referencedColumnName="id", nullable=false) | ||
85 | + * }) | ||
86 | + */ | ||
87 | + private $idOfertaMallaCurricular; | ||
88 | + | ||
89 | + | ||
90 | + /** | ||
91 | + * Set aula | ||
92 | + * | ||
93 | + * @param string $aula | ||
94 | + * @return OfertaAcademica | ||
95 | + */ | ||
96 | + public function setAula($aula) | ||
97 | + { | ||
98 | + $this->aula = $aula; | ||
99 | + | ||
100 | + return $this; | ||
101 | + } | ||
102 | + | ||
103 | + /** | ||
104 | + * Get aula | ||
105 | + * | ||
106 | + * @return string | ||
107 | + */ | ||
108 | + public function getAula() | ||
109 | + { | ||
110 | + return $this->aula; | ||
111 | + } | ||
112 | + | ||
113 | + /** | ||
114 | + * Set cupo | ||
115 | + * | ||
116 | + * @param string $cupo | ||
117 | + * @return OfertaAcademica | ||
118 | + */ | ||
119 | + public function setCupo($cupo) | ||
120 | + { | ||
121 | + $this->cupo = $cupo; | ||
122 | + | ||
123 | + return $this; | ||
124 | + } | ||
125 | + | ||
126 | + /** | ||
127 | + * Get cupo | ||
128 | + * | ||
129 | + * @return string | ||
130 | + */ | ||
131 | + public function getCupo() | ||
132 | + { | ||
133 | + return $this->cupo; | ||
134 | + } | ||
135 | + | ||
136 | + /** | ||
137 | + * Get id | ||
138 | + * | ||
139 | + * @return integer | ||
140 | + */ | ||
141 | + public function getId() | ||
142 | + { | ||
143 | + return $this->id; | ||
144 | + } | ||
145 | + | ||
146 | + /** | ||
147 | + * Set idMallaCurricularUc | ||
148 | + * | ||
149 | + * @param \AppBundle\Entity\MallaCurricularUC $idMallaCurricularUc | ||
150 | + * @return OfertaAcademica | ||
151 | + */ | ||
152 | + public function setIdMallaCurricularUc(\AppBundle\Entity\MallaCurricularUC $idMallaCurricularUc) | ||
153 | + { | ||
154 | + $this->idMallaCurricularUc = $idMallaCurricularUc; | ||
155 | + | ||
156 | + return $this; | ||
157 | + } | ||
158 | + | ||
159 | + /** | ||
160 | + * Get idMallaCurricularUc | ||
161 | + * | ||
162 | + * @return \AppBundle\Entity\MallaCurricularUC | ||
163 | + */ | ||
164 | + public function getIdMallaCurricularUc() | ||
165 | + { | ||
166 | + return $this->idMallaCurricularUc; | ||
167 | + } | ||
168 | + | ||
169 | + /** | ||
170 | + * Set idTurno | ||
171 | + * | ||
172 | + * @param \AppBundle\Entity\Turno $idTurno | ||
173 | + * @return OfertaAcademica | ||
174 | + */ | ||
175 | + public function setIdTurno(\AppBundle\Entity\Turno $idTurno) | ||
176 | + { | ||
177 | + $this->idTurno = $idTurno; | ||
178 | + | ||
179 | + return $this; | ||
180 | + } | ||
181 | + | ||
182 | + /** | ||
183 | + * Get idTurno | ||
184 | + * | ||
185 | + * @return \AppBundle\Entity\Turno | ||
186 | + */ | ||
187 | + public function getIdTurno() | ||
188 | + { | ||
189 | + return $this->idTurno; | ||
190 | + } | ||
191 | + | ||
192 | + /** | ||
193 | + * Set idSeccion | ||
194 | + * | ||
195 | + * @param \AppBundle\Entity\Seccion $idSeccion | ||
196 | + * @return OfertaAcademica | ||
197 | + */ | ||
198 | + public function setIdSeccion(\AppBundle\Entity\Seccion $idSeccion) | ||
199 | + { | ||
200 | + $this->idSeccion = $idSeccion; | ||
201 | + | ||
202 | + return $this; | ||
203 | + } | ||
204 | + | ||
205 | + /** | ||
206 | + * Get idSeccion | ||
207 | + * | ||
208 | + * @return \AppBundle\Entity\Seccion | ||
209 | + */ | ||
210 | + public function getIdSeccion() | ||
211 | + { | ||
212 | + return $this->idSeccion; | ||
213 | + } | ||
214 | + | ||
215 | + /** | ||
216 | + * Set idRolInstitucion | ||
217 | + * | ||
218 | + * @param \AppBundle\Entity\RolInstitucion $idRolInstitucion | ||
219 | + * @return OfertaAcademica | ||
220 | + */ | ||
221 | + public function setIdRolInstitucion(\AppBundle\Entity\RolInstitucion $idRolInstitucion) | ||
222 | + { | ||
223 | + $this->idRolInstitucion = $idRolInstitucion; | ||
224 | + | ||
225 | + return $this; | ||
226 | + } | ||
227 | + | ||
228 | + /** | ||
229 | + * Get idRolInstitucion | ||
230 | + * | ||
231 | + * @return \AppBundle\Entity\RolInstitucion | ||
232 | + */ | ||
233 | + public function getIdRolInstitucion() | ||
234 | + { | ||
235 | + return $this->idRolInstitucion; | ||
236 | + } | ||
237 | + | ||
238 | + /** | ||
239 | + * Set idOfertaMallaCurricular | ||
240 | + * | ||
241 | + * @param \AppBundle\Entity\OfertaMallaCurricular $idOfertaMallaCurricular | ||
242 | + * @return OfertaAcademica | ||
243 | + */ | ||
244 | + public function setIdOfertaMallaCurricular(\AppBundle\Entity\OfertaMallaCurricular $idOfertaMallaCurricular) | ||
245 | + { | ||
246 | + $this->idOfertaMallaCurricular = $idOfertaMallaCurricular; | ||
247 | + | ||
248 | + return $this; | ||
249 | + } | ||
250 | + | ||
251 | + /** | ||
252 | + * Get idOfertaMallaCurricular | ||
253 | + * | ||
254 | + * @return \AppBundle\Entity\OfertaMallaCurricular | ||
255 | + */ | ||
256 | + public function getIdOfertaMallaCurricular() | ||
257 | + { | ||
258 | + return $this->idOfertaMallaCurricular; | ||
259 | + } | ||
260 | +} |
src/AppBundle/Entity/OfertaAcademica.php~
@@ -0,0 +1,93 @@ | @@ -0,0 +1,93 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * OfertaAcademica | ||
9 | + * | ||
10 | + * @ORM\Table(name="oferta_academica", uniqueConstraints={@ORM\UniqueConstraint(name="i_oferta_academica", columns={"id_malla_curricular_uc", "id_seccion", "id_oferta_malla_curricular"})}, indexes={@ORM\Index(name="fki_oferta_malla_curricular_oferta_academica", columns={"id_oferta_malla_curricular"}), @ORM\Index(name="fki_seccion_oferta_academica", columns={"id_seccion"}), @ORM\Index(name="fki_turno_oferta_academica", columns={"id_turno"}), @ORM\Index(name="fki_rol_institucion_oferta_academica", columns={"id_rol_institucion"}), @ORM\Index(name="fki_malla_curricular_uc_oferta_academica", columns={"id_malla_curricular_uc"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class OfertaAcademica | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="aula", type="string", length=10, nullable=true, options={"comment" = "Indica el aula donde se va a dictar la unidad curricular (EN OBSERVACION, ESTE VALOR PUEDE SER VARIABLE PARA UNA MISMA OFERTA)"}) | ||
19 | + */ | ||
20 | + private $aula; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var string | ||
24 | + * | ||
25 | + * @ORM\Column(name="cupo", type="decimal", precision=2, scale=0, nullable=false, options={"comment" = "Indica el numero de cupos para esa oferta"}) | ||
26 | + */ | ||
27 | + private $cupo; | ||
28 | + | ||
29 | + /** | ||
30 | + * @var integer | ||
31 | + * | ||
32 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la unidad cirrucular"}) | ||
33 | + * @ORM\Id | ||
34 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
35 | + * @ORM\SequenceGenerator(sequenceName="oferta_academica_id_seq", allocationSize=1, initialValue=1) | ||
36 | + */ | ||
37 | + private $id; | ||
38 | + | ||
39 | + /** | ||
40 | + * @var \AppBundle\Entity\MallaCurricularUC | ||
41 | + * | ||
42 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\MallaCurricularUC") | ||
43 | + * @ORM\JoinColumns({ | ||
44 | + * @ORM\JoinColumn(name="id_malla_curricular_uc", referencedColumnName="id", nullable=false) | ||
45 | + * }) | ||
46 | + */ | ||
47 | + private $idMallaCurricularUc; | ||
48 | + | ||
49 | + /** | ||
50 | + * @var \AppBundle\Entity\Turno | ||
51 | + * | ||
52 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Turno") | ||
53 | + * @ORM\JoinColumns({ | ||
54 | + * @ORM\JoinColumn(name="id_turno", referencedColumnName="id", nullable=false) | ||
55 | + * }) | ||
56 | + */ | ||
57 | + private $idTurno; | ||
58 | + | ||
59 | + /** | ||
60 | + * @var \AppBundle\Entity\Seccion | ||
61 | + * | ||
62 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Seccion") | ||
63 | + * @ORM\JoinColumns({ | ||
64 | + * @ORM\JoinColumn(name="id_seccion", referencedColumnName="id", nullable=false) | ||
65 | + * }) | ||
66 | + */ | ||
67 | + private $idSeccion; | ||
68 | + | ||
69 | + /** | ||
70 | + * @var \AppBundle\Entity\RolInstitucion | ||
71 | + * | ||
72 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\RolInstitucion") | ||
73 | + * @ORM\JoinColumns({ | ||
74 | + * @ORM\JoinColumn(name="id_rol_institucion", referencedColumnName="id", nullable=false) | ||
75 | + * }) | ||
76 | + */ | ||
77 | + private $idRolInstitucion; | ||
78 | + | ||
79 | + /** | ||
80 | + * @var \AppBundle\Entity\OfertaMallaCurricular | ||
81 | + * | ||
82 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\OfertaMallaCurricular") | ||
83 | + * @ORM\JoinColumns({ | ||
84 | + * @ORM\JoinColumn(name="id_oferta_malla_curricular", referencedColumnName="id", nullable=false) | ||
85 | + * }) | ||
86 | + */ | ||
87 | + private $idOfertaMallaCurricular; | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | +} |
src/AppBundle/Entity/OfertaMallaCurricular.php
@@ -0,0 +1,110 @@ | @@ -0,0 +1,110 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * OfertaMallaCurricular | ||
9 | + * | ||
10 | + * @ORM\Table(name="oferta_malla_curricular", uniqueConstraints={@ORM\UniqueConstraint(name="i_oferta_malla_curricular", columns={"id_malla_curricular_institucion", "id_periodo"})}, indexes={@ORM\Index(name="fki_id_malla_curricular_institucion_oferta_malla_curricular", columns={"id_malla_curricular_institucion"}), @ORM\Index(name="fki_periodo_oferta_malla_curricular", columns={"id_periodo"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class OfertaMallaCurricular | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var integer | ||
17 | + * | ||
18 | + * @ORM\Column(name="id", type="integer") | ||
19 | + * @ORM\Id | ||
20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
21 | + * @ORM\SequenceGenerator(sequenceName="oferta_malla_curricular_id_seq", allocationSize=1, initialValue=1) | ||
22 | + */ | ||
23 | + private $id; | ||
24 | + | ||
25 | + /** | ||
26 | + * @var \AppBundle\Entity\Periodo | ||
27 | + * | ||
28 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Periodo") | ||
29 | + * @ORM\JoinColumns({ | ||
30 | + * @ORM\JoinColumn(name="id_periodo", referencedColumnName="id", nullable=false) | ||
31 | + * }) | ||
32 | + */ | ||
33 | + private $idPeriodo; | ||
34 | + | ||
35 | + /** | ||
36 | + * @var \AppBundle\Entity\MallaCurricularInstitucion | ||
37 | + * | ||
38 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\MallaCurricularInstitucion") | ||
39 | + * @ORM\JoinColumns({ | ||
40 | + * @ORM\JoinColumn(name="id_malla_curricular_institucion", referencedColumnName="id", nullable=false) | ||
41 | + * }) | ||
42 | + */ | ||
43 | + private $idMallaCurricularInstitucion; | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + /** | ||
48 | + * Get id | ||
49 | + * | ||
50 | + * @return integer | ||
51 | + */ | ||
52 | + public function getId() | ||
53 | + { | ||
54 | + return $this->id; | ||
55 | + } | ||
56 | + | ||
57 | + /** | ||
58 | + * Set idPeriodo | ||
59 | + * | ||
60 | + * @param \AppBundle\Entity\Periodo $idPeriodo | ||
61 | + * @return OfertaMallaCurricular | ||
62 | + */ | ||
63 | + public function setIdPeriodo(\AppBundle\Entity\Periodo $idPeriodo) | ||
64 | + { | ||
65 | + $this->idPeriodo = $idPeriodo; | ||
66 | + | ||
67 | + return $this; | ||
68 | + } | ||
69 | + | ||
70 | + /** | ||
71 | + * Get idPeriodo | ||
72 | + * | ||
73 | + * @return \AppBundle\Entity\Periodo | ||
74 | + */ | ||
75 | + public function getIdPeriodo() | ||
76 | + { | ||
77 | + return $this->idPeriodo; | ||
78 | + } | ||
79 | + | ||
80 | + /** | ||
81 | + * Set idMallaCurricularInstitucion | ||
82 | + * | ||
83 | + * @param \AppBundle\Entity\MallaCurricularInstitucion $idMallaCurricularInstitucion | ||
84 | + * @return OfertaMallaCurricular | ||
85 | + */ | ||
86 | + public function setIdMallaCurricularInstitucion(\AppBundle\Entity\MallaCurricularInstitucion $idMallaCurricularInstitucion) | ||
87 | + { | ||
88 | + $this->idMallaCurricularInstitucion = $idMallaCurricularInstitucion; | ||
89 | + | ||
90 | + return $this; | ||
91 | + } | ||
92 | + | ||
93 | + /** | ||
94 | + * Get idMallaCurricularInstitucion | ||
95 | + * | ||
96 | + * @return \AppBundle\Entity\MallaCurricularInstitucion | ||
97 | + */ | ||
98 | + public function getIdMallaCurricularInstitucion() | ||
99 | + { | ||
100 | + return $this->idMallaCurricularInstitucion; | ||
101 | + } | ||
102 | + | ||
103 | + /** | ||
104 | + * | ||
105 | + * @return string | ||
106 | + */ | ||
107 | + public function __toString() { | ||
108 | + return $this->getIdMallaCurricularInstitucion()->getIdMallaCurricular()->getNombre(); | ||
109 | + } | ||
110 | +} |
src/AppBundle/Entity/OfertaMallaCurricular.php~
@@ -0,0 +1,46 @@ | @@ -0,0 +1,46 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * OfertaMallaCurricular | ||
9 | + * | ||
10 | + * @ORM\Table(name="oferta_malla_curricular", uniqueConstraints={@ORM\UniqueConstraint(name="i_oferta_malla_curricular", columns={"id_malla_curricular_institucion", "id_periodo"})}, indexes={@ORM\Index(name="fki_id_malla_curricular_institucion_oferta_malla_curricular", columns={"id_malla_curricular_institucion"}), @ORM\Index(name="fki_periodo_oferta_malla_curricular", columns={"id_periodo"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class OfertaMallaCurricular | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var integer | ||
17 | + * | ||
18 | + * @ORM\Column(name="id", type="integer") | ||
19 | + * @ORM\Id | ||
20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
21 | + * @ORM\SequenceGenerator(sequenceName="oferta_malla_curricular_id_seq", allocationSize=1, initialValue=1) | ||
22 | + */ | ||
23 | + private $id; | ||
24 | + | ||
25 | + /** | ||
26 | + * @var \AppBundle\Entity\Periodo | ||
27 | + * | ||
28 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Periodo") | ||
29 | + * @ORM\JoinColumns({ | ||
30 | + * @ORM\JoinColumn(name="id_periodo", referencedColumnName="id", nullable=false) | ||
31 | + * }) | ||
32 | + */ | ||
33 | + private $idPeriodo; | ||
34 | + | ||
35 | + /** | ||
36 | + * @var \AppBundle\Entity\MallaCurricularInstitucion | ||
37 | + * | ||
38 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\MallaCurricularInstitucion") | ||
39 | + * @ORM\JoinColumns({ | ||
40 | + * @ORM\JoinColumn(name="id_malla_curricular_institucion", referencedColumnName="id", nullable=false) | ||
41 | + * }) | ||
42 | + */ | ||
43 | + private $idMallaCurricularInstitucion; | ||
44 | + | ||
45 | + | ||
46 | +} | ||
0 | \ No newline at end of file | 47 | \ No newline at end of file |
src/AppBundle/Entity/Periodo.php
@@ -0,0 +1,101 @@ | @@ -0,0 +1,101 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Periodo | ||
9 | + * | ||
10 | + * @ORM\Table(name="periodo") | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Periodo | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=8, nullable=false, options={"comment" = "nombre periodo"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var \AppBundle\Entity\Estatus | ||
24 | + * | ||
25 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Estatus") | ||
26 | + * @ORM\JoinColumns({ | ||
27 | + * @ORM\JoinColumn(name="id_estatus", referencedColumnName="id", nullable=false) | ||
28 | + * }) | ||
29 | + */ | ||
30 | + private $idEstatus; | ||
31 | + | ||
32 | + /** | ||
33 | + * @var integer | ||
34 | + * | ||
35 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del periodo lectivo"}) | ||
36 | + * @ORM\Id | ||
37 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
38 | + * @ORM\SequenceGenerator(sequenceName="periodo_id_seq", allocationSize=1, initialValue=1) | ||
39 | + */ | ||
40 | + private $id; | ||
41 | + | ||
42 | + /** | ||
43 | + * Set nombre | ||
44 | + * | ||
45 | + * @param string $nombre | ||
46 | + * @return Periodo | ||
47 | + */ | ||
48 | + public function setNombre($nombre) | ||
49 | + { | ||
50 | + $this->nombre = $nombre; | ||
51 | + | ||
52 | + return $this; | ||
53 | + } | ||
54 | + | ||
55 | + /** | ||
56 | + * Get nombre | ||
57 | + * | ||
58 | + * @return string | ||
59 | + */ | ||
60 | + public function getNombre() | ||
61 | + { | ||
62 | + return $this->nombre; | ||
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 idEstatus | ||
77 | + * | ||
78 | + * @param \AppBundle\Entity\Estatus $idEstatus | ||
79 | + * @return Periodo | ||
80 | + */ | ||
81 | + public function setIdEstatus(\AppBundle\Entity\Estatus $idEstatus) | ||
82 | + { | ||
83 | + $this->idEstatus = $idEstatus; | ||
84 | + | ||
85 | + return $this; | ||
86 | + } | ||
87 | + | ||
88 | + /** | ||
89 | + * Get idEstatus | ||
90 | + * | ||
91 | + * @return \AppBundle\Entity\Estatus | ||
92 | + */ | ||
93 | + public function getIdEstatus() | ||
94 | + { | ||
95 | + return $this->idEstatus; | ||
96 | + } | ||
97 | + | ||
98 | + public function __toString() { | ||
99 | + return $this->getNombre(); | ||
100 | + } | ||
101 | +} |
src/AppBundle/Entity/Periodo.php~
@@ -0,0 +1,45 @@ | @@ -0,0 +1,45 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Periodo | ||
9 | + * | ||
10 | + * @ORM\Table(name="periodo") | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Periodo | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=8, nullable=false, options={"comment" = "nombre periodo"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var \AppBundle\Entity\Estatus | ||
24 | + * | ||
25 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Estatus") | ||
26 | + * @ORM\JoinColumns({ | ||
27 | + * @ORM\JoinColumn(name="id_estatus", referencedColumnName="id", nullable=false) | ||
28 | + * }) | ||
29 | + */ | ||
30 | + private $idEstatus; | ||
31 | + | ||
32 | + /** | ||
33 | + * @var integer | ||
34 | + * | ||
35 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del periodo lectivo"}) | ||
36 | + * @ORM\Id | ||
37 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
38 | + * @ORM\SequenceGenerator(sequenceName="periodo_id_seq", allocationSize=1, initialValue=1) | ||
39 | + */ | ||
40 | + private $id; | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | +} | ||
0 | \ No newline at end of file | 46 | \ No newline at end of file |
src/AppBundle/Entity/Pfg.php
@@ -0,0 +1,136 @@ | @@ -0,0 +1,136 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Pfg | ||
9 | + * | ||
10 | + * @ORM\Table(name="pfg", uniqueConstraints={@ORM\UniqueConstraint(name="uq_programa", columns={"codigo", "nombre"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Pfg | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=80, nullable=false, options={"comment" = "nombre programa de formacion de grado"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var string | ||
24 | + * | ||
25 | + * @ORM\Column(name="codigo", type="string", length=8, nullable=false, options={"comment" = "codigo programa de formacion de grado"}) | ||
26 | + */ | ||
27 | + private $codigo; | ||
28 | + | ||
29 | + /** | ||
30 | + * @var boolean | ||
31 | + * | ||
32 | + * @ORM\Column(name="carrera_ubv", type="boolean", nullable=false, options={"comment" = "Indica si la carreras o PFG es dictada por la UBV"}) | ||
33 | + */ | ||
34 | + private $carreraUbv; | ||
35 | + | ||
36 | + /** | ||
37 | + * @var integer | ||
38 | + * | ||
39 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del programa de formacion de grado"}) | ||
40 | + * @ORM\Id | ||
41 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
42 | + * @ORM\SequenceGenerator(sequenceName="pfg_id_seq", allocationSize=1, initialValue=1) | ||
43 | + */ | ||
44 | + private $id; | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + /** | ||
49 | + * Set nombre | ||
50 | + * | ||
51 | + * @param string $nombre | ||
52 | + * @return Pfg | ||
53 | + */ | ||
54 | + public function setNombre($nombre) | ||
55 | + { | ||
56 | + $this->nombre = $nombre; | ||
57 | + | ||
58 | + return $this; | ||
59 | + } | ||
60 | + | ||
61 | + /** | ||
62 | + * Get nombre | ||
63 | + * | ||
64 | + * @return string | ||
65 | + */ | ||
66 | + public function getNombre() | ||
67 | + { | ||
68 | + return $this->nombre; | ||
69 | + } | ||
70 | + | ||
71 | + /** | ||
72 | + * Set codigo | ||
73 | + * | ||
74 | + * @param string $codigo | ||
75 | + * @return Pfg | ||
76 | + */ | ||
77 | + public function setCodigo($codigo) | ||
78 | + { | ||
79 | + $this->codigo = $codigo; | ||
80 | + | ||
81 | + return $this; | ||
82 | + } | ||
83 | + | ||
84 | + /** | ||
85 | + * Get codigo | ||
86 | + * | ||
87 | + * @return string | ||
88 | + */ | ||
89 | + public function getCodigo() | ||
90 | + { | ||
91 | + return $this->codigo; | ||
92 | + } | ||
93 | + | ||
94 | + /** | ||
95 | + * Set carreraUbv | ||
96 | + * | ||
97 | + * @param boolean $carreraUbv | ||
98 | + * @return Pfg | ||
99 | + */ | ||
100 | + public function setCarreraUbv($carreraUbv) | ||
101 | + { | ||
102 | + $this->carreraUbv = $carreraUbv; | ||
103 | + | ||
104 | + return $this; | ||
105 | + } | ||
106 | + | ||
107 | + /** | ||
108 | + * Get carreraUbv | ||
109 | + * | ||
110 | + * @return boolean | ||
111 | + */ | ||
112 | + public function getCarreraUbv() | ||
113 | + { | ||
114 | + return $this->carreraUbv; | ||
115 | + } | ||
116 | + | ||
117 | + /** | ||
118 | + * Get id | ||
119 | + * | ||
120 | + * @return integer | ||
121 | + */ | ||
122 | + public function getId() | ||
123 | + { | ||
124 | + return $this->id; | ||
125 | + } | ||
126 | + | ||
127 | + | ||
128 | + /** | ||
129 | + * | ||
130 | + * @return string | ||
131 | + */ | ||
132 | + | ||
133 | + public function __toString() { | ||
134 | + return $this->getNombre(); | ||
135 | + } | ||
136 | +} |
src/AppBundle/Entity/Pfg.php~
@@ -0,0 +1,126 @@ | @@ -0,0 +1,126 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Pfg | ||
9 | + * | ||
10 | + * @ORM\Table(name="pfg", uniqueConstraints={@ORM\UniqueConstraint(name="uq_programa", columns={"codigo", "nombre"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Pfg | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=80, nullable=false, options={"comment" = "nombre programa de formacion de grado"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var string | ||
24 | + * | ||
25 | + * @ORM\Column(name="codigo", type="string", length=8, nullable=false, options={"comment" = "codigo programa de formacion de grado"}) | ||
26 | + */ | ||
27 | + private $codigo; | ||
28 | + | ||
29 | + /** | ||
30 | + * @var boolean | ||
31 | + * | ||
32 | + * @ORM\Column(name="carrera_ubv", type="boolean", nullable=false, options={"comment" = "Indica si la carreras o PFG es dictada por la UBV"}) | ||
33 | + */ | ||
34 | + private $carreraUbv; | ||
35 | + | ||
36 | + /** | ||
37 | + * @var integer | ||
38 | + * | ||
39 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del programa de formacion de grado"}) | ||
40 | + * @ORM\Id | ||
41 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
42 | + * @ORM\SequenceGenerator(sequenceName="pfg_id_seq", allocationSize=1, initialValue=1) | ||
43 | + */ | ||
44 | + private $id; | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + /** | ||
49 | + * Set nombre | ||
50 | + * | ||
51 | + * @param string $nombre | ||
52 | + * @return Pfg | ||
53 | + */ | ||
54 | + public function setNombre($nombre) | ||
55 | + { | ||
56 | + $this->nombre = $nombre; | ||
57 | + | ||
58 | + return $this; | ||
59 | + } | ||
60 | + | ||
61 | + /** | ||
62 | + * Get nombre | ||
63 | + * | ||
64 | + * @return string | ||
65 | + */ | ||
66 | + public function getNombre() | ||
67 | + { | ||
68 | + return $this->nombre; | ||
69 | + } | ||
70 | + | ||
71 | + /** | ||
72 | + * Set codigo | ||
73 | + * | ||
74 | + * @param string $codigo | ||
75 | + * @return Pfg | ||
76 | + */ | ||
77 | + public function setCodigo($codigo) | ||
78 | + { | ||
79 | + $this->codigo = $codigo; | ||
80 | + | ||
81 | + return $this; | ||
82 | + } | ||
83 | + | ||
84 | + /** | ||
85 | + * Get codigo | ||
86 | + * | ||
87 | + * @return string | ||
88 | + */ | ||
89 | + public function getCodigo() | ||
90 | + { | ||
91 | + return $this->codigo; | ||
92 | + } | ||
93 | + | ||
94 | + /** | ||
95 | + * Set carreraUbv | ||
96 | + * | ||
97 | + * @param boolean $carreraUbv | ||
98 | + * @return Pfg | ||
99 | + */ | ||
100 | + public function setCarreraUbv($carreraUbv) | ||
101 | + { | ||
102 | + $this->carreraUbv = $carreraUbv; | ||
103 | + | ||
104 | + return $this; | ||
105 | + } | ||
106 | + | ||
107 | + /** | ||
108 | + * Get carreraUbv | ||
109 | + * | ||
110 | + * @return boolean | ||
111 | + */ | ||
112 | + public function getCarreraUbv() | ||
113 | + { | ||
114 | + return $this->carreraUbv; | ||
115 | + } | ||
116 | + | ||
117 | + /** | ||
118 | + * Get id | ||
119 | + * | ||
120 | + * @return integer | ||
121 | + */ | ||
122 | + public function getId() | ||
123 | + { | ||
124 | + return $this->id; | ||
125 | + } | ||
126 | +} | ||
0 | \ No newline at end of file | 127 | \ No newline at end of file |
src/AppBundle/Entity/Seccion.php
@@ -0,0 +1,75 @@ | @@ -0,0 +1,75 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Seccion | ||
9 | + * | ||
10 | + * @ORM\Table(name="seccion", uniqueConstraints={@ORM\UniqueConstraint(name="uq_seccion", columns={"nombre"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Seccion | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=20, nullable=false, options={"comment" = "nombre de la seccion"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var integer | ||
24 | + * | ||
25 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de las seccion"}) | ||
26 | + * @ORM\Id | ||
27 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
28 | + * @ORM\SequenceGenerator(sequenceName="seccion_id_seq", allocationSize=1, initialValue=1) | ||
29 | + */ | ||
30 | + private $id; | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + /** | ||
35 | + * Set nombre | ||
36 | + * | ||
37 | + * @param string $nombre | ||
38 | + * @return Seccion | ||
39 | + */ | ||
40 | + public function setNombre($nombre) | ||
41 | + { | ||
42 | + $this->nombre = $nombre; | ||
43 | + | ||
44 | + return $this; | ||
45 | + } | ||
46 | + | ||
47 | + /** | ||
48 | + * Get nombre | ||
49 | + * | ||
50 | + * @return string | ||
51 | + */ | ||
52 | + public function getNombre() | ||
53 | + { | ||
54 | + return $this->nombre; | ||
55 | + } | ||
56 | + | ||
57 | + /** | ||
58 | + * Get id | ||
59 | + * | ||
60 | + * @return integer | ||
61 | + */ | ||
62 | + public function getId() | ||
63 | + { | ||
64 | + return $this->id; | ||
65 | + } | ||
66 | + | ||
67 | + /** | ||
68 | + * | ||
69 | + * @return string | ||
70 | + */ | ||
71 | + | ||
72 | + public function __toString() { | ||
73 | + return $this->getNombre(); | ||
74 | + } | ||
75 | +} | ||
0 | \ No newline at end of file | 76 | \ No newline at end of file |
src/AppBundle/Entity/Tramo.php
@@ -0,0 +1,75 @@ | @@ -0,0 +1,75 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Tramo | ||
9 | + * | ||
10 | + * @ORM\Table(name="tramo", uniqueConstraints={@ORM\UniqueConstraint(name="uq_tramo_nombre", columns={"nombre"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Tramo | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=10, nullable=false, options={"comment" = "nombre del tramo"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var integer | ||
24 | + * | ||
25 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del tramo"}) | ||
26 | + * @ORM\Id | ||
27 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
28 | + * @ORM\SequenceGenerator(sequenceName="tramo_id_seq", allocationSize=1, initialValue=1) | ||
29 | + */ | ||
30 | + private $id; | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + /** | ||
35 | + * Set nombre | ||
36 | + * | ||
37 | + * @param string $nombre | ||
38 | + * @return Tramo | ||
39 | + */ | ||
40 | + public function setNombre($nombre) | ||
41 | + { | ||
42 | + $this->nombre = $nombre; | ||
43 | + | ||
44 | + return $this; | ||
45 | + } | ||
46 | + | ||
47 | + /** | ||
48 | + * Get nombre | ||
49 | + * | ||
50 | + * @return string | ||
51 | + */ | ||
52 | + public function getNombre() | ||
53 | + { | ||
54 | + return $this->nombre; | ||
55 | + } | ||
56 | + | ||
57 | + /** | ||
58 | + * Get id | ||
59 | + * | ||
60 | + * @return integer | ||
61 | + */ | ||
62 | + public function getId() | ||
63 | + { | ||
64 | + return $this->id; | ||
65 | + } | ||
66 | + | ||
67 | + /** | ||
68 | + * | ||
69 | + * @return string | ||
70 | + */ | ||
71 | + | ||
72 | + public function __toString() { | ||
73 | + return $this->getNombre(); | ||
74 | + } | ||
75 | +} |
src/AppBundle/Entity/Tramo.php~
@@ -0,0 +1,75 @@ | @@ -0,0 +1,75 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Tramo | ||
9 | + * | ||
10 | + * @ORM\Table(name="tramo", uniqueConstraints={@ORM\UniqueConstraint(name="uq_tramo_nombre", columns={"nombre"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Tramo | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=10, nullable=false, options={"comment" = "nombre del tramo"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var integer | ||
24 | + * | ||
25 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del tramo"}) | ||
26 | + * @ORM\Id | ||
27 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
28 | + * @ORM\SequenceGenerator(sequenceName="tramo_id_seq", allocationSize=1, initialValue=1) | ||
29 | + */ | ||
30 | + private $id; | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + /** | ||
35 | + * Set nombre | ||
36 | + * | ||
37 | + * @param string $nombre | ||
38 | + * @return Tramo | ||
39 | + */ | ||
40 | + public function setNombre($nombre) | ||
41 | + { | ||
42 | + $this->nombre = $nombre; | ||
43 | + | ||
44 | + return $this; | ||
45 | + } | ||
46 | + | ||
47 | + /** | ||
48 | + * Get nombre | ||
49 | + * | ||
50 | + * @return string | ||
51 | + */ | ||
52 | + public function getNombre() | ||
53 | + { | ||
54 | + return $this->nombre; | ||
55 | + } | ||
56 | + | ||
57 | + /** | ||
58 | + * Get id | ||
59 | + * | ||
60 | + * @return integer | ||
61 | + */ | ||
62 | + public function getId() | ||
63 | + { | ||
64 | + return $this->id; | ||
65 | + } | ||
66 | + | ||
67 | + /** | ||
68 | + * | ||
69 | + * @return string | ||
70 | + */ | ||
71 | + | ||
72 | + public function __toString() { | ||
73 | + return $this->getNombre(); | ||
74 | + } | ||
75 | +} | ||
0 | \ No newline at end of file | 76 | \ No newline at end of file |
src/AppBundle/Entity/Trayecto.php
@@ -0,0 +1,75 @@ | @@ -0,0 +1,75 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Trayecto | ||
9 | + * | ||
10 | + * @ORM\Table(name="trayecto", uniqueConstraints={@ORM\UniqueConstraint(name="uq_trayecto_nombre", columns={"nombre"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Trayecto | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=4, nullable=false, options={"comment" = "nombre del trayecto"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var integer | ||
24 | + * | ||
25 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del trayecto"}) | ||
26 | + * @ORM\Id | ||
27 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
28 | + * @ORM\SequenceGenerator(sequenceName="trayecto_id_seq", allocationSize=1, initialValue=1) | ||
29 | + */ | ||
30 | + private $id; | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + /** | ||
35 | + * Set nombre | ||
36 | + * | ||
37 | + * @param string $nombre | ||
38 | + * @return Trayecto | ||
39 | + */ | ||
40 | + public function setNombre($nombre) | ||
41 | + { | ||
42 | + $this->nombre = $nombre; | ||
43 | + | ||
44 | + return $this; | ||
45 | + } | ||
46 | + | ||
47 | + /** | ||
48 | + * Get nombre | ||
49 | + * | ||
50 | + * @return string | ||
51 | + */ | ||
52 | + public function getNombre() | ||
53 | + { | ||
54 | + return $this->nombre; | ||
55 | + } | ||
56 | + | ||
57 | + /** | ||
58 | + * Get id | ||
59 | + * | ||
60 | + * @return integer | ||
61 | + */ | ||
62 | + public function getId() | ||
63 | + { | ||
64 | + return $this->id; | ||
65 | + } | ||
66 | + | ||
67 | + /** | ||
68 | + * | ||
69 | + * @return string | ||
70 | + */ | ||
71 | + | ||
72 | + public function __toString() { | ||
73 | + return $this->getNombre(); | ||
74 | + } | ||
75 | +} |
src/AppBundle/Entity/Trayecto.php~
@@ -0,0 +1,75 @@ | @@ -0,0 +1,75 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Trayecto | ||
9 | + * | ||
10 | + * @ORM\Table(name="trayecto", uniqueConstraints={@ORM\UniqueConstraint(name="uq_trayecto_nombre", columns={"nombre"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Trayecto | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=4, nullable=false, options={"comment" = "nombre del trayecto"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var integer | ||
24 | + * | ||
25 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del trayecto"}) | ||
26 | + * @ORM\Id | ||
27 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
28 | + * @ORM\SequenceGenerator(sequenceName="trayecto_id_seq", allocationSize=1, initialValue=1) | ||
29 | + */ | ||
30 | + private $id; | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + /** | ||
35 | + * Set nombre | ||
36 | + * | ||
37 | + * @param string $nombre | ||
38 | + * @return Trayecto | ||
39 | + */ | ||
40 | + public function setNombre($nombre) | ||
41 | + { | ||
42 | + $this->nombre = $nombre; | ||
43 | + | ||
44 | + return $this; | ||
45 | + } | ||
46 | + | ||
47 | + /** | ||
48 | + * Get nombre | ||
49 | + * | ||
50 | + * @return string | ||
51 | + */ | ||
52 | + public function getNombre() | ||
53 | + { | ||
54 | + return $this->nombre; | ||
55 | + } | ||
56 | + | ||
57 | + /** | ||
58 | + * Get id | ||
59 | + * | ||
60 | + * @return integer | ||
61 | + */ | ||
62 | + public function getId() | ||
63 | + { | ||
64 | + return $this->id; | ||
65 | + } | ||
66 | + | ||
67 | + /** | ||
68 | + * | ||
69 | + * @return string | ||
70 | + */ | ||
71 | + | ||
72 | + public function __toString() { | ||
73 | + return $this->getNombre(); | ||
74 | + } | ||
75 | +} | ||
0 | \ No newline at end of file | 76 | \ No newline at end of file |
src/AppBundle/Entity/TrayectoTramoModalidad.php
@@ -0,0 +1,135 @@ | @@ -0,0 +1,135 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * TrayectoTramoModalidad | ||
9 | + * | ||
10 | + * @ORM\Table(name="trayecto_tramo_modalidad", uniqueConstraints={@ORM\UniqueConstraint(name="i_trayecto_tramo_modalidad", columns={"id_trayecto", "id_tramo"})}, indexes={@ORM\Index(name="fki_modalidad_trayecto_tramo_modalidad", columns={"id_modalidad"}), @ORM\Index(name="fki_tramo_trayecto_tramo_modalidad", columns={"id_tramo"}), @ORM\Index(name="IDX_AE063967814981A6", columns={"id_trayecto"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class TrayectoTramoModalidad | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var integer | ||
17 | + * | ||
18 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del trayecto_tramo_modalidad"}) | ||
19 | + * @ORM\Id | ||
20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
21 | + * @ORM\SequenceGenerator(sequenceName="trayecto_tramo_modalidad_id_seq", allocationSize=1, initialValue=1) | ||
22 | + */ | ||
23 | + private $id; | ||
24 | + | ||
25 | + /** | ||
26 | + * @var \AppBundle\Entity\Trayecto | ||
27 | + * | ||
28 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Trayecto") | ||
29 | + * @ORM\JoinColumns({ | ||
30 | + * @ORM\JoinColumn(name="id_trayecto", referencedColumnName="id", nullable=false) | ||
31 | + * }) | ||
32 | + */ | ||
33 | + private $idTrayecto; | ||
34 | + | ||
35 | + /** | ||
36 | + * @var \AppBundle\Entity\Tramo | ||
37 | + * | ||
38 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Tramo") | ||
39 | + * @ORM\JoinColumns({ | ||
40 | + * @ORM\JoinColumn(name="id_tramo", referencedColumnName="id", nullable=false) | ||
41 | + * }) | ||
42 | + */ | ||
43 | + private $idTramo; | ||
44 | + | ||
45 | + /** | ||
46 | + * @var \AppBundle\Entity\Modalidad | ||
47 | + * | ||
48 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Modalidad") | ||
49 | + * @ORM\JoinColumns({ | ||
50 | + * @ORM\JoinColumn(name="id_modalidad", referencedColumnName="id", nullable=false) | ||
51 | + * }) | ||
52 | + */ | ||
53 | + private $idModalidad; | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + /** | ||
58 | + * Get id | ||
59 | + * | ||
60 | + * @return integer | ||
61 | + */ | ||
62 | + public function getId() | ||
63 | + { | ||
64 | + return $this->id; | ||
65 | + } | ||
66 | + | ||
67 | + /** | ||
68 | + * Set idTrayecto | ||
69 | + * | ||
70 | + * @param \AppBundle\Entity\Trayecto $idTrayecto | ||
71 | + * @return TrayectoTramoModalidad | ||
72 | + */ | ||
73 | + public function setIdTrayecto(\AppBundle\Entity\Trayecto $idTrayecto) | ||
74 | + { | ||
75 | + $this->idTrayecto = $idTrayecto; | ||
76 | + | ||
77 | + return $this; | ||
78 | + } | ||
79 | + | ||
80 | + /** | ||
81 | + * Get idTrayecto | ||
82 | + * | ||
83 | + * @return \AppBundle\Entity\Trayecto | ||
84 | + */ | ||
85 | + public function getIdTrayecto() | ||
86 | + { | ||
87 | + return $this->idTrayecto; | ||
88 | + } | ||
89 | + | ||
90 | + /** | ||
91 | + * Set idTramo | ||
92 | + * | ||
93 | + * @param \AppBundle\Entity\Tramo $idTramo | ||
94 | + * @return TrayectoTramoModalidad | ||
95 | + */ | ||
96 | + public function setIdTramo(\AppBundle\Entity\Tramo $idTramo) | ||
97 | + { | ||
98 | + $this->idTramo = $idTramo; | ||
99 | + | ||
100 | + return $this; | ||
101 | + } | ||
102 | + | ||
103 | + /** | ||
104 | + * Get idTramo | ||
105 | + * | ||
106 | + * @return \AppBundle\Entity\Tramo | ||
107 | + */ | ||
108 | + public function getIdTramo() | ||
109 | + { | ||
110 | + return $this->idTramo; | ||
111 | + } | ||
112 | + | ||
113 | + /** | ||
114 | + * Set idModalidad | ||
115 | + * | ||
116 | + * @param \AppBundle\Entity\Modalidad $idModalidad | ||
117 | + * @return TrayectoTramoModalidad | ||
118 | + */ | ||
119 | + public function setIdModalidad(\AppBundle\Entity\Modalidad $idModalidad) | ||
120 | + { | ||
121 | + $this->idModalidad = $idModalidad; | ||
122 | + | ||
123 | + return $this; | ||
124 | + } | ||
125 | + | ||
126 | + /** | ||
127 | + * Get idModalidad | ||
128 | + * | ||
129 | + * @return \AppBundle\Entity\Modalidad | ||
130 | + */ | ||
131 | + public function getIdModalidad() | ||
132 | + { | ||
133 | + return $this->idModalidad; | ||
134 | + } | ||
135 | +} |
src/AppBundle/Entity/TrayectoTramoModalidad.php~
@@ -0,0 +1,58 @@ | @@ -0,0 +1,58 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * TrayectoTramoModalidad | ||
9 | + * | ||
10 | + * @ORM\Table(name="trayecto_tramo_modalidad", uniqueConstraints={@ORM\UniqueConstraint(name="i_trayecto_tramo_modalidad", columns={"id_trayecto", "id_tramo"})}, indexes={@ORM\Index(name="fki_modalidad_trayecto_tramo_modalidad", columns={"id_modalidad"}), @ORM\Index(name="fki_tramo_trayecto_tramo_modalidad", columns={"id_tramo"}), @ORM\Index(name="IDX_AE063967814981A6", columns={"id_trayecto"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class TrayectoTramoModalidad | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var integer | ||
17 | + * | ||
18 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del trayecto_tramo_modalidad"}) | ||
19 | + * @ORM\Id | ||
20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
21 | + * @ORM\SequenceGenerator(sequenceName="trayecto_tramo_modalidad_id_seq", allocationSize=1, initialValue=1) | ||
22 | + */ | ||
23 | + private $id; | ||
24 | + | ||
25 | + /** | ||
26 | + * @var \AppBundle\Entity\Trayecto | ||
27 | + * | ||
28 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Trayecto") | ||
29 | + * @ORM\JoinColumns({ | ||
30 | + * @ORM\JoinColumn(name="id_trayecto", referencedColumnName="id", nullable=false) | ||
31 | + * }) | ||
32 | + */ | ||
33 | + private $idTrayecto; | ||
34 | + | ||
35 | + /** | ||
36 | + * @var \AppBundle\Entity\Tramo | ||
37 | + * | ||
38 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Tramo") | ||
39 | + * @ORM\JoinColumns({ | ||
40 | + * @ORM\JoinColumn(name="id_tramo", referencedColumnName="id", nullable=false) | ||
41 | + * }) | ||
42 | + */ | ||
43 | + private $idTramo; | ||
44 | + | ||
45 | + /** | ||
46 | + * @var \AppBundle\Entity\Modalidad | ||
47 | + * | ||
48 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Modalidad") | ||
49 | + * @ORM\JoinColumns({ | ||
50 | + * @ORM\JoinColumn(name="id_modalidad", referencedColumnName="id", nullable=false) | ||
51 | + * }) | ||
52 | + */ | ||
53 | + private $idModalidad; | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | +} | ||
0 | \ No newline at end of file | 59 | \ No newline at end of file |
src/AppBundle/Entity/Turno.php
@@ -0,0 +1,66 @@ | @@ -0,0 +1,66 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Turno | ||
9 | + * | ||
10 | + * @ORM\Table(name="turno") | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Turno | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=15, nullable=false, options={"comment" = "registra el nombre del turno"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var integer | ||
24 | + * | ||
25 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador unico del turno"}) | ||
26 | + * @ORM\Id | ||
27 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
28 | + * @ORM\SequenceGenerator(sequenceName="turno_id_seq", allocationSize=1, initialValue=1) | ||
29 | + */ | ||
30 | + private $id; | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + /** | ||
35 | + * Set nombre | ||
36 | + * | ||
37 | + * @param string $nombre | ||
38 | + * @return Turno | ||
39 | + */ | ||
40 | + public function setNombre($nombre) | ||
41 | + { | ||
42 | + $this->nombre = $nombre; | ||
43 | + | ||
44 | + return $this; | ||
45 | + } | ||
46 | + | ||
47 | + /** | ||
48 | + * Get nombre | ||
49 | + * | ||
50 | + * @return string | ||
51 | + */ | ||
52 | + public function getNombre() | ||
53 | + { | ||
54 | + return $this->nombre; | ||
55 | + } | ||
56 | + | ||
57 | + /** | ||
58 | + * Get id | ||
59 | + * | ||
60 | + * @return integer | ||
61 | + */ | ||
62 | + public function getId() | ||
63 | + { | ||
64 | + return $this->id; | ||
65 | + } | ||
66 | +} | ||
0 | \ No newline at end of file | 67 | \ No newline at end of file |
src/AppBundle/Entity/UnidadCurricular.php
@@ -0,0 +1,158 @@ | @@ -0,0 +1,158 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * UnidadCurricular | ||
9 | + * | ||
10 | + * @ORM\Table(name="unidad_curricular", uniqueConstraints={@ORM\UniqueConstraint(name="unidad_curricular_nombre_key", columns={"nombre", "codigo"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class UnidadCurricular | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=250, nullable=false, options={"comment" = "registra el nombre de la unidad curricular"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var string | ||
24 | + * | ||
25 | + * @ORM\Column(name="codigo", type="string", length=15, nullable=false, options={"comment" = "registra el codigo de la unidad curricular"}) | ||
26 | + */ | ||
27 | + | ||
28 | + private $codigo; | ||
29 | + | ||
30 | + | ||
31 | + /** | ||
32 | + * @var string | ||
33 | + * | ||
34 | + * @ORM\Column(name="horas", type="decimal", precision=2, scale=0, nullable=false, options={"comment" = "registra la cantidas de horas que son reglamentarias para una unidad curricular"}) | ||
35 | + */ | ||
36 | + private $horas; | ||
37 | + | ||
38 | + /** | ||
39 | + * @var string | ||
40 | + * | ||
41 | + * @ORM\Column(name="creditos", type="decimal", precision=2, scale=0, nullable=true, options={"comment" = "registra la cantidas de creditos de la UC si es que posee los mismos"}) | ||
42 | + */ | ||
43 | + private $creditos; | ||
44 | + | ||
45 | + /** | ||
46 | + * @var integer | ||
47 | + * | ||
48 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador unico de la unidad curricular"}) | ||
49 | + * @ORM\Id | ||
50 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
51 | + * @ORM\SequenceGenerator(sequenceName="unidad_curricular_id_seq", allocationSize=1, initialValue=1) | ||
52 | + */ | ||
53 | + private $id; | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + /** | ||
58 | + * Set nombre | ||
59 | + * | ||
60 | + * @param string $nombre | ||
61 | + * @return UnidadCurricular | ||
62 | + */ | ||
63 | + public function setNombre($nombre) | ||
64 | + { | ||
65 | + $this->nombre = $nombre; | ||
66 | + | ||
67 | + return $this; | ||
68 | + } | ||
69 | + | ||
70 | + /** | ||
71 | + * Get nombre | ||
72 | + * | ||
73 | + * @return string | ||
74 | + */ | ||
75 | + public function getNombre() | ||
76 | + { | ||
77 | + return $this->nombre; | ||
78 | + } | ||
79 | + | ||
80 | + /** | ||
81 | + * Set codigo | ||
82 | + * | ||
83 | + * @param string $codigo | ||
84 | + * @return UnidadCurricular | ||
85 | + */ | ||
86 | + public function setCodigo($codigo) | ||
87 | + { | ||
88 | + $this->codigo = $codigo; | ||
89 | + | ||
90 | + return $this; | ||
91 | + } | ||
92 | + | ||
93 | + /** | ||
94 | + * Get codigo | ||
95 | + * | ||
96 | + * @return string | ||
97 | + */ | ||
98 | + public function getCodigo() | ||
99 | + { | ||
100 | + return $this->codigo; | ||
101 | + } | ||
102 | + | ||
103 | + /** | ||
104 | + * Set horas | ||
105 | + * | ||
106 | + * @param string $horas | ||
107 | + * @return UnidadCurricular | ||
108 | + */ | ||
109 | + public function setHoras($horas) | ||
110 | + { | ||
111 | + $this->horas = $horas; | ||
112 | + | ||
113 | + return $this; | ||
114 | + } | ||
115 | + | ||
116 | + /** | ||
117 | + * Get horas | ||
118 | + * | ||
119 | + * @return string | ||
120 | + */ | ||
121 | + public function getHoras() | ||
122 | + { | ||
123 | + return $this->horas; | ||
124 | + } | ||
125 | + | ||
126 | + /** | ||
127 | + * Get id | ||
128 | + * | ||
129 | + * @return integer | ||
130 | + */ | ||
131 | + public function getId() | ||
132 | + { | ||
133 | + return $this->id; | ||
134 | + } | ||
135 | + | ||
136 | + /** | ||
137 | + * Set creditos | ||
138 | + * | ||
139 | + * @param string $creditos | ||
140 | + * @return UnidadCurricular | ||
141 | + */ | ||
142 | + public function setCreditos($creditos) | ||
143 | + { | ||
144 | + $this->creditos = $creditos; | ||
145 | + | ||
146 | + return $this; | ||
147 | + } | ||
148 | + | ||
149 | + /** | ||
150 | + * Get creditos | ||
151 | + * | ||
152 | + * @return string | ||
153 | + */ | ||
154 | + public function getCreditos() | ||
155 | + { | ||
156 | + return $this->creditos; | ||
157 | + } | ||
158 | +} |
src/AppBundle/Entity/UnidadCurricular.php~
@@ -0,0 +1,135 @@ | @@ -0,0 +1,135 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * UnidadCurricular | ||
9 | + * | ||
10 | + * @ORM\Table(name="unidad_curricular", uniqueConstraints={@ORM\UniqueConstraint(name="unidad_curricular_nombre_key", columns={"nombre", "codigo"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class UnidadCurricular | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=250, nullable=false, options={"comment" = "registra el nombre de la unidad curricular"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var string | ||
24 | + * | ||
25 | + * @ORM\Column(name="codigo", type="string", length=15, nullable=false, options={"comment" = "registra el codigo de la unidad curricular"}) | ||
26 | + */ | ||
27 | + | ||
28 | + private $codigo; | ||
29 | + | ||
30 | + | ||
31 | + /** | ||
32 | + * @var string | ||
33 | + * | ||
34 | + * @ORM\Column(name="horas", type="decimal", precision=2, scale=0, nullable=false, options={"comment" = "registra la cantidas de horas que son reglamentarias para una unidad curricular"}) | ||
35 | + */ | ||
36 | + private $horas; | ||
37 | + | ||
38 | + /** | ||
39 | + * @var string | ||
40 | + * | ||
41 | + * @ORM\Column(name="creditos", type="decimal", precision=2, scale=0, nullable=true, options={"comment" = "registra la cantidas de creditos de la UC si es que posee los mismos"}) | ||
42 | + */ | ||
43 | + private $creditos; | ||
44 | + | ||
45 | + /** | ||
46 | + * @var integer | ||
47 | + * | ||
48 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador unico de la unidad curricular"}) | ||
49 | + * @ORM\Id | ||
50 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
51 | + * @ORM\SequenceGenerator(sequenceName="unidad_curricular_id_seq", allocationSize=1, initialValue=1) | ||
52 | + */ | ||
53 | + private $id; | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + /** | ||
58 | + * Set nombre | ||
59 | + * | ||
60 | + * @param string $nombre | ||
61 | + * @return UnidadCurricular | ||
62 | + */ | ||
63 | + public function setNombre($nombre) | ||
64 | + { | ||
65 | + $this->nombre = $nombre; | ||
66 | + | ||
67 | + return $this; | ||
68 | + } | ||
69 | + | ||
70 | + /** | ||
71 | + * Get nombre | ||
72 | + * | ||
73 | + * @return string | ||
74 | + */ | ||
75 | + public function getNombre() | ||
76 | + { | ||
77 | + return $this->nombre; | ||
78 | + } | ||
79 | + | ||
80 | + /** | ||
81 | + * Set codigo | ||
82 | + * | ||
83 | + * @param string $codigo | ||
84 | + * @return UnidadCurricular | ||
85 | + */ | ||
86 | + public function setCodigo($codigo) | ||
87 | + { | ||
88 | + $this->codigo = $codigo; | ||
89 | + | ||
90 | + return $this; | ||
91 | + } | ||
92 | + | ||
93 | + /** | ||
94 | + * Get codigo | ||
95 | + * | ||
96 | + * @return string | ||
97 | + */ | ||
98 | + public function getCodigo() | ||
99 | + { | ||
100 | + return $this->codigo; | ||
101 | + } | ||
102 | + | ||
103 | + /** | ||
104 | + * Set horas | ||
105 | + * | ||
106 | + * @param string $horas | ||
107 | + * @return UnidadCurricular | ||
108 | + */ | ||
109 | + public function setHoras($horas) | ||
110 | + { | ||
111 | + $this->horas = $horas; | ||
112 | + | ||
113 | + return $this; | ||
114 | + } | ||
115 | + | ||
116 | + /** | ||
117 | + * Get horas | ||
118 | + * | ||
119 | + * @return string | ||
120 | + */ | ||
121 | + public function getHoras() | ||
122 | + { | ||
123 | + return $this->horas; | ||
124 | + } | ||
125 | + | ||
126 | + /** | ||
127 | + * Get id | ||
128 | + * | ||
129 | + * @return integer | ||
130 | + */ | ||
131 | + public function getId() | ||
132 | + { | ||
133 | + return $this->id; | ||
134 | + } | ||
135 | +} | ||
0 | \ No newline at end of file | 136 | \ No newline at end of file |
src/AppBundle/Entity/UnidadCurricularVolumen.php
@@ -0,0 +1,104 @@ | @@ -0,0 +1,104 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * UnidadCurricularVolumen | ||
9 | + * | ||
10 | + * @ORM\Table(name="unidad_curricular_volumen", uniqueConstraints={@ORM\UniqueConstraint(name="i_unidad_curricular_volumen", columns={"id_unidad_curricular", "id_volumen"})}, indexes={@ORM\Index(name="fki_volumen_unidad_curricular_volumen", columns={"id_volumen"}), @ORM\Index(name="IDX_A893E1FC3885FA9C", columns={"id_unidad_curricular"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class UnidadCurricularVolumen | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var integer | ||
17 | + * | ||
18 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la unidad curricular en un volumen especifico"}) | ||
19 | + * @ORM\Id | ||
20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
21 | + * @ORM\SequenceGenerator(sequenceName="unidad_curricular_volumen_id_seq", allocationSize=1, initialValue=1) | ||
22 | + */ | ||
23 | + private $id; | ||
24 | + | ||
25 | + /** | ||
26 | + * @var \AppBundle\Entity\Volumen | ||
27 | + * | ||
28 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Volumen") | ||
29 | + * @ORM\JoinColumns({ | ||
30 | + * @ORM\JoinColumn(name="id_volumen", referencedColumnName="id", nullable=false) | ||
31 | + * }) | ||
32 | + */ | ||
33 | + private $idVolumen; | ||
34 | + | ||
35 | + /** | ||
36 | + * @var \AppBundle\Entity\UnidadCurricular | ||
37 | + * | ||
38 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\UnidadCurricular") | ||
39 | + * @ORM\JoinColumns({ | ||
40 | + * @ORM\JoinColumn(name="id_unidad_curricular", referencedColumnName="id", nullable=false) | ||
41 | + * }) | ||
42 | + */ | ||
43 | + private $idUnidadCurricular; | ||
44 | + | ||
45 | + | ||
46 | + | ||
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 idVolumen | ||
61 | + * | ||
62 | + * @param \AppBundle\Entity\Volumen $idVolumen | ||
63 | + * @return UnidadCurricularVolumen | ||
64 | + */ | ||
65 | + public function setIdVolumen(\AppBundle\Entity\Volumen $idVolumen) | ||
66 | + { | ||
67 | + $this->idVolumen = $idVolumen; | ||
68 | + | ||
69 | + return $this; | ||
70 | + } | ||
71 | + | ||
72 | + /** | ||
73 | + * Get idVolumen | ||
74 | + * | ||
75 | + * @return \AppBundle\Entity\Volumen | ||
76 | + */ | ||
77 | + public function getIdVolumen() | ||
78 | + { | ||
79 | + return $this->idVolumen; | ||
80 | + } | ||
81 | + | ||
82 | + /** | ||
83 | + * Set idUnidadCurricular | ||
84 | + * | ||
85 | + * @param \AppBundle\Entity\UnidadCurricular $idUnidadCurricular | ||
86 | + * @return UnidadCurricularVolumen | ||
87 | + */ | ||
88 | + public function setIdUnidadCurricular(\AppBundle\Entity\UnidadCurricular $idUnidadCurricular) | ||
89 | + { | ||
90 | + $this->idUnidadCurricular = $idUnidadCurricular; | ||
91 | + | ||
92 | + return $this; | ||
93 | + } | ||
94 | + | ||
95 | + /** | ||
96 | + * Get idUnidadCurricular | ||
97 | + * | ||
98 | + * @return \AppBundle\Entity\UnidadCurricular | ||
99 | + */ | ||
100 | + public function getIdUnidadCurricular() | ||
101 | + { | ||
102 | + return $this->idUnidadCurricular; | ||
103 | + } | ||
104 | +} |
src/AppBundle/Entity/UnidadCurricularVolumen.php~
@@ -0,0 +1,48 @@ | @@ -0,0 +1,48 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * UnidadCurricularVolumen | ||
9 | + * | ||
10 | + * @ORM\Table(name="unidad_curricular_volumen", uniqueConstraints={@ORM\UniqueConstraint(name="i_unidad_curricular_volumen", columns={"id_unidad_curricular", "id_volumen"})}, indexes={@ORM\Index(name="fki_volumen_unidad_curricular_volumen", columns={"id_volumen"}), @ORM\Index(name="IDX_A893E1FC3885FA9C", columns={"id_unidad_curricular"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class UnidadCurricularVolumen | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var integer | ||
17 | + * | ||
18 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la unidad curricular en un volumen especifico"}) | ||
19 | + * @ORM\Id | ||
20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
21 | + * @ORM\SequenceGenerator(sequenceName="unidad_curricular_volumen_id_seq", allocationSize=1, initialValue=1) | ||
22 | + */ | ||
23 | + private $id; | ||
24 | + | ||
25 | + /** | ||
26 | + * @var \AppBundle\Entity\Volumen | ||
27 | + * | ||
28 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Volumen") | ||
29 | + * @ORM\JoinColumns({ | ||
30 | + * @ORM\JoinColumn(name="id_volumen", referencedColumnName="id", nullable=false) | ||
31 | + * }) | ||
32 | + */ | ||
33 | + private $idVolumen; | ||
34 | + | ||
35 | + /** | ||
36 | + * @var \AppBundle\Entity\UnidadCurricular | ||
37 | + * | ||
38 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\UnidadCurricular") | ||
39 | + * @ORM\JoinColumns({ | ||
40 | + * @ORM\JoinColumn(name="id_unidad_curricular", referencedColumnName="id", nullable=false) | ||
41 | + * }) | ||
42 | + */ | ||
43 | + private $idUnidadCurricular; | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | +} | ||
0 | \ No newline at end of file | 49 | \ No newline at end of file |
src/AppBundle/Entity/Volumen.php
@@ -0,0 +1,75 @@ | @@ -0,0 +1,75 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Volumen | ||
9 | + * | ||
10 | + * @ORM\Table(name="volumen", uniqueConstraints={@ORM\UniqueConstraint(name="uq_volumen", columns={"nombre"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Volumen | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=4, nullable=false, options={"comment" = "Nombre del volumen"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var integer | ||
24 | + * | ||
25 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del volumen"}) | ||
26 | + * @ORM\Id | ||
27 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
28 | + * @ORM\SequenceGenerator(sequenceName="volumen_id_seq", allocationSize=1, initialValue=1) | ||
29 | + */ | ||
30 | + private $id; | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + /** | ||
35 | + * Set nombre | ||
36 | + * | ||
37 | + * @param string $nombre | ||
38 | + * @return Volumen | ||
39 | + */ | ||
40 | + public function setNombre($nombre) | ||
41 | + { | ||
42 | + $this->nombre = $nombre; | ||
43 | + | ||
44 | + return $this; | ||
45 | + } | ||
46 | + | ||
47 | + /** | ||
48 | + * Get nombre | ||
49 | + * | ||
50 | + * @return string | ||
51 | + */ | ||
52 | + public function getNombre() | ||
53 | + { | ||
54 | + return $this->nombre; | ||
55 | + } | ||
56 | + | ||
57 | + /** | ||
58 | + * Get id | ||
59 | + * | ||
60 | + * @return integer | ||
61 | + */ | ||
62 | + public function getId() | ||
63 | + { | ||
64 | + return $this->id; | ||
65 | + } | ||
66 | + | ||
67 | + /** | ||
68 | + * | ||
69 | + * @return string | ||
70 | + */ | ||
71 | + | ||
72 | + public function __toString() { | ||
73 | + return $this->getNombre(); | ||
74 | + } | ||
75 | +} |
src/AppBundle/Entity/Volumen.php~
@@ -0,0 +1,75 @@ | @@ -0,0 +1,75 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Entity; | ||
4 | + | ||
5 | +use Doctrine\ORM\Mapping as ORM; | ||
6 | + | ||
7 | +/** | ||
8 | + * Volumen | ||
9 | + * | ||
10 | + * @ORM\Table(name="volumen", uniqueConstraints={@ORM\UniqueConstraint(name="uq_volumen", columns={"nombre"})}) | ||
11 | + * @ORM\Entity | ||
12 | + */ | ||
13 | +class Volumen | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @var string | ||
17 | + * | ||
18 | + * @ORM\Column(name="nombre", type="string", length=4, nullable=false, options={"comment" = "Nombre del volumen"}) | ||
19 | + */ | ||
20 | + private $nombre; | ||
21 | + | ||
22 | + /** | ||
23 | + * @var integer | ||
24 | + * | ||
25 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "identificador del volumen"}) | ||
26 | + * @ORM\Id | ||
27 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
28 | + * @ORM\SequenceGenerator(sequenceName="volumen_id_seq", allocationSize=1, initialValue=1) | ||
29 | + */ | ||
30 | + private $id; | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + /** | ||
35 | + * Set nombre | ||
36 | + * | ||
37 | + * @param string $nombre | ||
38 | + * @return Volumen | ||
39 | + */ | ||
40 | + public function setNombre($nombre) | ||
41 | + { | ||
42 | + $this->nombre = $nombre; | ||
43 | + | ||
44 | + return $this; | ||
45 | + } | ||
46 | + | ||
47 | + /** | ||
48 | + * Get nombre | ||
49 | + * | ||
50 | + * @return string | ||
51 | + */ | ||
52 | + public function getNombre() | ||
53 | + { | ||
54 | + return $this->nombre; | ||
55 | + } | ||
56 | + | ||
57 | + /** | ||
58 | + * Get id | ||
59 | + * | ||
60 | + * @return integer | ||
61 | + */ | ||
62 | + public function getId() | ||
63 | + { | ||
64 | + return $this->id; | ||
65 | + } | ||
66 | + | ||
67 | + /** | ||
68 | + * | ||
69 | + * @return string | ||
70 | + */ | ||
71 | + | ||
72 | + public function __toString() { | ||
73 | + return $this->getNombre(); | ||
74 | + } | ||
75 | +} | ||
0 | \ No newline at end of file | 76 | \ No newline at end of file |
src/AppBundle/Form/EstadoAcademicoType.php
@@ -0,0 +1,46 @@ | @@ -0,0 +1,46 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Form; | ||
4 | + | ||
5 | +use Symfony\Component\Form\AbstractType; | ||
6 | +use Symfony\Component\Form\FormBuilderInterface; | ||
7 | +use Symfony\Component\OptionsResolver\OptionsResolver; | ||
8 | +use Symfony\Bridge\Doctrine\Form\Type\EntityType; | ||
9 | +use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
10 | + | ||
11 | +class EstadoAcademicoType extends AbstractType | ||
12 | +{ | ||
13 | + /** | ||
14 | + * @param FormBuilderInterface $builder | ||
15 | + * @param array $options | ||
16 | + */ | ||
17 | + public function buildForm(FormBuilderInterface $builder, array $options) | ||
18 | + { | ||
19 | + $builder | ||
20 | + /*->add('fecha', 'date') | ||
21 | + ->add('observacion') | ||
22 | + ->add('idDocenteServicio') | ||
23 | + ->add('idRolInstitucion')*/ | ||
24 | + ->add('idOfertaMallaCurricular', EntityType::class, array( | ||
25 | + 'placeholder' => 'Seleccione Malla a crear Estado Academico ...', | ||
26 | + 'class' => 'AppBundle:OfertaMallaCurricular', | ||
27 | + 'label' => false | ||
28 | + )) | ||
29 | + ->add('send', SubmitType::class, array( | ||
30 | + 'label' => 'Enviar Solicitud', | ||
31 | + 'attr' => array('class' => 'btn btn-success') | ||
32 | + )) | ||
33 | + // ->add('idGradoAcademico') | ||
34 | + ; | ||
35 | + } | ||
36 | + | ||
37 | + /** | ||
38 | + * @param OptionsResolver $resolver | ||
39 | + */ | ||
40 | + public function configureOptions(OptionsResolver $resolver) | ||
41 | + { | ||
42 | + $resolver->setDefaults(array( | ||
43 | + 'data_class' => 'AppBundle\Entity\EstadoAcademico' | ||
44 | + )); | ||
45 | + } | ||
46 | +} |
src/AppBundle/Form/OfertaAcademicaType.php
@@ -0,0 +1,37 @@ | @@ -0,0 +1,37 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Form; | ||
4 | + | ||
5 | +use Symfony\Component\Form\AbstractType; | ||
6 | +use Symfony\Component\Form\FormBuilderInterface; | ||
7 | +use Symfony\Component\OptionsResolver\OptionsResolver; | ||
8 | + | ||
9 | +class OfertaAcademicaType extends AbstractType | ||
10 | +{ | ||
11 | + /** | ||
12 | + * @param FormBuilderInterface $builder | ||
13 | + * @param array $options | ||
14 | + */ | ||
15 | + public function buildForm(FormBuilderInterface $builder, array $options) | ||
16 | + { | ||
17 | + $builder | ||
18 | + ->add('aula') | ||
19 | + ->add('cupo') | ||
20 | + ->add('idMallaCurricularUc') | ||
21 | + ->add('idTurno') | ||
22 | + ->add('idSeccion') | ||
23 | + ->add('idRolInstitucion') | ||
24 | + ->add('idOfertaMallaCurricular') | ||
25 | + ; | ||
26 | + } | ||
27 | + | ||
28 | + /** | ||
29 | + * @param OptionsResolver $resolver | ||
30 | + */ | ||
31 | + public function configureOptions(OptionsResolver $resolver) | ||
32 | + { | ||
33 | + $resolver->setDefaults(array( | ||
34 | + 'data_class' => 'AppBundle\Entity\OfertaAcademica' | ||
35 | + )); | ||
36 | + } | ||
37 | +} |
src/AppBundle/Tests/Controller/OfertaAcademicaControllerTest.php
@@ -0,0 +1,55 @@ | @@ -0,0 +1,55 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +namespace AppBundle\Tests\Controller; | ||
4 | + | ||
5 | +use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | ||
6 | + | ||
7 | +class OfertaAcademicaControllerTest extends WebTestCase | ||
8 | +{ | ||
9 | + /* | ||
10 | + public function testCompleteScenario() | ||
11 | + { | ||
12 | + // Create a new client to browse the application | ||
13 | + $client = static::createClient(); | ||
14 | + | ||
15 | + // Create a new entry in the database | ||
16 | + $crawler = $client->request('GET', '/ceapp/gestion/oferta_academica/'); | ||
17 | + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /ceapp/gestion/oferta_academica/"); | ||
18 | + $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); | ||
19 | + | ||
20 | + // Fill in the form and submit it | ||
21 | + $form = $crawler->selectButton('Create')->form(array( | ||
22 | + 'appbundle_ofertaacademica[field_name]' => 'Test', | ||
23 | + // ... other fields to fill | ||
24 | + )); | ||
25 | + | ||
26 | + $client->submit($form); | ||
27 | + $crawler = $client->followRedirect(); | ||
28 | + | ||
29 | + // Check data in the show view | ||
30 | + $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); | ||
31 | + | ||
32 | + // Edit the entity | ||
33 | + $crawler = $client->click($crawler->selectLink('Edit')->link()); | ||
34 | + | ||
35 | + $form = $crawler->selectButton('Update')->form(array( | ||
36 | + 'appbundle_ofertaacademica[field_name]' => 'Foo', | ||
37 | + // ... other fields to fill | ||
38 | + )); | ||
39 | + | ||
40 | + $client->submit($form); | ||
41 | + $crawler = $client->followRedirect(); | ||
42 | + | ||
43 | + // Check the element contains an attribute with value equals "Foo" | ||
44 | + $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); | ||
45 | + | ||
46 | + // Delete the entity | ||
47 | + $client->submit($crawler->selectButton('Delete')->form()); | ||
48 | + $crawler = $client->followRedirect(); | ||
49 | + | ||
50 | + // Check the entity has been delete on the list | ||
51 | + $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); | ||
52 | + } | ||
53 | + | ||
54 | + */ | ||
55 | +} |