aporteInstitucions = new ArrayCollection(); } /** * Set the value of id. * * @param integer $id * @return \UBV\SurUbvBundle\Entity\Institucion */ 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\Institucion */ public function setDescripcion($descripcion) { $this->descripcion = $descripcion; return $this; } /** * Get the value of descripcion. * * @return string */ public function getDescripcion() { return $this->descripcion; } /** * Add AporteInstitucion entity to collection (one to many). * * @param \UBV\SurUbvBundle\Entity\AporteInstitucion $aporteInstitucion * @return \UBV\SurUbvBundle\Entity\Institucion */ public function addAporteInstitucion(AporteInstitucion $aporteInstitucion) { $this->aporteInstitucions[] = $aporteInstitucion; return $this; } /** * Remove AporteInstitucion entity from collection (one to many). * * @param \UBV\SurUbvBundle\Entity\AporteInstitucion $aporteInstitucion * @return \UBV\SurUbvBundle\Entity\Institucion */ public function removeAporteInstitucion(AporteInstitucion $aporteInstitucion) { $this->aporteInstitucions->removeElement($aporteInstitucion); return $this; } /** * Get AporteInstitucion entity collection (one to many). * * @return \Doctrine\Common\Collections\Collection */ public function getAporteInstitucions() { return $this->aporteInstitucions; } /** * Set Pais entity (many to one). * * @param \UBV\SurUbvBundle\Entity\Pais $pais * @return \UBV\SurUbvBundle\Entity\Institucion */ public function setPais(Pais $pais = null) { $this->pais = $pais; return $this; } /** * Get Pais entity (many to one). * * @return \UBV\SurUbvBundle\Entity\Pais */ public function getPais() { return $this->pais; } /** * Set InstitucionTipo entity (many to one). * * @param \UBV\SurUbvBundle\Entity\InstitucionTipo $institucionTipo * @return \UBV\SurUbvBundle\Entity\Institucion */ public function setInstitucionTipo(InstitucionTipo $institucionTipo = null) { $this->institucionTipo = $institucionTipo; return $this; } /** * Get InstitucionTipo entity (many to one). * * @return \UBV\SurUbvBundle\Entity\InstitucionTipo */ public function getInstitucionTipo() { return $this->institucionTipo; } public function __sleep() { return array('id', 'descripcion', 'pais_id', 'institucion_tipo_id'); } public function __toString() { return $this->descripcion; } }