Commit f4469e9f378009cdc7f2c3cad3002a8b73647bd6
1 parent
a6678a3d88
Exists in
master
mejorada las relaciones externas de la planificacion, corrección de erores y cre…
…acion del CRUD de la planificacion para comenzar a trabajar en su creacion
Showing
19 changed files
with
579 additions
and
127 deletions
Show diff stats
app/Resources/views/planificacionseccion/edit.html.twig
| ... | ... | @@ -0,0 +1,21 @@ |
| 1 | +{% extends 'base.html.twig' %} | |
| 2 | + | |
| 3 | +{% block body %} | |
| 4 | + <h1>PlanificacionSeccion 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_docente_planificacion_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/planificacionseccion/index.html.twig
| ... | ... | @@ -0,0 +1,43 @@ |
| 1 | +{% extends 'base.html.twig' %} | |
| 2 | + | |
| 3 | +{% block body %} | |
| 4 | + <h1>PlanificacionSeccion list</h1> | |
| 5 | + | |
| 6 | + <table> | |
| 7 | + <thead> | |
| 8 | + <tr> | |
| 9 | + <th>Fecha_creacion</th> | |
| 10 | + <th>Fecha_ultima_actualizacion</th> | |
| 11 | + <th>Observacion</th> | |
| 12 | + <th>Id</th> | |
| 13 | + <th>Actions</th> | |
| 14 | + </tr> | |
| 15 | + </thead> | |
| 16 | + <tbody> | |
| 17 | + {% for planificacionSeccion in planificacionSeccions %} | |
| 18 | + <tr> | |
| 19 | + <td><a href="{{ path('ceapp_docente_planificacion_show', { 'id': planificacionSeccion.id }) }}">{{ planificacionSeccion.fechacreacion }}</a></td> | |
| 20 | + <td>{% if planificacionSeccion.fechaultimaactualizacion %}{{ planificacionSeccion.fechaultimaactualizacion|date('Y-m-d H:i:s') }}{% endif %}</td> | |
| 21 | + <td>{{ planificacionSeccion.observacion }}</td> | |
| 22 | + <td>{{ planificacionSeccion.id }}</td> | |
| 23 | + <td> | |
| 24 | + <ul> | |
| 25 | + <li> | |
| 26 | + <a href="{{ path('ceapp_docente_planificacion_show', { 'id': planificacionSeccion.id }) }}">show</a> | |
| 27 | + </li> | |
| 28 | + <li> | |
| 29 | + <a href="{{ path('ceapp_docente_planificacion_edit', { 'id': planificacionSeccion.id }) }}">edit</a> | |
| 30 | + </li> | |
| 31 | + </ul> | |
| 32 | + </td> | |
| 33 | + </tr> | |
| 34 | + {% endfor %} | |
| 35 | + </tbody> | |
| 36 | + </table> | |
| 37 | + | |
| 38 | + <ul> | |
| 39 | + <li> | |
| 40 | + <a href="{{ path('ceapp_docente_planificacion_new') }}">Create a new entry</a> | |
| 41 | + </li> | |
| 42 | + </ul> | |
| 43 | +{% endblock %} | ... | ... |
app/Resources/views/planificacionseccion/new.html.twig
| ... | ... | @@ -0,0 +1,16 @@ |
| 1 | +{% extends 'base.html.twig' %} | |
| 2 | + | |
| 3 | +{% block body %} | |
| 4 | + <h1>PlanificacionSeccion 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_docente_planificacion_index') }}">Back to the list</a> | |
| 14 | + </li> | |
| 15 | + </ul> | |
| 16 | +{% endblock %} | ... | ... |
app/Resources/views/planificacionseccion/show.html.twig
| ... | ... | @@ -0,0 +1,40 @@ |
| 1 | +{% extends 'base.html.twig' %} | |
| 2 | + | |
| 3 | +{% block body %} | |
| 4 | + <h1>PlanificacionSeccion</h1> | |
| 5 | + | |
| 6 | + <table> | |
| 7 | + <tbody> | |
| 8 | + <tr> | |
| 9 | + <th>Fecha_creacion</th> | |
| 10 | + <td>{% if planificacionSeccion.fechacreacion %}{{ planificacionSeccion.fechacreacion|date('Y-m-d H:i:s') }}{% endif %}</td> | |
| 11 | + </tr> | |
| 12 | + <tr> | |
| 13 | + <th>Fecha_ultima_actualizacion</th> | |
| 14 | + <td>{% if planificacionSeccion.fechaultimaactualizacion %}{{ planificacionSeccion.fechaultimaactualizacion|date('Y-m-d H:i:s') }}{% endif %}</td> | |
| 15 | + </tr> | |
| 16 | + <tr> | |
| 17 | + <th>Observacion</th> | |
| 18 | + <td>{{ planificacionSeccion.observacion }}</td> | |
| 19 | + </tr> | |
| 20 | + <tr> | |
| 21 | + <th>Id</th> | |
| 22 | + <td>{{ planificacionSeccion.id }}</td> | |
| 23 | + </tr> | |
| 24 | + </tbody> | |
| 25 | + </table> | |
| 26 | + | |
| 27 | + <ul> | |
| 28 | + <li> | |
| 29 | + <a href="{{ path('ceapp_docente_planificacion_index') }}">Back to the list</a> | |
| 30 | + </li> | |
| 31 | + <li> | |
| 32 | + <a href="{{ path('ceapp_docente_planificacion_edit', { 'id': planificacionSeccion.id }) }}">Edit</a> | |
| 33 | + </li> | |
| 34 | + <li> | |
| 35 | + {{ form_start(delete_form) }} | |
| 36 | + <input type="submit" value="Delete"> | |
| 37 | + {{ form_end(delete_form) }} | |
| 38 | + </li> | |
| 39 | + </ul> | |
| 40 | +{% endblock %} | ... | ... |
src/AppBundle/Controller/PlanificacionSeccionController.php
| ... | ... | @@ -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\PlanificacionSeccion; | |
| 10 | +use AppBundle\Form\PlanificacionSeccionType; | |
| 11 | + | |
| 12 | +/** | |
| 13 | + * PlanificacionSeccion controller. | |
| 14 | + * | |
| 15 | + * @Route("/ceapp/docente/planificacion") | |
| 16 | + */ | |
| 17 | +class PlanificacionSeccionController extends Controller | |
| 18 | +{ | |
| 19 | + /** | |
| 20 | + * Lists all PlanificacionSeccion entities. | |
| 21 | + * | |
| 22 | + * @Route("/", name="ceapp_docente_planificacion_index") | |
| 23 | + * @Method("GET") | |
| 24 | + */ | |
| 25 | + public function indexAction() | |
| 26 | + { | |
| 27 | + $em = $this->getDoctrine()->getManager(); | |
| 28 | + | |
| 29 | + $planificacionSeccions = $em->getRepository('AppBundle:PlanificacionSeccion')->findAll(); | |
| 30 | + | |
| 31 | + return $this->render('planificacionseccion/index.html.twig', array( | |
| 32 | + 'planificacionSeccions' => $planificacionSeccions, | |
| 33 | + )); | |
| 34 | + } | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * Creates a new PlanificacionSeccion entity. | |
| 38 | + * | |
| 39 | + * @Route("/new", name="ceapp_docente_planificacion_new") | |
| 40 | + * @Method({"GET", "POST"}) | |
| 41 | + */ | |
| 42 | + public function newAction(Request $request) | |
| 43 | + { | |
| 44 | + $planificacionSeccion = new PlanificacionSeccion(); | |
| 45 | + $form = $this->createForm('AppBundle\Form\PlanificacionSeccionType', $planificacionSeccion); | |
| 46 | + $form->handleRequest($request); | |
| 47 | + | |
| 48 | + if ($form->isSubmitted() && $form->isValid()) { | |
| 49 | + $em = $this->getDoctrine()->getManager(); | |
| 50 | + $em->persist($planificacionSeccion); | |
| 51 | + $em->flush(); | |
| 52 | + | |
| 53 | + return $this->redirectToRoute('ceapp_docente_planificacion_show', array('id' => $planificacionSeccion->getId())); | |
| 54 | + } | |
| 55 | + | |
| 56 | + return $this->render('planificacionseccion/new.html.twig', array( | |
| 57 | + 'planificacionSeccion' => $planificacionSeccion, | |
| 58 | + 'form' => $form->createView(), | |
| 59 | + )); | |
| 60 | + } | |
| 61 | + | |
| 62 | + /** | |
| 63 | + * Finds and displays a PlanificacionSeccion entity. | |
| 64 | + * | |
| 65 | + * @Route("/{id}", name="ceapp_docente_planificacion_show") | |
| 66 | + * @Method("GET") | |
| 67 | + */ | |
| 68 | + public function showAction(PlanificacionSeccion $planificacionSeccion) | |
| 69 | + { | |
| 70 | + $deleteForm = $this->createDeleteForm($planificacionSeccion); | |
| 71 | + | |
| 72 | + return $this->render('planificacionseccion/show.html.twig', array( | |
| 73 | + 'planificacionSeccion' => $planificacionSeccion, | |
| 74 | + 'delete_form' => $deleteForm->createView(), | |
| 75 | + )); | |
| 76 | + } | |
| 77 | + | |
| 78 | + /** | |
| 79 | + * Displays a form to edit an existing PlanificacionSeccion entity. | |
| 80 | + * | |
| 81 | + * @Route("/{id}/edit", name="ceapp_docente_planificacion_edit") | |
| 82 | + * @Method({"GET", "POST"}) | |
| 83 | + */ | |
| 84 | + public function editAction(Request $request, PlanificacionSeccion $planificacionSeccion) | |
| 85 | + { | |
| 86 | + $deleteForm = $this->createDeleteForm($planificacionSeccion); | |
| 87 | + $editForm = $this->createForm('AppBundle\Form\PlanificacionSeccionType', $planificacionSeccion); | |
| 88 | + $editForm->handleRequest($request); | |
| 89 | + | |
| 90 | + if ($editForm->isSubmitted() && $editForm->isValid()) { | |
| 91 | + $em = $this->getDoctrine()->getManager(); | |
| 92 | + $em->persist($planificacionSeccion); | |
| 93 | + $em->flush(); | |
| 94 | + | |
| 95 | + return $this->redirectToRoute('ceapp_docente_planificacion_edit', array('id' => $planificacionSeccion->getId())); | |
| 96 | + } | |
| 97 | + | |
| 98 | + return $this->render('planificacionseccion/edit.html.twig', array( | |
| 99 | + 'planificacionSeccion' => $planificacionSeccion, | |
| 100 | + 'edit_form' => $editForm->createView(), | |
| 101 | + 'delete_form' => $deleteForm->createView(), | |
| 102 | + )); | |
| 103 | + } | |
| 104 | + | |
| 105 | + /** | |
| 106 | + * Deletes a PlanificacionSeccion entity. | |
| 107 | + * | |
| 108 | + * @Route("/{id}", name="ceapp_docente_planificacion_delete") | |
| 109 | + * @Method("DELETE") | |
| 110 | + */ | |
| 111 | + public function deleteAction(Request $request, PlanificacionSeccion $planificacionSeccion) | |
| 112 | + { | |
| 113 | + $form = $this->createDeleteForm($planificacionSeccion); | |
| 114 | + $form->handleRequest($request); | |
| 115 | + | |
| 116 | + if ($form->isSubmitted() && $form->isValid()) { | |
| 117 | + $em = $this->getDoctrine()->getManager(); | |
| 118 | + $em->remove($planificacionSeccion); | |
| 119 | + $em->flush(); | |
| 120 | + } | |
| 121 | + | |
| 122 | + return $this->redirectToRoute('ceapp_docente_planificacion_index'); | |
| 123 | + } | |
| 124 | + | |
| 125 | + /** | |
| 126 | + * Creates a form to delete a PlanificacionSeccion entity. | |
| 127 | + * | |
| 128 | + * @param PlanificacionSeccion $planificacionSeccion The PlanificacionSeccion entity | |
| 129 | + * | |
| 130 | + * @return \Symfony\Component\Form\Form The form | |
| 131 | + */ | |
| 132 | + private function createDeleteForm(PlanificacionSeccion $planificacionSeccion) | |
| 133 | + { | |
| 134 | + return $this->createFormBuilder() | |
| 135 | + ->setAction($this->generateUrl('ceapp_docente_planificacion_delete', array('id' => $planificacionSeccion->getId()))) | |
| 136 | + ->setMethod('DELETE') | |
| 137 | + ->getForm() | |
| 138 | + ; | |
| 139 | + } | |
| 140 | +} | ... | ... |
src/AppBundle/Entity/OfertaAcademica.php
src/AppBundle/Entity/PlanificacionSeccion.php
| ... | ... | @@ -34,27 +34,27 @@ class PlanificacionSeccion |
| 34 | 34 | |
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | - * @ORM\OneToMany(targetEntity="PlanificacionSeccionEspecifico", mappedBy="idObjetivoEspecifico") | |
| 37 | + * @ORM\OneToMany(targetEntity="PlanificacionSeccionEspecifico", mappedBy="idPlanificacionEspecifico") | |
| 38 | 38 | */ |
| 39 | - private $idObjetivoEspecifico; | |
| 39 | + private $objetivoEspecifico; | |
| 40 | 40 | |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * @ORM\OneToMany(targetEntity="PlanificacionSeccionContenido", mappedBy="idPlanificacionSeccionContenido") | |
| 43 | + * @ORM\OneToMany(targetEntity="PlanificacionSeccionContenido", mappedBy="idPlanificacionContenido") | |
| 44 | 44 | */ |
| 45 | - private $idPlanificacionSeccionContenido; | |
| 45 | + private $contenido; | |
| 46 | 46 | |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | - * @ORM\OneToMany(targetEntity="PlanificacionSeccionEstrategia", mappedBy="idPlanificacionSeccionEstrategia") | |
| 49 | + * @ORM\OneToMany(targetEntity="PlanificacionSeccionEstrategia", mappedBy="idPlanificacionEstrategia") | |
| 50 | 50 | */ |
| 51 | - private $idPlanificacionSeccionEstrategia; | |
| 51 | + private $estrategia; | |
| 52 | 52 | |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * @ORM\OneToMany(targetEntity="PlanificacionSeccionEvaluacion", mappedBy="idPlanificacionSeccionEvaluacion") | |
| 55 | + * @ORM\OneToMany(targetEntity="PlanificacionSeccionEvaluacion", mappedBy="idPlanificacionEvaluacion") | |
| 56 | 56 | */ |
| 57 | - private $idPlanificacionSeccionEvaluacion; | |
| 57 | + private $evaluacion; | |
| 58 | 58 | |
| 59 | 59 | |
| 60 | 60 | |
| ... | ... | @@ -97,25 +97,16 @@ class PlanificacionSeccion |
| 97 | 97 | private $seccion; |
| 98 | 98 | |
| 99 | 99 | |
| 100 | - /** | |
| 101 | - * @var string | |
| 102 | - * | |
| 103 | - * @ORM\Column(name="objetivo", type="text", nullable=false, options={"comment" = "Objetivo de la seccion"}) | |
| 104 | - */ | |
| 105 | - private $objetivo; | |
| 106 | - | |
| 107 | - | |
| 108 | - | |
| 109 | 100 | |
| 110 | 101 | /** |
| 111 | 102 | * Constructor |
| 112 | 103 | */ |
| 113 | 104 | public function __construct() |
| 114 | 105 | { |
| 115 | - $this->idObjetivoEspecifico = new \Doctrine\Common\Collections\ArrayCollection(); | |
| 116 | - $this->idPlanificacionSeccionContenido = new \Doctrine\Common\Collections\ArrayCollection(); | |
| 117 | - $this->idPlanificacionSeccionEstrategia = new \Doctrine\Common\Collections\ArrayCollection(); | |
| 118 | - $this->idPlanificacionSeccionEvaluacion = new \Doctrine\Common\Collections\ArrayCollection(); | |
| 106 | + $this->objetivoEspecifico = new \Doctrine\Common\Collections\ArrayCollection(); | |
| 107 | + $this->contenido = new \Doctrine\Common\Collections\ArrayCollection(); | |
| 108 | + $this->estrategia = new \Doctrine\Common\Collections\ArrayCollection(); | |
| 109 | + $this->evaluacion = new \Doctrine\Common\Collections\ArrayCollection(); | |
| 119 | 110 | } |
| 120 | 111 | |
| 121 | 112 | /** |
| ... | ... | @@ -198,29 +189,6 @@ class PlanificacionSeccion |
| 198 | 189 | } |
| 199 | 190 | |
| 200 | 191 | /** |
| 201 | - * Set objetivo | |
| 202 | - * | |
| 203 | - * @param string $objetivo | |
| 204 | - * @return PlanificacionSeccion | |
| 205 | - */ | |
| 206 | - public function setObjetivo($objetivo) | |
| 207 | - { | |
| 208 | - $this->objetivo = $objetivo; | |
| 209 | - | |
| 210 | - return $this; | |
| 211 | - } | |
| 212 | - | |
| 213 | - /** | |
| 214 | - * Get objetivo | |
| 215 | - * | |
| 216 | - * @return string | |
| 217 | - */ | |
| 218 | - public function getObjetivo() | |
| 219 | - { | |
| 220 | - return $this->objetivo; | |
| 221 | - } | |
| 222 | - | |
| 223 | - /** | |
| 224 | 192 | * Set idtemaUc |
| 225 | 193 | * |
| 226 | 194 | * @param \AppBundle\Entity\UnidadCurricularVolumenTema $idtemaUc |
| ... | ... | @@ -244,135 +212,135 @@ class PlanificacionSeccion |
| 244 | 212 | } |
| 245 | 213 | |
| 246 | 214 | /** |
| 247 | - * Add idObjetivoEspecifico | |
| 215 | + * Add objetivoEspecifico | |
| 248 | 216 | * |
| 249 | - * @param \AppBundle\Entity\PlanificacionSeccionEspecifico $idObjetivoEspecifico | |
| 217 | + * @param \AppBundle\Entity\PlanificacionSeccionEspecifico $objetivoEspecifico | |
| 250 | 218 | * @return PlanificacionSeccion |
| 251 | 219 | */ |
| 252 | - public function addIdObjetivoEspecifico(\AppBundle\Entity\PlanificacionSeccionEspecifico $idObjetivoEspecifico) | |
| 220 | + public function addObjetivoEspecifico(\AppBundle\Entity\PlanificacionSeccionEspecifico $objetivoEspecifico) | |
| 253 | 221 | { |
| 254 | - $this->idObjetivoEspecifico[] = $idObjetivoEspecifico; | |
| 222 | + $this->objetivoEspecifico[] = $objetivoEspecifico; | |
| 255 | 223 | |
| 256 | 224 | return $this; |
| 257 | 225 | } |
| 258 | 226 | |
| 259 | 227 | /** |
| 260 | - * Remove idObjetivoEspecifico | |
| 228 | + * Remove objetivoEspecifico | |
| 261 | 229 | * |
| 262 | - * @param \AppBundle\Entity\PlanificacionSeccionEspecifico $idObjetivoEspecifico | |
| 230 | + * @param \AppBundle\Entity\PlanificacionSeccionEspecifico $objetivoEspecifico | |
| 263 | 231 | */ |
| 264 | - public function removeIdObjetivoEspecifico(\AppBundle\Entity\PlanificacionSeccionEspecifico $idObjetivoEspecifico) | |
| 232 | + public function removeObjetivoEspecifico(\AppBundle\Entity\PlanificacionSeccionEspecifico $objetivoEspecifico) | |
| 265 | 233 | { |
| 266 | - $this->idObjetivoEspecifico->removeElement($idObjetivoEspecifico); | |
| 234 | + $this->objetivoEspecifico->removeElement($objetivoEspecifico); | |
| 267 | 235 | } |
| 268 | 236 | |
| 269 | 237 | /** |
| 270 | - * Get idObjetivoEspecifico | |
| 238 | + * Get objetivoEspecifico | |
| 271 | 239 | * |
| 272 | 240 | * @return \Doctrine\Common\Collections\Collection |
| 273 | 241 | */ |
| 274 | - public function getIdObjetivoEspecifico() | |
| 242 | + public function getObjetivoEspecifico() | |
| 275 | 243 | { |
| 276 | - return $this->idObjetivoEspecifico; | |
| 244 | + return $this->objetivoEspecifico; | |
| 277 | 245 | } |
| 278 | 246 | |
| 279 | 247 | /** |
| 280 | - * Add idPlanificacionSeccionContenido | |
| 248 | + * Add contenido | |
| 281 | 249 | * |
| 282 | - * @param \AppBundle\Entity\PlanificacionSeccionContenido $idPlanificacionSeccionContenido | |
| 250 | + * @param \AppBundle\Entity\PlanificacionSeccionContenido $contenido | |
| 283 | 251 | * @return PlanificacionSeccion |
| 284 | 252 | */ |
| 285 | - public function addIdPlanificacionSeccionContenido(\AppBundle\Entity\PlanificacionSeccionContenido $idPlanificacionSeccionContenido) | |
| 253 | + public function addContenido(\AppBundle\Entity\PlanificacionSeccionContenido $contenido) | |
| 286 | 254 | { |
| 287 | - $this->idPlanificacionSeccionContenido[] = $idPlanificacionSeccionContenido; | |
| 255 | + $this->contenido[] = $contenido; | |
| 288 | 256 | |
| 289 | 257 | return $this; |
| 290 | 258 | } |
| 291 | 259 | |
| 292 | 260 | /** |
| 293 | - * Remove idPlanificacionSeccionContenido | |
| 261 | + * Remove contenido | |
| 294 | 262 | * |
| 295 | - * @param \AppBundle\Entity\PlanificacionSeccionContenido $idPlanificacionSeccionContenido | |
| 263 | + * @param \AppBundle\Entity\PlanificacionSeccionContenido $contenido | |
| 296 | 264 | */ |
| 297 | - public function removeIdPlanificacionSeccionContenido(\AppBundle\Entity\PlanificacionSeccionContenido $idPlanificacionSeccionContenido) | |
| 265 | + public function removeContenido(\AppBundle\Entity\PlanificacionSeccionContenido $contenido) | |
| 298 | 266 | { |
| 299 | - $this->idPlanificacionSeccionContenido->removeElement($idPlanificacionSeccionContenido); | |
| 267 | + $this->contenido->removeElement($contenido); | |
| 300 | 268 | } |
| 301 | 269 | |
| 302 | 270 | /** |
| 303 | - * Get idPlanificacionSeccionContenido | |
| 271 | + * Get contenido | |
| 304 | 272 | * |
| 305 | 273 | * @return \Doctrine\Common\Collections\Collection |
| 306 | 274 | */ |
| 307 | - public function getIdPlanificacionSeccionContenido() | |
| 275 | + public function getContenido() | |
| 308 | 276 | { |
| 309 | - return $this->idPlanificacionSeccionContenido; | |
| 277 | + return $this->contenido; | |
| 310 | 278 | } |
| 311 | 279 | |
| 312 | 280 | /** |
| 313 | - * Add idPlanificacionSeccionEstrategia | |
| 281 | + * Add estrategia | |
| 314 | 282 | * |
| 315 | - * @param \AppBundle\Entity\PlanificacionSeccionEstrategia $idPlanificacionSeccionEstrategia | |
| 283 | + * @param \AppBundle\Entity\PlanificacionSeccionEstrategia $estrategia | |
| 316 | 284 | * @return PlanificacionSeccion |
| 317 | 285 | */ |
| 318 | - public function addIdPlanificacionSeccionEstrategium(\AppBundle\Entity\PlanificacionSeccionEstrategia $idPlanificacionSeccionEstrategia) | |
| 286 | + public function addEstrategium(\AppBundle\Entity\PlanificacionSeccionEstrategia $estrategia) | |
| 319 | 287 | { |
| 320 | - $this->idPlanificacionSeccionEstrategia[] = $idPlanificacionSeccionEstrategia; | |
| 288 | + $this->estrategia[] = $estrategia; | |
| 321 | 289 | |
| 322 | 290 | return $this; |
| 323 | 291 | } |
| 324 | 292 | |
| 325 | 293 | /** |
| 326 | - * Remove idPlanificacionSeccionEstrategia | |
| 294 | + * Remove estrategia | |
| 327 | 295 | * |
| 328 | - * @param \AppBundle\Entity\PlanificacionSeccionEstrategia $idPlanificacionSeccionEstrategia | |
| 296 | + * @param \AppBundle\Entity\PlanificacionSeccionEstrategia $estrategia | |
| 329 | 297 | */ |
| 330 | - public function removeIdPlanificacionSeccionEstrategium(\AppBundle\Entity\PlanificacionSeccionEstrategia $idPlanificacionSeccionEstrategia) | |
| 298 | + public function removeEstrategium(\AppBundle\Entity\PlanificacionSeccionEstrategia $estrategia) | |
| 331 | 299 | { |
| 332 | - $this->idPlanificacionSeccionEstrategia->removeElement($idPlanificacionSeccionEstrategia); | |
| 300 | + $this->estrategia->removeElement($estrategia); | |
| 333 | 301 | } |
| 334 | 302 | |
| 335 | 303 | /** |
| 336 | - * Get idPlanificacionSeccionEstrategia | |
| 304 | + * Get estrategia | |
| 337 | 305 | * |
| 338 | 306 | * @return \Doctrine\Common\Collections\Collection |
| 339 | 307 | */ |
| 340 | - public function getIdPlanificacionSeccionEstrategia() | |
| 308 | + public function getEstrategia() | |
| 341 | 309 | { |
| 342 | - return $this->idPlanificacionSeccionEstrategia; | |
| 310 | + return $this->estrategia; | |
| 343 | 311 | } |
| 344 | 312 | |
| 345 | 313 | /** |
| 346 | - * Add idPlanificacionSeccionEvaluacion | |
| 314 | + * Add evaluacion | |
| 347 | 315 | * |
| 348 | - * @param \AppBundle\Entity\PlanificacionSeccionEvaluacion $idPlanificacionSeccionEvaluacion | |
| 316 | + * @param \AppBundle\Entity\PlanificacionSeccionEvaluacion $evaluacion | |
| 349 | 317 | * @return PlanificacionSeccion |
| 350 | 318 | */ |
| 351 | - public function addIdPlanificacionSeccionEvaluacion(\AppBundle\Entity\PlanificacionSeccionEvaluacion $idPlanificacionSeccionEvaluacion) | |
| 319 | + public function addEvaluacion(\AppBundle\Entity\PlanificacionSeccionEvaluacion $evaluacion) | |
| 352 | 320 | { |
| 353 | - $this->idPlanificacionSeccionEvaluacion[] = $idPlanificacionSeccionEvaluacion; | |
| 321 | + $this->evaluacion[] = $evaluacion; | |
| 354 | 322 | |
| 355 | 323 | return $this; |
| 356 | 324 | } |
| 357 | 325 | |
| 358 | 326 | /** |
| 359 | - * Remove idPlanificacionSeccionEvaluacion | |
| 327 | + * Remove evaluacion | |
| 360 | 328 | * |
| 361 | - * @param \AppBundle\Entity\PlanificacionSeccionEvaluacion $idPlanificacionSeccionEvaluacion | |
| 329 | + * @param \AppBundle\Entity\PlanificacionSeccionEvaluacion $evaluacion | |
| 362 | 330 | */ |
| 363 | - public function removeIdPlanificacionSeccionEvaluacion(\AppBundle\Entity\PlanificacionSeccionEvaluacion $idPlanificacionSeccionEvaluacion) | |
| 331 | + public function removeEvaluacion(\AppBundle\Entity\PlanificacionSeccionEvaluacion $evaluacion) | |
| 364 | 332 | { |
| 365 | - $this->idPlanificacionSeccionEvaluacion->removeElement($idPlanificacionSeccionEvaluacion); | |
| 333 | + $this->evaluacion->removeElement($evaluacion); | |
| 366 | 334 | } |
| 367 | 335 | |
| 368 | 336 | /** |
| 369 | - * Get idPlanificacionSeccionEvaluacion | |
| 337 | + * Get evaluacion | |
| 370 | 338 | * |
| 371 | 339 | * @return \Doctrine\Common\Collections\Collection |
| 372 | 340 | */ |
| 373 | - public function getIdPlanificacionSeccionEvaluacion() | |
| 341 | + public function getEvaluacion() | |
| 374 | 342 | { |
| 375 | - return $this->idPlanificacionSeccionEvaluacion; | |
| 343 | + return $this->evaluacion; | |
| 376 | 344 | } |
| 377 | 345 | |
| 378 | 346 | /** | ... | ... |
src/AppBundle/Entity/PlanificacionSeccion.php~
| ... | ... | @@ -9,12 +9,12 @@ use Doctrine\ORM\Mapping as ORM; |
| 9 | 9 | * |
| 10 | 10 | * @ORM\Table(name="planificacion_seccion", |
| 11 | 11 | * uniqueConstraints= |
| 12 | - * {@ORM\UniqueConstraint(name="uq_planificacion_seccion_tema_especifico_contenido_estrategia_evaluacion", | |
| 13 | - * columns={"id_planificacion_seccion", "id_tema_uc"}) | |
| 12 | + * {@ORM\UniqueConstraint(name="uq_tema_uc", | |
| 13 | + * columns={"id_tema_uc"}) | |
| 14 | 14 | * }, |
| 15 | 15 | * indexes={ |
| 16 | - * @ORM\Index(name="fki_id_planificacion_seccion", | |
| 17 | - * columns={"id_planificacion_seccion"}) | |
| 16 | + * @ORM\Index(name="fki_id_tema_uc", | |
| 17 | + * columns={"id_tema_uc"}) | |
| 18 | 18 | * } |
| 19 | 19 | * ) |
| 20 | 20 | * @ORM\Entity |
| ... | ... | @@ -34,27 +34,27 @@ class PlanificacionSeccion |
| 34 | 34 | |
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | - * @ORM\OneToMany(targetEntity="PlanificacionSeccionEspecifico", mappedBy="idObjetivoEspecifico") | |
| 37 | + * @ORM\OneToMany(targetEntity="PlanificacionSeccionEspecifico", mappedBy="idPlanificacionEspecifico") | |
| 38 | 38 | */ |
| 39 | - private $idObjetivoEspecifico; | |
| 39 | + private $objetivoEspecifico; | |
| 40 | 40 | |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * @ORM\OneToMany(targetEntity="PlanificacionSeccionContenido", mappedBy="idPlanificacionSeccionContenido") | |
| 43 | + * @ORM\OneToMany(targetEntity="PlanificacionSeccionContenido", mappedBy="idPlanificacionContenido") | |
| 44 | 44 | */ |
| 45 | - private $idPlanificacionSeccionContenido; | |
| 45 | + private $contenido; | |
| 46 | 46 | |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | - * @ORM\OneToMany(targetEntity="PlanificacionSeccionEstrategia", mappedBy="idPlanificacionSeccionEstrategia") | |
| 49 | + * @ORM\OneToMany(targetEntity="PlanificacionSeccionEstrategia", mappedBy="idPlanificacionEstrategia") | |
| 50 | 50 | */ |
| 51 | - private $idPlanificacionSeccionEstrategia; | |
| 51 | + private $estrategia; | |
| 52 | 52 | |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * @ORM\OneToMany(targetEntity="PlanificacionSeccionEvaluacion", mappedBy="idPlanificacionSeccionEvaluacion") | |
| 55 | + * @ORM\OneToMany(targetEntity="PlanificacionSeccionEvaluacion", mappedBy="idPlanificacionEvaluacion") | |
| 56 | 56 | */ |
| 57 | - private $idPlanificacionSeccionEvaluacion; | |
| 57 | + private $evaluacion; | |
| 58 | 58 | |
| 59 | 59 | |
| 60 | 60 | |
| ... | ... | @@ -97,14 +97,5 @@ class PlanificacionSeccion |
| 97 | 97 | private $seccion; |
| 98 | 98 | |
| 99 | 99 | |
| 100 | - /** | |
| 101 | - * @var string | |
| 102 | - * | |
| 103 | - * @ORM\Column(name="objetivo", type="text", nullable=false, options={"comment" = "Objetivo de la seccion"}) | |
| 104 | - */ | |
| 105 | - private $objetivo; | |
| 106 | - | |
| 107 | - | |
| 108 | - | |
| 109 | 100 | |
| 110 | 101 | } | ... | ... |
src/AppBundle/Entity/PlanificacionSeccionContenido.php
| ... | ... | @@ -65,8 +65,12 @@ class PlanificacionSeccionContenido |
| 65 | 65 | * }) |
| 66 | 66 | */ |
| 67 | 67 | private $idPlanificacionSeccion; |
| 68 | - | |
| 69 | - | |
| 68 | + | |
| 69 | + /** | |
| 70 | + * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="contenido") | |
| 71 | + * @ORM\JoinColumn(name="id_planificacion_contenido", referencedColumnName="id") | |
| 72 | + */ | |
| 73 | + private $idPlanificacionContenido; | |
| 70 | 74 | |
| 71 | 75 | |
| 72 | 76 | |
| ... | ... | @@ -171,4 +175,27 @@ class PlanificacionSeccionContenido |
| 171 | 175 | { |
| 172 | 176 | return $this->idPlanificacionSeccion; |
| 173 | 177 | } |
| 178 | + | |
| 179 | + /** | |
| 180 | + * Set idPlanificacionContenido | |
| 181 | + * | |
| 182 | + * @param \AppBundle\Entity\PlanificacionSeccion $idPlanificacionContenido | |
| 183 | + * @return PlanificacionSeccionContenido | |
| 184 | + */ | |
| 185 | + public function setIdPlanificacionContenido(\AppBundle\Entity\PlanificacionSeccion $idPlanificacionContenido = null) | |
| 186 | + { | |
| 187 | + $this->idPlanificacionContenido = $idPlanificacionContenido; | |
| 188 | + | |
| 189 | + return $this; | |
| 190 | + } | |
| 191 | + | |
| 192 | + /** | |
| 193 | + * Get idPlanificacionContenido | |
| 194 | + * | |
| 195 | + * @return \AppBundle\Entity\PlanificacionSeccion | |
| 196 | + */ | |
| 197 | + public function getIdPlanificacionContenido() | |
| 198 | + { | |
| 199 | + return $this->idPlanificacionContenido; | |
| 200 | + } | |
| 174 | 201 | } | ... | ... |
src/AppBundle/Entity/PlanificacionSeccionContenido.php~
| ... | ... | @@ -65,8 +65,12 @@ class PlanificacionSeccionContenido |
| 65 | 65 | * }) |
| 66 | 66 | */ |
| 67 | 67 | private $idPlanificacionSeccion; |
| 68 | - | |
| 69 | - | |
| 68 | + | |
| 69 | + /** | |
| 70 | + * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="contenido") | |
| 71 | + * @ORM\JoinColumn(name="id_planificacion_contenido", referencedColumnName="id") | |
| 72 | + */ | |
| 73 | + private $idPlanificacionContenido; | |
| 70 | 74 | |
| 71 | 75 | |
| 72 | 76 | } | ... | ... |
src/AppBundle/Entity/PlanificacionSeccionEspecifico.php
| ... | ... | @@ -39,7 +39,8 @@ class PlanificacionSeccionEspecifico |
| 39 | 39 | * @ORM\SequenceGenerator(sequenceName="municipio_id_seq", allocationSize=1, initialValue=1) |
| 40 | 40 | */ |
| 41 | 41 | private $id; |
| 42 | - | |
| 42 | + | |
| 43 | + | |
| 43 | 44 | /** |
| 44 | 45 | * @var \AppBundle\Entity\PlanificacionSeccion |
| 45 | 46 | * |
| ... | ... | @@ -50,10 +51,13 @@ class PlanificacionSeccionEspecifico |
| 50 | 51 | */ |
| 51 | 52 | private $idPlanificacionSeccion; |
| 52 | 53 | |
| 53 | - | |
| 54 | - | |
| 54 | + /** | |
| 55 | + * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="objetivoEspecifico") | |
| 56 | + * @ORM\JoinColumn(name="id_planificacion_especifico", referencedColumnName="id") | |
| 57 | + */ | |
| 58 | + private $idPlanificacionEspecifico; | |
| 55 | 59 | |
| 56 | - | |
| 60 | + | |
| 57 | 61 | /** |
| 58 | 62 | * Set objetivoEspecifico |
| 59 | 63 | * |
| ... | ... | @@ -109,4 +113,27 @@ class PlanificacionSeccionEspecifico |
| 109 | 113 | { |
| 110 | 114 | return $this->idPlanificacionSeccion; |
| 111 | 115 | } |
| 116 | + | |
| 117 | + /** | |
| 118 | + * Set idPlanificacionEspecifico | |
| 119 | + * | |
| 120 | + * @param \AppBundle\Entity\PlanificacionSeccion $idPlanificacionEspecifico | |
| 121 | + * @return PlanificacionSeccionEspecifico | |
| 122 | + */ | |
| 123 | + public function setIdPlanificacionEspecifico(\AppBundle\Entity\PlanificacionSeccion $idPlanificacionEspecifico = null) | |
| 124 | + { | |
| 125 | + $this->idPlanificacionEspecifico = $idPlanificacionEspecifico; | |
| 126 | + | |
| 127 | + return $this; | |
| 128 | + } | |
| 129 | + | |
| 130 | + /** | |
| 131 | + * Get idPlanificacionEspecifico | |
| 132 | + * | |
| 133 | + * @return \AppBundle\Entity\PlanificacionSeccion | |
| 134 | + */ | |
| 135 | + public function getIdPlanificacionEspecifico() | |
| 136 | + { | |
| 137 | + return $this->idPlanificacionEspecifico; | |
| 138 | + } | |
| 112 | 139 | } | ... | ... |
src/AppBundle/Entity/PlanificacionSeccionEspecifico.php~
| ... | ... | @@ -10,10 +10,10 @@ use Doctrine\ORM\Mapping as ORM; |
| 10 | 10 | * @ORM\Table(name="planificacion_seccion_especifico", |
| 11 | 11 | * uniqueConstraints= |
| 12 | 12 | * {@ORM\UniqueConstraint(name="uq_planificacion_seccion_especifico", |
| 13 | - * columns={"id_planificacion_seccion_especifico"}) | |
| 13 | + * columns={"id_planificacion_seccion"}) | |
| 14 | 14 | * }, |
| 15 | 15 | * indexes={ |
| 16 | - * @ORM\Index(name="fki_id_planificacion_seccion", | |
| 16 | + * @ORM\Index(name="fki_id_planificacion_especifico", | |
| 17 | 17 | * columns={"id_planificacion_seccion"}) |
| 18 | 18 | * } |
| 19 | 19 | * ) |
| ... | ... | @@ -39,7 +39,8 @@ class PlanificacionSeccionEspecifico |
| 39 | 39 | * @ORM\SequenceGenerator(sequenceName="municipio_id_seq", allocationSize=1, initialValue=1) |
| 40 | 40 | */ |
| 41 | 41 | private $id; |
| 42 | - | |
| 42 | + | |
| 43 | + | |
| 43 | 44 | /** |
| 44 | 45 | * @var \AppBundle\Entity\PlanificacionSeccion |
| 45 | 46 | * |
| ... | ... | @@ -50,7 +51,13 @@ class PlanificacionSeccionEspecifico |
| 50 | 51 | */ |
| 51 | 52 | private $idPlanificacionSeccion; |
| 52 | 53 | |
| 53 | - | |
| 54 | + /** | |
| 55 | + * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="objetivoEspecifico") | |
| 56 | + * @ORM\JoinColumn(name="id_planificacion_especifico", referencedColumnName="id") | |
| 57 | + */ | |
| 58 | + private $idPlanificacionEspecifico; | |
| 59 | + | |
| 60 | + | |
| 54 | 61 | |
| 55 | 62 | |
| 56 | 63 | } | ... | ... |
src/AppBundle/Entity/PlanificacionSeccionEstrategia.php
| ... | ... | @@ -56,6 +56,14 @@ class PlanificacionSeccionEstrategia |
| 56 | 56 | * @ORM\Column(name="tipoRecurso", type="text", nullable=false, options={"comment" = "Recursos necesarios para el tema"}) |
| 57 | 57 | */ |
| 58 | 58 | private $tipoRecurso; |
| 59 | + | |
| 60 | + /** | |
| 61 | + * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="estrategia") | |
| 62 | + * @ORM\JoinColumn(name="id_planificacion_estrategia", referencedColumnName="id") | |
| 63 | + */ | |
| 64 | + private $idPlanificacionEstrategia; | |
| 65 | + | |
| 66 | + | |
| 59 | 67 | |
| 60 | 68 | |
| 61 | 69 | |
| ... | ... | @@ -137,4 +145,27 @@ class PlanificacionSeccionEstrategia |
| 137 | 145 | { |
| 138 | 146 | return $this->idPlanificacionSeccion; |
| 139 | 147 | } |
| 148 | + | |
| 149 | + /** | |
| 150 | + * Set idPlanificacionEstrategia | |
| 151 | + * | |
| 152 | + * @param \AppBundle\Entity\PlanificacionSeccion $idPlanificacionEstrategia | |
| 153 | + * @return PlanificacionSeccionEstrategia | |
| 154 | + */ | |
| 155 | + public function setIdPlanificacionEstrategia(\AppBundle\Entity\PlanificacionSeccion $idPlanificacionEstrategia = null) | |
| 156 | + { | |
| 157 | + $this->idPlanificacionEstrategia = $idPlanificacionEstrategia; | |
| 158 | + | |
| 159 | + return $this; | |
| 160 | + } | |
| 161 | + | |
| 162 | + /** | |
| 163 | + * Get idPlanificacionEstrategia | |
| 164 | + * | |
| 165 | + * @return \AppBundle\Entity\PlanificacionSeccion | |
| 166 | + */ | |
| 167 | + public function getIdPlanificacionEstrategia() | |
| 168 | + { | |
| 169 | + return $this->idPlanificacionEstrategia; | |
| 170 | + } | |
| 140 | 171 | } | ... | ... |
src/AppBundle/Entity/PlanificacionSeccionEstrategia.php~
| ... | ... | @@ -9,11 +9,11 @@ use Doctrine\ORM\Mapping as ORM; |
| 9 | 9 | * |
| 10 | 10 | * @ORM\Table(name="planificacion_seccion_estrategia", |
| 11 | 11 | * uniqueConstraints= |
| 12 | - * {@ORM\UniqueConstraint(name="uq_planificacion_seccion", | |
| 12 | + * {@ORM\UniqueConstraint(name="uq_planificacion_estrategia", | |
| 13 | 13 | * columns={"id_planificacion_seccion"}) |
| 14 | 14 | * }, |
| 15 | 15 | * indexes={ |
| 16 | - * @ORM\Index(name="fki_id_planificacion_seccion", | |
| 16 | + * @ORM\Index(name="fki_id_planificacion_estrategia", | |
| 17 | 17 | * columns={"id_planificacion_seccion"}) |
| 18 | 18 | * } |
| 19 | 19 | * ) |
| ... | ... | @@ -56,6 +56,14 @@ class PlanificacionSeccionEstrategia |
| 56 | 56 | * @ORM\Column(name="tipoRecurso", type="text", nullable=false, options={"comment" = "Recursos necesarios para el tema"}) |
| 57 | 57 | */ |
| 58 | 58 | private $tipoRecurso; |
| 59 | + | |
| 60 | + /** | |
| 61 | + * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="estrategia") | |
| 62 | + * @ORM\JoinColumn(name="id_planificacion_estrategia", referencedColumnName="id") | |
| 63 | + */ | |
| 64 | + private $idPlanificacionEstrategia; | |
| 65 | + | |
| 66 | + | |
| 59 | 67 | |
| 60 | 68 | |
| 61 | 69 | } | ... | ... |
src/AppBundle/Entity/PlanificacionSeccionEvaluacion.php
| ... | ... | @@ -94,11 +94,20 @@ class PlanificacionSeccionEvaluacion |
| 94 | 94 | * }) |
| 95 | 95 | */ |
| 96 | 96 | protected $idEstatus; |
| 97 | + | |
| 98 | + | |
| 99 | + /** | |
| 100 | + * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="evaluacion") | |
| 101 | + * @ORM\JoinColumn(name="id_planificacion_evaluacion", referencedColumnName="id") | |
| 102 | + */ | |
| 103 | + private $idPlanificacionEvaluacion; | |
| 97 | 104 | |
| 98 | 105 | |
| 99 | 106 | |
| 100 | 107 | |
| 101 | 108 | |
| 109 | + | |
| 110 | + | |
| 102 | 111 | /** |
| 103 | 112 | * Get id |
| 104 | 113 | * |
| ... | ... | @@ -246,4 +255,27 @@ class PlanificacionSeccionEvaluacion |
| 246 | 255 | { |
| 247 | 256 | return $this->idEstatus; |
| 248 | 257 | } |
| 258 | + | |
| 259 | + /** | |
| 260 | + * Set idPlanificacionEvaluacion | |
| 261 | + * | |
| 262 | + * @param \AppBundle\Entity\PlanificacionSeccion $idPlanificacionEvaluacion | |
| 263 | + * @return PlanificacionSeccionEvaluacion | |
| 264 | + */ | |
| 265 | + public function setIdPlanificacionEvaluacion(\AppBundle\Entity\PlanificacionSeccion $idPlanificacionEvaluacion = null) | |
| 266 | + { | |
| 267 | + $this->idPlanificacionEvaluacion = $idPlanificacionEvaluacion; | |
| 268 | + | |
| 269 | + return $this; | |
| 270 | + } | |
| 271 | + | |
| 272 | + /** | |
| 273 | + * Get idPlanificacionEvaluacion | |
| 274 | + * | |
| 275 | + * @return \AppBundle\Entity\PlanificacionSeccion | |
| 276 | + */ | |
| 277 | + public function getIdPlanificacionEvaluacion() | |
| 278 | + { | |
| 279 | + return $this->idPlanificacionEvaluacion; | |
| 280 | + } | |
| 249 | 281 | } | ... | ... |
src/AppBundle/Entity/PlanificacionSeccionEvaluacion.php~
| ... | ... | @@ -14,7 +14,7 @@ use Symfony\Component\Validator\Constraints as Assert; |
| 14 | 14 | * columns={"id_planificacion_seccion"}) |
| 15 | 15 | * }, |
| 16 | 16 | * indexes={ |
| 17 | - * @ORM\Index(name="fki_id_planificacion_seccion", | |
| 17 | + * @ORM\Index(name="fki_id_planificacion_evaluacion", | |
| 18 | 18 | * columns={"id_planificacion_seccion"}) |
| 19 | 19 | * } |
| 20 | 20 | * ) |
| ... | ... | @@ -94,8 +94,17 @@ class PlanificacionSeccionEvaluacion |
| 94 | 94 | * }) |
| 95 | 95 | */ |
| 96 | 96 | protected $idEstatus; |
| 97 | + | |
| 98 | + | |
| 99 | + /** | |
| 100 | + * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="evaluacion") | |
| 101 | + * @ORM\JoinColumn(name="id_planificacion_evaluacion", referencedColumnName="id") | |
| 102 | + */ | |
| 103 | + private $idPlanificacionEvaluacion; | |
| 97 | 104 | |
| 98 | 105 | |
| 99 | 106 | |
| 100 | 107 | |
| 108 | + | |
| 109 | + | |
| 101 | 110 | } | ... | ... |
src/AppBundle/Entity/Seccion.php
| ... | ... | @@ -82,13 +82,13 @@ class Seccion |
| 82 | 82 | private $id; |
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | - * @ORM\ManyToOne(targetEntity="OfertaAcademica", inversedBy="seccion") | |
| 85 | + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\OfertaAcademica", inversedBy="seccion") | |
| 86 | 86 | * @ORM\JoinColumn(name="oferta_academica_id", referencedColumnName="id") |
| 87 | 87 | */ |
| 88 | 88 | private $ofertaAcademica; |
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | - * @ORM\OneToMany(targetEntity="PlanificacionSeccion", mappedBy="planificacion") | |
| 91 | + * @ORM\OneToMany(targetEntity="PlanificacionSeccion", mappedBy="seccion") | |
| 92 | 92 | */ |
| 93 | 93 | private $planificacion; |
| 94 | 94 | ... | ... |
src/AppBundle/Form/PlanificacionSeccionType.php
| ... | ... | @@ -0,0 +1,33 @@ |
| 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 PlanificacionSeccionType 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('idtemaUc') | |
| 19 | + ->add('observacion') | |
| 20 | + ->add('seccion') | |
| 21 | + ; | |
| 22 | + } | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @param OptionsResolver $resolver | |
| 26 | + */ | |
| 27 | + public function configureOptions(OptionsResolver $resolver) | |
| 28 | + { | |
| 29 | + $resolver->setDefaults(array( | |
| 30 | + 'data_class' => 'AppBundle\Entity\PlanificacionSeccion' | |
| 31 | + )); | |
| 32 | + } | |
| 33 | +} | ... | ... |
src/AppBundle/Tests/Controller/PlanificacionSeccionControllerTest.php
| ... | ... | @@ -0,0 +1,55 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace AppBundle\Tests\Controller; | |
| 4 | + | |
| 5 | +use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | |
| 6 | + | |
| 7 | +class PlanificacionSeccionControllerTest 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/docente/planificacion/'); | |
| 17 | + $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /ceapp/docente/planificacion/"); | |
| 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_planificacionseccion[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_planificacionseccion[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 | +} | ... | ... |