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