public function actionUpdateType($id)
 {
     $this->checkAccess('admin_staff');
     $model = DisputeTypes::findOne((int) $id);
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->redirect('/dispute/types');
     } else {
         return $this->render('update', ['model' => $model]);
     }
 }
 private function getDisputeType()
 {
     return $this->hasOne(DisputeTypes::className(), ['type_id' => 'transaction_dispute_type'])->select('type_name')->one()->type_name;
 }