metodologias = new ArrayCollection(); } /** * Set the value of id. * * @param integer $id * @return \UBV\SurUbvBundle\Entity\MetodologiaTipo */ 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\MetodologiaTipo */ public function setDescripcion($descripcion) { $this->descripcion = $descripcion; return $this; } /** * Get the value of descripcion. * * @return string */ public function getDescripcion() { return $this->descripcion; } /** * Add Metodologia entity to collection (one to many). * * @param \UBV\SurUbvBundle\Entity\Metodologia $metodologia * @return \UBV\SurUbvBundle\Entity\MetodologiaTipo */ public function addMetodologia(Metodologia $metodologia) { $this->metodologias[] = $metodologia; return $this; } /** * Remove Metodologia entity from collection (one to many). * * @param \UBV\SurUbvBundle\Entity\Metodologia $metodologia * @return \UBV\SurUbvBundle\Entity\MetodologiaTipo */ public function removeMetodologia(Metodologia $metodologia) { $this->metodologias->removeElement($metodologia); return $this; } /** * Get Metodologia entity collection (one to many). * * @return \Doctrine\Common\Collections\Collection */ public function getMetodologias() { return $this->metodologias; } public function __sleep() { return array('id', 'descripcion'); } public function __toString() { return $this->descripcion; } }