/** * Deletes an existing Cat 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($id)->delete(); Cat::updateAll(['status' => Cat::STATUS_DELETED], ['id' => $id]); return $this->redirect(['index']); }