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