예제 #1
0
 public function actions()
 {
     return ['sort' => ['class' => SortableGridAction::className(), 'modelName' => Category::className()]];
 }
예제 #2
0
파일: Category.php 프로젝트: akula22/fifa
 public function getParent()
 {
     return $this->hasOne(Category::className(), ['id' => 'parent_id']);
 }