Beispiel #1
0
 public function getFaculty()
 {
     return $this->hasOne(Faculty::className(), ['faculty_id' => 'faculty_id']);
 }
Beispiel #2
0
 public function getFaculty()
 {
     //a program belongs to one faculty
     return $this->hasOne(Faculty::className(), ['faculty_id' => 'faculty_id']);
 }