id = $id; return $this; } /** * Get the value of id. * * @return integer */ public function getId() { return $this->id; } /** * Set the value of descripcion. * * @param string $descripcion * @return \UBV\SurUbvBundle\Entity\Metodologia */ public function setDescripcion($descripcion) { $this->descripcion = $descripcion; return $this; } /** * Get the value of descripcion. * * @return string */ public function getDescripcion() { return $this->descripcion; } /** * Add Proyecto entity to collection (one to many). * * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto * @return \UBV\SurUbvBundle\Entity\Metodologia */ public function addProyecto(Proyecto $proyecto) { $this->proyectos[] = $proyecto; return $this; } /** * Remove Proyecto entity from collection (one to many). * * @param \UBV\SurUbvBundle\Entity\Proyecto $proyecto * @return \UBV\SurUbvBundle\Entity\Metodologia */ public function removeProyecto(Proyecto $proyecto) { $this->proyectos->removeElement($proyecto); return $this; } /** * Get Proyecto entity collection (one to many). * * @return \Doctrine\Common\Collections\Collection */ public function getProyectos() { return $this->proyectos; } /** * Set MetodologiaTipo entity (many to one). * * @param \UBV\SurUbvBundle\Entity\MetodologiaTipo $metodologiaTipo * @return \UBV\SurUbvBundle\Entity\Metodologia */ public function setMetodologiaTipo(MetodologiaTipo $metodologiaTipo = null) { $this->metodologiaTipo = $metodologiaTipo; return $this; } /** * Get MetodologiaTipo entity (many to one). * * @return \UBV\SurUbvBundle\Entity\MetodologiaTipo */ public function getMetodologiaTipo() { return $this->metodologiaTipo; } public function __sleep() { return array('id', 'descripcion', 'metodologia_tipo_id'); } public function __toString() { return $this->descripcion; } }