예제 #1
0
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'sortable' => ['class' => SortableController::className(), 'model' => Unit::className()]];
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUnit()
 {
     return $this->hasOne(Unit::className(), ['id' => 'unit_id']);
 }