/** * @return \yii\db\ActiveQuery */ public function getProblemCategory() { return $this->hasOne(ProblemCategory::className(), ['id_problem_category' => 'problem_category']); }