/** * @inheritdoc */ public function initGroupSelection() { $this->currentGroups = $this->groups; //Set the current group selection $this->groupSelection = []; foreach ($this->currentGroups as $group) { $this->groupSelection[] = $group->id; } parent::init(); }