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