/** * Changes the programme being managed. * This will reset the form, because we expect the dates to be completely different * @param int $programmeid */ public function setProgramme($programmeid) { $this->programme = WalkProgramme::get($programmeid); $this->form = null; }