/** * @return \yii\db\ActiveQuery */ public function getRevisionModel() { return $this->getWidgetRelationModelQuery(\nitm\widgets\models\Revisions::className()); }
/** * Deletes an existing Revisions model. * If deletion is successful, the browser will be redirected to the 'index' page. * @param integer $user_id * @param string $remote_type * @param integer $remote_id * @return mixed */ public function actionDelete($id) { $this->findModel(Revisions::className(), $id)->delete(); return $this->redirect(['index']); }