docente = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Set nombre * * @param string $nombre * @return Escalafon */ public function setNombre($nombre) { $this->nombre = $nombre; return $this; } /** * Get nombre * * @return string */ public function getNombre() { return $this->nombre; } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Get nombre * * @return string */ public function __toString() { 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; } }