예제 #1
0
 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()]];
 }
예제 #2
0
 /**
  * @return News
  */
 public function getNews()
 {
     return $this->hasOne(News::className(), ['id' => 'news_id']);
 }