Beispiel #1
0
 public function getCategory()
 {
     return $this->hasOne(Category::className(), ['category_id' => 'category_id']);
 }
Beispiel #2
0
 public function behaviors()
 {
     return [['class' => SortableController::className(), 'model' => Category::className()], ['class' => StatusController::className(), 'model' => Category::className()]];
 }