public function find(int $id) : favourite {
        global $DB;
        $record = $DB->get_record($this->favouritetable, ['id' => $id], '*', MUST_EXIST);
        return $this->get_favourite_from_record($record);
    }