示例#1
0
 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']);
 }
示例#3
0
 /**
  * @return \yii\db\ActiveQuery
  * join table jauuuh
  */
 public function getCourse()
 {
     return $this->hasOne(Course::className(), ['course_id' => 'course_id'])->via('educationInformation');
 }