コード例 #1
0
ファイル: User.php プロジェクト: aoopvn/EduSec4.0.0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSubjectAllocates()
 {
     return $this->hasMany(SubjectAllocate::className(), ['updated_by' => 'user_id']);
 }
コード例 #2
0
ファイル: Batches.php プロジェクト: anazhd/EduSec
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSubjectAllocates()
 {
     return $this->hasMany(SubjectAllocate::className(), ['sub_allocate_batch_id' => 'batch_id']);
 }
コード例 #3
0
ファイル: EmpMaster.php プロジェクト: EduSec/EduSec
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSubjectAllocates()
 {
     return $this->hasMany(SubjectAllocate::className(), ['sub_allocate_emp_id' => 'emp_master_id']);
 }