public function actions() { return ['remove' => ['class' => RemoveAction::className(), 'modelClass' => News::className()], 'delete' => ['class' => DeleteAction::className(), 'modelClass' => News::className()], 'restore' => ['class' => RestoreAction::className(), 'modelClass' => News::className()]]; }
/** * @return News */ public function getNews() { return $this->hasOne(News::className(), ['id' => 'news_id']); }