public function setAktivitet(Aktivitet $aktivitet) { $this->aktivitet = $aktivitet; $this->aktivitet_id = $aktivitet->getId(); }