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