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