/** * @return \yii\db\ActiveQuery */ public function getIdStudentEducation() { return $this->hasOne(StudentEducation::className(), ['id' => 'id_student_education']); }
/** * @return \yii\db\ActiveQuery */ public function getStudentEducations() { return $this->hasMany(StudentEducation::className(), ['id_program' => 'id']); }