public function setPeriodo(Periodo $v = null) { if ($v === null) { $this->setFkPeriodoId(0); } else { $this->setFkPeriodoId($v->getId()); } $this->aPeriodo = $v; if ($v !== null) { $v->addExamen($this); } return $this; }