コード例 #1
0
 public function update_onSave($recordId, $context = null)
 {
     $inputs = post('Team');
     \Backend\Models\User::where('team_id', $recordId)->update(['team_id' => 0]);
     // update users team_id
     \Backend\Models\User::whereIn('id', $inputs['users'])->update(['team_id' => $recordId]);
     $this->asExtension('FormController')->update_onSave($recordId, $context);
 }