diff --git a/app/Resources/views/planificacionseccion/edit.html.twig b/app/Resources/views/planificacionseccion/edit.html.twig
new file mode 100644
index 0000000..5c10a00
--- /dev/null
+++ b/app/Resources/views/planificacionseccion/edit.html.twig
@@ -0,0 +1,21 @@
+{% extends 'base.html.twig' %}
+
+{% block body %}
+
PlanificacionSeccion edit
+
+ {{ form_start(edit_form) }}
+ {{ form_widget(edit_form) }}
+
+ {{ form_end(edit_form) }}
+
+
+{% endblock %}
diff --git a/app/Resources/views/planificacionseccion/index.html.twig b/app/Resources/views/planificacionseccion/index.html.twig
new file mode 100644
index 0000000..d5283b3
--- /dev/null
+++ b/app/Resources/views/planificacionseccion/index.html.twig
@@ -0,0 +1,43 @@
+{% extends 'base.html.twig' %}
+
+{% block body %}
+ PlanificacionSeccion list
+
+
+
+
+ Fecha_creacion |
+ Fecha_ultima_actualizacion |
+ Observacion |
+ Id |
+ Actions |
+
+
+
+ {% for planificacionSeccion in planificacionSeccions %}
+
+ {{ planificacionSeccion.fechacreacion }} |
+ {% if planificacionSeccion.fechaultimaactualizacion %}{{ planificacionSeccion.fechaultimaactualizacion|date('Y-m-d H:i:s') }}{% endif %} |
+ {{ planificacionSeccion.observacion }} |
+ {{ planificacionSeccion.id }} |
+
+
+ |
+
+ {% endfor %}
+
+
+
+
+{% endblock %}
diff --git a/app/Resources/views/planificacionseccion/new.html.twig b/app/Resources/views/planificacionseccion/new.html.twig
new file mode 100644
index 0000000..b0ed1fb
--- /dev/null
+++ b/app/Resources/views/planificacionseccion/new.html.twig
@@ -0,0 +1,16 @@
+{% extends 'base.html.twig' %}
+
+{% block body %}
+ PlanificacionSeccion creation
+
+ {{ form_start(form) }}
+ {{ form_widget(form) }}
+
+ {{ form_end(form) }}
+
+
+{% endblock %}
diff --git a/app/Resources/views/planificacionseccion/show.html.twig b/app/Resources/views/planificacionseccion/show.html.twig
new file mode 100644
index 0000000..ab2f19b
--- /dev/null
+++ b/app/Resources/views/planificacionseccion/show.html.twig
@@ -0,0 +1,40 @@
+{% extends 'base.html.twig' %}
+
+{% block body %}
+ PlanificacionSeccion
+
+
+
+
+ Fecha_creacion |
+ {% if planificacionSeccion.fechacreacion %}{{ planificacionSeccion.fechacreacion|date('Y-m-d H:i:s') }}{% endif %} |
+
+
+ Fecha_ultima_actualizacion |
+ {% if planificacionSeccion.fechaultimaactualizacion %}{{ planificacionSeccion.fechaultimaactualizacion|date('Y-m-d H:i:s') }}{% endif %} |
+
+
+ Observacion |
+ {{ planificacionSeccion.observacion }} |
+
+
+ Id |
+ {{ planificacionSeccion.id }} |
+
+
+
+
+
+{% endblock %}
diff --git a/src/AppBundle/Controller/PlanificacionSeccionController.php b/src/AppBundle/Controller/PlanificacionSeccionController.php
new file mode 100644
index 0000000..6b2c9d3
--- /dev/null
+++ b/src/AppBundle/Controller/PlanificacionSeccionController.php
@@ -0,0 +1,140 @@
+getDoctrine()->getManager();
+
+ $planificacionSeccions = $em->getRepository('AppBundle:PlanificacionSeccion')->findAll();
+
+ return $this->render('planificacionseccion/index.html.twig', array(
+ 'planificacionSeccions' => $planificacionSeccions,
+ ));
+ }
+
+ /**
+ * Creates a new PlanificacionSeccion entity.
+ *
+ * @Route("/new", name="ceapp_docente_planificacion_new")
+ * @Method({"GET", "POST"})
+ */
+ public function newAction(Request $request)
+ {
+ $planificacionSeccion = new PlanificacionSeccion();
+ $form = $this->createForm('AppBundle\Form\PlanificacionSeccionType', $planificacionSeccion);
+ $form->handleRequest($request);
+
+ if ($form->isSubmitted() && $form->isValid()) {
+ $em = $this->getDoctrine()->getManager();
+ $em->persist($planificacionSeccion);
+ $em->flush();
+
+ return $this->redirectToRoute('ceapp_docente_planificacion_show', array('id' => $planificacionSeccion->getId()));
+ }
+
+ return $this->render('planificacionseccion/new.html.twig', array(
+ 'planificacionSeccion' => $planificacionSeccion,
+ 'form' => $form->createView(),
+ ));
+ }
+
+ /**
+ * Finds and displays a PlanificacionSeccion entity.
+ *
+ * @Route("/{id}", name="ceapp_docente_planificacion_show")
+ * @Method("GET")
+ */
+ public function showAction(PlanificacionSeccion $planificacionSeccion)
+ {
+ $deleteForm = $this->createDeleteForm($planificacionSeccion);
+
+ return $this->render('planificacionseccion/show.html.twig', array(
+ 'planificacionSeccion' => $planificacionSeccion,
+ 'delete_form' => $deleteForm->createView(),
+ ));
+ }
+
+ /**
+ * Displays a form to edit an existing PlanificacionSeccion entity.
+ *
+ * @Route("/{id}/edit", name="ceapp_docente_planificacion_edit")
+ * @Method({"GET", "POST"})
+ */
+ public function editAction(Request $request, PlanificacionSeccion $planificacionSeccion)
+ {
+ $deleteForm = $this->createDeleteForm($planificacionSeccion);
+ $editForm = $this->createForm('AppBundle\Form\PlanificacionSeccionType', $planificacionSeccion);
+ $editForm->handleRequest($request);
+
+ if ($editForm->isSubmitted() && $editForm->isValid()) {
+ $em = $this->getDoctrine()->getManager();
+ $em->persist($planificacionSeccion);
+ $em->flush();
+
+ return $this->redirectToRoute('ceapp_docente_planificacion_edit', array('id' => $planificacionSeccion->getId()));
+ }
+
+ return $this->render('planificacionseccion/edit.html.twig', array(
+ 'planificacionSeccion' => $planificacionSeccion,
+ 'edit_form' => $editForm->createView(),
+ 'delete_form' => $deleteForm->createView(),
+ ));
+ }
+
+ /**
+ * Deletes a PlanificacionSeccion entity.
+ *
+ * @Route("/{id}", name="ceapp_docente_planificacion_delete")
+ * @Method("DELETE")
+ */
+ public function deleteAction(Request $request, PlanificacionSeccion $planificacionSeccion)
+ {
+ $form = $this->createDeleteForm($planificacionSeccion);
+ $form->handleRequest($request);
+
+ if ($form->isSubmitted() && $form->isValid()) {
+ $em = $this->getDoctrine()->getManager();
+ $em->remove($planificacionSeccion);
+ $em->flush();
+ }
+
+ return $this->redirectToRoute('ceapp_docente_planificacion_index');
+ }
+
+ /**
+ * Creates a form to delete a PlanificacionSeccion entity.
+ *
+ * @param PlanificacionSeccion $planificacionSeccion The PlanificacionSeccion entity
+ *
+ * @return \Symfony\Component\Form\Form The form
+ */
+ private function createDeleteForm(PlanificacionSeccion $planificacionSeccion)
+ {
+ return $this->createFormBuilder()
+ ->setAction($this->generateUrl('ceapp_docente_planificacion_delete', array('id' => $planificacionSeccion->getId())))
+ ->setMethod('DELETE')
+ ->getForm()
+ ;
+ }
+}
diff --git a/src/AppBundle/Entity/OfertaAcademica.php b/src/AppBundle/Entity/OfertaAcademica.php
index 4b0c063..83a6be7 100644
--- a/src/AppBundle/Entity/OfertaAcademica.php
+++ b/src/AppBundle/Entity/OfertaAcademica.php
@@ -51,7 +51,7 @@ class OfertaAcademica
/**
- * @ORM\OneToMany(targetEntity="Seccion", mappedBy="ofertaAcademica")
+ * @ORM\OneToMany(targetEntity="AppBundle\Entity\Seccion", mappedBy="ofertaAcademica")
*/
private $seccion;
diff --git a/src/AppBundle/Entity/PlanificacionSeccion.php b/src/AppBundle/Entity/PlanificacionSeccion.php
index b98b6c7..bab1368 100644
--- a/src/AppBundle/Entity/PlanificacionSeccion.php
+++ b/src/AppBundle/Entity/PlanificacionSeccion.php
@@ -34,27 +34,27 @@ class PlanificacionSeccion
/**
- * @ORM\OneToMany(targetEntity="PlanificacionSeccionEspecifico", mappedBy="idObjetivoEspecifico")
+ * @ORM\OneToMany(targetEntity="PlanificacionSeccionEspecifico", mappedBy="idPlanificacionEspecifico")
*/
- private $idObjetivoEspecifico;
+ private $objetivoEspecifico;
/**
- * @ORM\OneToMany(targetEntity="PlanificacionSeccionContenido", mappedBy="idPlanificacionSeccionContenido")
+ * @ORM\OneToMany(targetEntity="PlanificacionSeccionContenido", mappedBy="idPlanificacionContenido")
*/
- private $idPlanificacionSeccionContenido;
+ private $contenido;
/**
- * @ORM\OneToMany(targetEntity="PlanificacionSeccionEstrategia", mappedBy="idPlanificacionSeccionEstrategia")
+ * @ORM\OneToMany(targetEntity="PlanificacionSeccionEstrategia", mappedBy="idPlanificacionEstrategia")
*/
- private $idPlanificacionSeccionEstrategia;
+ private $estrategia;
/**
- * @ORM\OneToMany(targetEntity="PlanificacionSeccionEvaluacion", mappedBy="idPlanificacionSeccionEvaluacion")
+ * @ORM\OneToMany(targetEntity="PlanificacionSeccionEvaluacion", mappedBy="idPlanificacionEvaluacion")
*/
- private $idPlanificacionSeccionEvaluacion;
+ private $evaluacion;
@@ -97,25 +97,16 @@ class PlanificacionSeccion
private $seccion;
- /**
- * @var string
- *
- * @ORM\Column(name="objetivo", type="text", nullable=false, options={"comment" = "Objetivo de la seccion"})
- */
- private $objetivo;
-
-
-
/**
* Constructor
*/
public function __construct()
{
- $this->idObjetivoEspecifico = new \Doctrine\Common\Collections\ArrayCollection();
- $this->idPlanificacionSeccionContenido = new \Doctrine\Common\Collections\ArrayCollection();
- $this->idPlanificacionSeccionEstrategia = new \Doctrine\Common\Collections\ArrayCollection();
- $this->idPlanificacionSeccionEvaluacion = new \Doctrine\Common\Collections\ArrayCollection();
+ $this->objetivoEspecifico = new \Doctrine\Common\Collections\ArrayCollection();
+ $this->contenido = new \Doctrine\Common\Collections\ArrayCollection();
+ $this->estrategia = new \Doctrine\Common\Collections\ArrayCollection();
+ $this->evaluacion = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
@@ -198,29 +189,6 @@ class PlanificacionSeccion
}
/**
- * Set objetivo
- *
- * @param string $objetivo
- * @return PlanificacionSeccion
- */
- public function setObjetivo($objetivo)
- {
- $this->objetivo = $objetivo;
-
- return $this;
- }
-
- /**
- * Get objetivo
- *
- * @return string
- */
- public function getObjetivo()
- {
- return $this->objetivo;
- }
-
- /**
* Set idtemaUc
*
* @param \AppBundle\Entity\UnidadCurricularVolumenTema $idtemaUc
@@ -244,135 +212,135 @@ class PlanificacionSeccion
}
/**
- * Add idObjetivoEspecifico
+ * Add objetivoEspecifico
*
- * @param \AppBundle\Entity\PlanificacionSeccionEspecifico $idObjetivoEspecifico
+ * @param \AppBundle\Entity\PlanificacionSeccionEspecifico $objetivoEspecifico
* @return PlanificacionSeccion
*/
- public function addIdObjetivoEspecifico(\AppBundle\Entity\PlanificacionSeccionEspecifico $idObjetivoEspecifico)
+ public function addObjetivoEspecifico(\AppBundle\Entity\PlanificacionSeccionEspecifico $objetivoEspecifico)
{
- $this->idObjetivoEspecifico[] = $idObjetivoEspecifico;
+ $this->objetivoEspecifico[] = $objetivoEspecifico;
return $this;
}
/**
- * Remove idObjetivoEspecifico
+ * Remove objetivoEspecifico
*
- * @param \AppBundle\Entity\PlanificacionSeccionEspecifico $idObjetivoEspecifico
+ * @param \AppBundle\Entity\PlanificacionSeccionEspecifico $objetivoEspecifico
*/
- public function removeIdObjetivoEspecifico(\AppBundle\Entity\PlanificacionSeccionEspecifico $idObjetivoEspecifico)
+ public function removeObjetivoEspecifico(\AppBundle\Entity\PlanificacionSeccionEspecifico $objetivoEspecifico)
{
- $this->idObjetivoEspecifico->removeElement($idObjetivoEspecifico);
+ $this->objetivoEspecifico->removeElement($objetivoEspecifico);
}
/**
- * Get idObjetivoEspecifico
+ * Get objetivoEspecifico
*
* @return \Doctrine\Common\Collections\Collection
*/
- public function getIdObjetivoEspecifico()
+ public function getObjetivoEspecifico()
{
- return $this->idObjetivoEspecifico;
+ return $this->objetivoEspecifico;
}
/**
- * Add idPlanificacionSeccionContenido
+ * Add contenido
*
- * @param \AppBundle\Entity\PlanificacionSeccionContenido $idPlanificacionSeccionContenido
+ * @param \AppBundle\Entity\PlanificacionSeccionContenido $contenido
* @return PlanificacionSeccion
*/
- public function addIdPlanificacionSeccionContenido(\AppBundle\Entity\PlanificacionSeccionContenido $idPlanificacionSeccionContenido)
+ public function addContenido(\AppBundle\Entity\PlanificacionSeccionContenido $contenido)
{
- $this->idPlanificacionSeccionContenido[] = $idPlanificacionSeccionContenido;
+ $this->contenido[] = $contenido;
return $this;
}
/**
- * Remove idPlanificacionSeccionContenido
+ * Remove contenido
*
- * @param \AppBundle\Entity\PlanificacionSeccionContenido $idPlanificacionSeccionContenido
+ * @param \AppBundle\Entity\PlanificacionSeccionContenido $contenido
*/
- public function removeIdPlanificacionSeccionContenido(\AppBundle\Entity\PlanificacionSeccionContenido $idPlanificacionSeccionContenido)
+ public function removeContenido(\AppBundle\Entity\PlanificacionSeccionContenido $contenido)
{
- $this->idPlanificacionSeccionContenido->removeElement($idPlanificacionSeccionContenido);
+ $this->contenido->removeElement($contenido);
}
/**
- * Get idPlanificacionSeccionContenido
+ * Get contenido
*
* @return \Doctrine\Common\Collections\Collection
*/
- public function getIdPlanificacionSeccionContenido()
+ public function getContenido()
{
- return $this->idPlanificacionSeccionContenido;
+ return $this->contenido;
}
/**
- * Add idPlanificacionSeccionEstrategia
+ * Add estrategia
*
- * @param \AppBundle\Entity\PlanificacionSeccionEstrategia $idPlanificacionSeccionEstrategia
+ * @param \AppBundle\Entity\PlanificacionSeccionEstrategia $estrategia
* @return PlanificacionSeccion
*/
- public function addIdPlanificacionSeccionEstrategium(\AppBundle\Entity\PlanificacionSeccionEstrategia $idPlanificacionSeccionEstrategia)
+ public function addEstrategium(\AppBundle\Entity\PlanificacionSeccionEstrategia $estrategia)
{
- $this->idPlanificacionSeccionEstrategia[] = $idPlanificacionSeccionEstrategia;
+ $this->estrategia[] = $estrategia;
return $this;
}
/**
- * Remove idPlanificacionSeccionEstrategia
+ * Remove estrategia
*
- * @param \AppBundle\Entity\PlanificacionSeccionEstrategia $idPlanificacionSeccionEstrategia
+ * @param \AppBundle\Entity\PlanificacionSeccionEstrategia $estrategia
*/
- public function removeIdPlanificacionSeccionEstrategium(\AppBundle\Entity\PlanificacionSeccionEstrategia $idPlanificacionSeccionEstrategia)
+ public function removeEstrategium(\AppBundle\Entity\PlanificacionSeccionEstrategia $estrategia)
{
- $this->idPlanificacionSeccionEstrategia->removeElement($idPlanificacionSeccionEstrategia);
+ $this->estrategia->removeElement($estrategia);
}
/**
- * Get idPlanificacionSeccionEstrategia
+ * Get estrategia
*
* @return \Doctrine\Common\Collections\Collection
*/
- public function getIdPlanificacionSeccionEstrategia()
+ public function getEstrategia()
{
- return $this->idPlanificacionSeccionEstrategia;
+ return $this->estrategia;
}
/**
- * Add idPlanificacionSeccionEvaluacion
+ * Add evaluacion
*
- * @param \AppBundle\Entity\PlanificacionSeccionEvaluacion $idPlanificacionSeccionEvaluacion
+ * @param \AppBundle\Entity\PlanificacionSeccionEvaluacion $evaluacion
* @return PlanificacionSeccion
*/
- public function addIdPlanificacionSeccionEvaluacion(\AppBundle\Entity\PlanificacionSeccionEvaluacion $idPlanificacionSeccionEvaluacion)
+ public function addEvaluacion(\AppBundle\Entity\PlanificacionSeccionEvaluacion $evaluacion)
{
- $this->idPlanificacionSeccionEvaluacion[] = $idPlanificacionSeccionEvaluacion;
+ $this->evaluacion[] = $evaluacion;
return $this;
}
/**
- * Remove idPlanificacionSeccionEvaluacion
+ * Remove evaluacion
*
- * @param \AppBundle\Entity\PlanificacionSeccionEvaluacion $idPlanificacionSeccionEvaluacion
+ * @param \AppBundle\Entity\PlanificacionSeccionEvaluacion $evaluacion
*/
- public function removeIdPlanificacionSeccionEvaluacion(\AppBundle\Entity\PlanificacionSeccionEvaluacion $idPlanificacionSeccionEvaluacion)
+ public function removeEvaluacion(\AppBundle\Entity\PlanificacionSeccionEvaluacion $evaluacion)
{
- $this->idPlanificacionSeccionEvaluacion->removeElement($idPlanificacionSeccionEvaluacion);
+ $this->evaluacion->removeElement($evaluacion);
}
/**
- * Get idPlanificacionSeccionEvaluacion
+ * Get evaluacion
*
* @return \Doctrine\Common\Collections\Collection
*/
- public function getIdPlanificacionSeccionEvaluacion()
+ public function getEvaluacion()
{
- return $this->idPlanificacionSeccionEvaluacion;
+ return $this->evaluacion;
}
/**
diff --git a/src/AppBundle/Entity/PlanificacionSeccion.php~ b/src/AppBundle/Entity/PlanificacionSeccion.php~
index ac81545..bce5a84 100644
--- a/src/AppBundle/Entity/PlanificacionSeccion.php~
+++ b/src/AppBundle/Entity/PlanificacionSeccion.php~
@@ -9,12 +9,12 @@ use Doctrine\ORM\Mapping as ORM;
*
* @ORM\Table(name="planificacion_seccion",
* uniqueConstraints=
- * {@ORM\UniqueConstraint(name="uq_planificacion_seccion_tema_especifico_contenido_estrategia_evaluacion",
- * columns={"id_planificacion_seccion", "id_tema_uc"})
+ * {@ORM\UniqueConstraint(name="uq_tema_uc",
+ * columns={"id_tema_uc"})
* },
* indexes={
- * @ORM\Index(name="fki_id_planificacion_seccion",
- * columns={"id_planificacion_seccion"})
+ * @ORM\Index(name="fki_id_tema_uc",
+ * columns={"id_tema_uc"})
* }
* )
* @ORM\Entity
@@ -34,27 +34,27 @@ class PlanificacionSeccion
/**
- * @ORM\OneToMany(targetEntity="PlanificacionSeccionEspecifico", mappedBy="idObjetivoEspecifico")
+ * @ORM\OneToMany(targetEntity="PlanificacionSeccionEspecifico", mappedBy="idPlanificacionEspecifico")
*/
- private $idObjetivoEspecifico;
+ private $objetivoEspecifico;
/**
- * @ORM\OneToMany(targetEntity="PlanificacionSeccionContenido", mappedBy="idPlanificacionSeccionContenido")
+ * @ORM\OneToMany(targetEntity="PlanificacionSeccionContenido", mappedBy="idPlanificacionContenido")
*/
- private $idPlanificacionSeccionContenido;
+ private $contenido;
/**
- * @ORM\OneToMany(targetEntity="PlanificacionSeccionEstrategia", mappedBy="idPlanificacionSeccionEstrategia")
+ * @ORM\OneToMany(targetEntity="PlanificacionSeccionEstrategia", mappedBy="idPlanificacionEstrategia")
*/
- private $idPlanificacionSeccionEstrategia;
+ private $estrategia;
/**
- * @ORM\OneToMany(targetEntity="PlanificacionSeccionEvaluacion", mappedBy="idPlanificacionSeccionEvaluacion")
+ * @ORM\OneToMany(targetEntity="PlanificacionSeccionEvaluacion", mappedBy="idPlanificacionEvaluacion")
*/
- private $idPlanificacionSeccionEvaluacion;
+ private $evaluacion;
@@ -97,14 +97,5 @@ class PlanificacionSeccion
private $seccion;
- /**
- * @var string
- *
- * @ORM\Column(name="objetivo", type="text", nullable=false, options={"comment" = "Objetivo de la seccion"})
- */
- private $objetivo;
-
-
-
}
diff --git a/src/AppBundle/Entity/PlanificacionSeccionContenido.php b/src/AppBundle/Entity/PlanificacionSeccionContenido.php
index 8d1c6b5..2eb8ab6 100644
--- a/src/AppBundle/Entity/PlanificacionSeccionContenido.php
+++ b/src/AppBundle/Entity/PlanificacionSeccionContenido.php
@@ -65,8 +65,12 @@ class PlanificacionSeccionContenido
* })
*/
private $idPlanificacionSeccion;
-
-
+
+ /**
+ * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="contenido")
+ * @ORM\JoinColumn(name="id_planificacion_contenido", referencedColumnName="id")
+ */
+ private $idPlanificacionContenido;
@@ -171,4 +175,27 @@ class PlanificacionSeccionContenido
{
return $this->idPlanificacionSeccion;
}
+
+ /**
+ * Set idPlanificacionContenido
+ *
+ * @param \AppBundle\Entity\PlanificacionSeccion $idPlanificacionContenido
+ * @return PlanificacionSeccionContenido
+ */
+ public function setIdPlanificacionContenido(\AppBundle\Entity\PlanificacionSeccion $idPlanificacionContenido = null)
+ {
+ $this->idPlanificacionContenido = $idPlanificacionContenido;
+
+ return $this;
+ }
+
+ /**
+ * Get idPlanificacionContenido
+ *
+ * @return \AppBundle\Entity\PlanificacionSeccion
+ */
+ public function getIdPlanificacionContenido()
+ {
+ return $this->idPlanificacionContenido;
+ }
}
diff --git a/src/AppBundle/Entity/PlanificacionSeccionContenido.php~ b/src/AppBundle/Entity/PlanificacionSeccionContenido.php~
index 85125e1..78762d4 100644
--- a/src/AppBundle/Entity/PlanificacionSeccionContenido.php~
+++ b/src/AppBundle/Entity/PlanificacionSeccionContenido.php~
@@ -65,8 +65,12 @@ class PlanificacionSeccionContenido
* })
*/
private $idPlanificacionSeccion;
-
-
+
+ /**
+ * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="contenido")
+ * @ORM\JoinColumn(name="id_planificacion_contenido", referencedColumnName="id")
+ */
+ private $idPlanificacionContenido;
}
diff --git a/src/AppBundle/Entity/PlanificacionSeccionEspecifico.php b/src/AppBundle/Entity/PlanificacionSeccionEspecifico.php
index ff04d81..d2d1139 100644
--- a/src/AppBundle/Entity/PlanificacionSeccionEspecifico.php
+++ b/src/AppBundle/Entity/PlanificacionSeccionEspecifico.php
@@ -39,7 +39,8 @@ class PlanificacionSeccionEspecifico
* @ORM\SequenceGenerator(sequenceName="municipio_id_seq", allocationSize=1, initialValue=1)
*/
private $id;
-
+
+
/**
* @var \AppBundle\Entity\PlanificacionSeccion
*
@@ -50,10 +51,13 @@ class PlanificacionSeccionEspecifico
*/
private $idPlanificacionSeccion;
-
-
+ /**
+ * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="objetivoEspecifico")
+ * @ORM\JoinColumn(name="id_planificacion_especifico", referencedColumnName="id")
+ */
+ private $idPlanificacionEspecifico;
-
+
/**
* Set objetivoEspecifico
*
@@ -109,4 +113,27 @@ class PlanificacionSeccionEspecifico
{
return $this->idPlanificacionSeccion;
}
+
+ /**
+ * Set idPlanificacionEspecifico
+ *
+ * @param \AppBundle\Entity\PlanificacionSeccion $idPlanificacionEspecifico
+ * @return PlanificacionSeccionEspecifico
+ */
+ public function setIdPlanificacionEspecifico(\AppBundle\Entity\PlanificacionSeccion $idPlanificacionEspecifico = null)
+ {
+ $this->idPlanificacionEspecifico = $idPlanificacionEspecifico;
+
+ return $this;
+ }
+
+ /**
+ * Get idPlanificacionEspecifico
+ *
+ * @return \AppBundle\Entity\PlanificacionSeccion
+ */
+ public function getIdPlanificacionEspecifico()
+ {
+ return $this->idPlanificacionEspecifico;
+ }
}
diff --git a/src/AppBundle/Entity/PlanificacionSeccionEspecifico.php~ b/src/AppBundle/Entity/PlanificacionSeccionEspecifico.php~
index a2a0b67..173755a 100644
--- a/src/AppBundle/Entity/PlanificacionSeccionEspecifico.php~
+++ b/src/AppBundle/Entity/PlanificacionSeccionEspecifico.php~
@@ -10,10 +10,10 @@ use Doctrine\ORM\Mapping as ORM;
* @ORM\Table(name="planificacion_seccion_especifico",
* uniqueConstraints=
* {@ORM\UniqueConstraint(name="uq_planificacion_seccion_especifico",
- * columns={"id_planificacion_seccion_especifico"})
+ * columns={"id_planificacion_seccion"})
* },
* indexes={
- * @ORM\Index(name="fki_id_planificacion_seccion",
+ * @ORM\Index(name="fki_id_planificacion_especifico",
* columns={"id_planificacion_seccion"})
* }
* )
@@ -39,7 +39,8 @@ class PlanificacionSeccionEspecifico
* @ORM\SequenceGenerator(sequenceName="municipio_id_seq", allocationSize=1, initialValue=1)
*/
private $id;
-
+
+
/**
* @var \AppBundle\Entity\PlanificacionSeccion
*
@@ -50,7 +51,13 @@ class PlanificacionSeccionEspecifico
*/
private $idPlanificacionSeccion;
-
+ /**
+ * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="objetivoEspecifico")
+ * @ORM\JoinColumn(name="id_planificacion_especifico", referencedColumnName="id")
+ */
+ private $idPlanificacionEspecifico;
+
+
}
diff --git a/src/AppBundle/Entity/PlanificacionSeccionEstrategia.php b/src/AppBundle/Entity/PlanificacionSeccionEstrategia.php
index 4ec073d..a8df262 100644
--- a/src/AppBundle/Entity/PlanificacionSeccionEstrategia.php
+++ b/src/AppBundle/Entity/PlanificacionSeccionEstrategia.php
@@ -56,6 +56,14 @@ class PlanificacionSeccionEstrategia
* @ORM\Column(name="tipoRecurso", type="text", nullable=false, options={"comment" = "Recursos necesarios para el tema"})
*/
private $tipoRecurso;
+
+ /**
+ * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="estrategia")
+ * @ORM\JoinColumn(name="id_planificacion_estrategia", referencedColumnName="id")
+ */
+ private $idPlanificacionEstrategia;
+
+
@@ -137,4 +145,27 @@ class PlanificacionSeccionEstrategia
{
return $this->idPlanificacionSeccion;
}
+
+ /**
+ * Set idPlanificacionEstrategia
+ *
+ * @param \AppBundle\Entity\PlanificacionSeccion $idPlanificacionEstrategia
+ * @return PlanificacionSeccionEstrategia
+ */
+ public function setIdPlanificacionEstrategia(\AppBundle\Entity\PlanificacionSeccion $idPlanificacionEstrategia = null)
+ {
+ $this->idPlanificacionEstrategia = $idPlanificacionEstrategia;
+
+ return $this;
+ }
+
+ /**
+ * Get idPlanificacionEstrategia
+ *
+ * @return \AppBundle\Entity\PlanificacionSeccion
+ */
+ public function getIdPlanificacionEstrategia()
+ {
+ return $this->idPlanificacionEstrategia;
+ }
}
diff --git a/src/AppBundle/Entity/PlanificacionSeccionEstrategia.php~ b/src/AppBundle/Entity/PlanificacionSeccionEstrategia.php~
index c5af2ca..0953221 100644
--- a/src/AppBundle/Entity/PlanificacionSeccionEstrategia.php~
+++ b/src/AppBundle/Entity/PlanificacionSeccionEstrategia.php~
@@ -9,11 +9,11 @@ use Doctrine\ORM\Mapping as ORM;
*
* @ORM\Table(name="planificacion_seccion_estrategia",
* uniqueConstraints=
- * {@ORM\UniqueConstraint(name="uq_planificacion_seccion",
+ * {@ORM\UniqueConstraint(name="uq_planificacion_estrategia",
* columns={"id_planificacion_seccion"})
* },
* indexes={
- * @ORM\Index(name="fki_id_planificacion_seccion",
+ * @ORM\Index(name="fki_id_planificacion_estrategia",
* columns={"id_planificacion_seccion"})
* }
* )
@@ -56,6 +56,14 @@ class PlanificacionSeccionEstrategia
* @ORM\Column(name="tipoRecurso", type="text", nullable=false, options={"comment" = "Recursos necesarios para el tema"})
*/
private $tipoRecurso;
+
+ /**
+ * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="estrategia")
+ * @ORM\JoinColumn(name="id_planificacion_estrategia", referencedColumnName="id")
+ */
+ private $idPlanificacionEstrategia;
+
+
}
diff --git a/src/AppBundle/Entity/PlanificacionSeccionEvaluacion.php b/src/AppBundle/Entity/PlanificacionSeccionEvaluacion.php
index c55de7f..1736d58 100644
--- a/src/AppBundle/Entity/PlanificacionSeccionEvaluacion.php
+++ b/src/AppBundle/Entity/PlanificacionSeccionEvaluacion.php
@@ -94,11 +94,20 @@ class PlanificacionSeccionEvaluacion
* })
*/
protected $idEstatus;
+
+
+ /**
+ * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="evaluacion")
+ * @ORM\JoinColumn(name="id_planificacion_evaluacion", referencedColumnName="id")
+ */
+ private $idPlanificacionEvaluacion;
+
+
/**
* Get id
*
@@ -246,4 +255,27 @@ class PlanificacionSeccionEvaluacion
{
return $this->idEstatus;
}
+
+ /**
+ * Set idPlanificacionEvaluacion
+ *
+ * @param \AppBundle\Entity\PlanificacionSeccion $idPlanificacionEvaluacion
+ * @return PlanificacionSeccionEvaluacion
+ */
+ public function setIdPlanificacionEvaluacion(\AppBundle\Entity\PlanificacionSeccion $idPlanificacionEvaluacion = null)
+ {
+ $this->idPlanificacionEvaluacion = $idPlanificacionEvaluacion;
+
+ return $this;
+ }
+
+ /**
+ * Get idPlanificacionEvaluacion
+ *
+ * @return \AppBundle\Entity\PlanificacionSeccion
+ */
+ public function getIdPlanificacionEvaluacion()
+ {
+ return $this->idPlanificacionEvaluacion;
+ }
}
diff --git a/src/AppBundle/Entity/PlanificacionSeccionEvaluacion.php~ b/src/AppBundle/Entity/PlanificacionSeccionEvaluacion.php~
index ec7f094..7c536fe 100644
--- a/src/AppBundle/Entity/PlanificacionSeccionEvaluacion.php~
+++ b/src/AppBundle/Entity/PlanificacionSeccionEvaluacion.php~
@@ -14,7 +14,7 @@ use Symfony\Component\Validator\Constraints as Assert;
* columns={"id_planificacion_seccion"})
* },
* indexes={
- * @ORM\Index(name="fki_id_planificacion_seccion",
+ * @ORM\Index(name="fki_id_planificacion_evaluacion",
* columns={"id_planificacion_seccion"})
* }
* )
@@ -94,8 +94,17 @@ class PlanificacionSeccionEvaluacion
* })
*/
protected $idEstatus;
+
+
+ /**
+ * @ORM\ManyToOne(targetEntity="PlanificacionSeccion", inversedBy="evaluacion")
+ * @ORM\JoinColumn(name="id_planificacion_evaluacion", referencedColumnName="id")
+ */
+ private $idPlanificacionEvaluacion;
+
+
}
diff --git a/src/AppBundle/Entity/Seccion.php b/src/AppBundle/Entity/Seccion.php
index f5b3ca7..bf2a3ff 100644
--- a/src/AppBundle/Entity/Seccion.php
+++ b/src/AppBundle/Entity/Seccion.php
@@ -82,13 +82,13 @@ class Seccion
private $id;
/**
- * @ORM\ManyToOne(targetEntity="OfertaAcademica", inversedBy="seccion")
+ * @ORM\ManyToOne(targetEntity="AppBundle\Entity\OfertaAcademica", inversedBy="seccion")
* @ORM\JoinColumn(name="oferta_academica_id", referencedColumnName="id")
*/
private $ofertaAcademica;
/**
- * @ORM\OneToMany(targetEntity="PlanificacionSeccion", mappedBy="planificacion")
+ * @ORM\OneToMany(targetEntity="PlanificacionSeccion", mappedBy="seccion")
*/
private $planificacion;
diff --git a/src/AppBundle/Form/PlanificacionSeccionType.php b/src/AppBundle/Form/PlanificacionSeccionType.php
new file mode 100644
index 0000000..5da99e7
--- /dev/null
+++ b/src/AppBundle/Form/PlanificacionSeccionType.php
@@ -0,0 +1,33 @@
+add('idtemaUc')
+ ->add('observacion')
+ ->add('seccion')
+ ;
+ }
+
+ /**
+ * @param OptionsResolver $resolver
+ */
+ public function configureOptions(OptionsResolver $resolver)
+ {
+ $resolver->setDefaults(array(
+ 'data_class' => 'AppBundle\Entity\PlanificacionSeccion'
+ ));
+ }
+}
diff --git a/src/AppBundle/Tests/Controller/PlanificacionSeccionControllerTest.php b/src/AppBundle/Tests/Controller/PlanificacionSeccionControllerTest.php
new file mode 100644
index 0000000..6e157ca
--- /dev/null
+++ b/src/AppBundle/Tests/Controller/PlanificacionSeccionControllerTest.php
@@ -0,0 +1,55 @@
+request('GET', '/ceapp/docente/planificacion/');
+ $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /ceapp/docente/planificacion/");
+ $crawler = $client->click($crawler->selectLink('Create a new entry')->link());
+
+ // Fill in the form and submit it
+ $form = $crawler->selectButton('Create')->form(array(
+ 'appbundle_planificacionseccion[field_name]' => 'Test',
+ // ... other fields to fill
+ ));
+
+ $client->submit($form);
+ $crawler = $client->followRedirect();
+
+ // Check data in the show view
+ $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")');
+
+ // Edit the entity
+ $crawler = $client->click($crawler->selectLink('Edit')->link());
+
+ $form = $crawler->selectButton('Update')->form(array(
+ 'appbundle_planificacionseccion[field_name]' => 'Foo',
+ // ... other fields to fill
+ ));
+
+ $client->submit($form);
+ $crawler = $client->followRedirect();
+
+ // Check the element contains an attribute with value equals "Foo"
+ $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]');
+
+ // Delete the entity
+ $client->submit($crawler->selectButton('Delete')->form());
+ $crawler = $client->followRedirect();
+
+ // Check the entity has been delete on the list
+ $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
+ }
+
+ */
+}