public function setEstablecimiento(Establecimiento $v = null) { if ($v === null) { $this->setFkEstablecimientoId(0); } else { $this->setFkEstablecimientoId($v->getId()); } $this->aEstablecimiento = $v; if ($v !== null) { $v->addAlumno($this); } return $this; }