示例#1
0
文件: Subjects.php 项目: raguila/islc
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSubjectSection()
 {
     return $this->hasMany(SubjectSection::className(), ['SubjectId' => 'SubjectId']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUsers()
 {
     return $this->hasMany(SubjectSection::className(), ['UserId' => 'UserId']);
 }