public function setMedlem(Medlem $medlem) { $this->medlem = $medlem; $this->medlem_id = $medlem->getId(); $this->medlemAnamn = $medlem->getAnamn(); }