public function getCourse() { return $this->hasMany(Course::className(), ['dept_id' => 'dept_id']); }
/** * @return \yii\db\ActiveQuery */ public function getCourse() { return $this->hasOne(Course::className(), ['course_id' => 'course_id']); }
/** * @return \yii\db\ActiveQuery * join table jauuuh */ public function getCourse() { return $this->hasOne(Course::className(), ['course_id' => 'course_id'])->via('educationInformation'); }