/** * @return \yii\db\ActiveQuery */ public function getCategory() { return $this->hasOne(InfoCategory::className(), ['id' => 'category_id']); }