/** * Deletes an existing CaseStatus model. * If deletion is successful, the browser will be redirected to the 'index' page. * @param integer $id * @return mixed */ public function actionDelete($id) { $this->findModel(CaseStatus::className(), $id)->delete(); return $this->redirect(['index']); }
/** * @return \yii\db\ActiveQuery */ public function getStatusCode() { return $this->hasOne(CaseStatus::className(), ['id' => 'status_code']); }