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