예제 #1
0
파일: Faculty.php 프로젝트: vetal06/diplom
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDepartments()
 {
     return $this->hasMany(Department::className(), ['faculty_id' => 'id']);
 }
예제 #2
0
파일: Record.php 프로젝트: bzboy/LyHNIMS
 public function getDepartment()
 {
     return $this->hasOne(Department::className(), ['id' => 'department_id']);
 }
예제 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDept()
 {
     return $this->hasOne(Department::className(), ['ID' => 'dept_ID']);
 }