diff --git a/src/AppBundle/Entity/Escalafones.php b/src/AppBundle/Entity/Escalafones.php index b00ba34..b4149dd 100644 --- a/src/AppBundle/Entity/Escalafones.php +++ b/src/AppBundle/Entity/Escalafones.php @@ -35,6 +35,13 @@ class Escalafones */ private $id; + /** + * @var integer + * + * @ORM\Column(name="tiempo", type="integer", nullable=false, options={"comment" = "Tiempo necesario para obtener la escala"}) + */ + private $tiempo; + @@ -83,6 +90,26 @@ class Escalafones } + /** + * Set tiempo + * + * @param integer $tiempo + * @return Escalafones + */ + public function setTiempo($tiempo) + { + $this->tiempo = $tiempo; + return $this; + } + /** + * Get tiempo + * + * @return integer + */ + public function getTiempo() + { + return $this->tiempo; + } } diff --git a/src/AppBundle/Entity/Escalafones.php~ b/src/AppBundle/Entity/Escalafones.php~ index bcaeefd..d271e32 100644 --- a/src/AppBundle/Entity/Escalafones.php~ +++ b/src/AppBundle/Entity/Escalafones.php~ @@ -36,19 +36,14 @@ class Escalafones private $id; /** - * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Adscripcion", inversedBy="escala") - * @ORM\JoinColumn(name="adscripcion_id", referencedColumnName="id") - */ - protected $docente; - - /** - * Constructor + * @var integer + * + * @ORM\Column(name="tiempo", type="integer", nullable=false, options={"comment" = "Tiempo necesario para obtener la escala"}) */ - public function __construct() - { - $this->docente = new \Doctrine\Common\Collections\ArrayCollection(); - } - + private $tiempo; + + + /** @@ -94,40 +89,6 @@ class Escalafones return $this->nombre; } - - - /** - * Add docente - * - * @param \AppBundle\Entity\Adscripcion $docente - * @return Adscripcion - */ - public function addDocente(\AppBundle\Entity\Adscripcion $docente) - { - $this->docente[] = $docente; - - return $this; - } - - /** - * Remove docente - * - * @param \AppBundle\Entity\Adscripcion $docente - */ - public function removeDocente(\AppBundle\Entity\Adscripcion $docente) - { - $this->docente->removeElement($docente); - } - - /** - * Get docente - * - * @return \Doctrine\Common\Collections\Collection - */ - public function getDocente() - { - return $this->docente; - }