/** * @return \yii\db\ActiveQuery */ public function getCourse() { return $this->hasOne(Course::className(), ['id' => 'course_id']); }
/** * @return \yii\db\ActiveQuery */ public function getCourses() { return $this->hasMany(Course::className(), ['facility_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getCourses() { return $this->hasMany(Course::className(), ['course_terms' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getCourseToTake2() { return $this->hasOne(Course::className(), ['course_name' => 'course_to_take2']); }