proyectos = new ArrayCollection(); } /** * Set the value of id. * * @param integer $id * @return \UBV\SurUbvBundle\Entity\ProyectoTipo */ public function setId($id) { $this->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\ProyectoTipo */ 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\ProyectoTipo */ 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\ProyectoTipo */ 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; } public function __sleep() { return array('id', 'descripcion'); } public function __toString() { return $this->descripcion; } }