/** * @return \yii\db\ActiveQuery */ public function getDisciplineSemesters() { return $this->hasMany(DisciplineSemester::className(), ['id_discipline' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getIdDisciplineSemester() { return $this->hasOne(DisciplineSemester::className(), ['id' => 'id_discipline_semester']); }