Ejemplo n.º 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCategory()
 {
     return $this->hasOne(Category::className(), ['id' => 'category_id']);
 }
Ejemplo n.º 2
0
 public static function model()
 {
     return \gromver\platform\common\models\Category::className();
 }