readFromDb('kompass_veranstaltungen_teilis', ['eventId' => $event_id]); $return = []; foreach ($data as $participant) { $part = EventParticipant::loadById($participant->id); $return[] = $part; } return $return; } public function get_group() : CommonModel { return EventGroup::load_by_id(MainController::KOMPASS_EVENTS_GROUPS, $this->gruppe_id); } public function __construct() { $this->_tablename = 'kompass_veranstaltungen_teilis'; } }