Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSubjectHasUsers()
 {
     return $this->hasMany(SubjectHasUser::className(), ['user_id' => 'id', 'user_department_id' => 'department_id']);
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSubjectHasUsers()
 {
     return $this->hasMany(SubjectHasUser::className(), ['id' => 'id']);
 }