コード例 #1
0
ファイル: User.php プロジェクト: pyw5pkU9PcdW/COMP3421
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getParticipant()
 {
     return $this->hasOne(Participant::className(), ['id' => 'id']);
 }
コード例 #2
0
ファイル: Questionnaire.php プロジェクト: jibendi/Test
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getFkPerson()
 {
     return $this->hasOne(Participant::className(), ['pk_person' => 'fk_person']);
 }
コード例 #3
0
ファイル: Konkurs.php プロジェクト: h8every1/pro-education
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getParticipants()
 {
     return $this->hasMany(Participant::className(), ['konkurs_id' => 'id']);
 }
コード例 #4
0
ファイル: Survey.php プロジェクト: pyw5pkU9PcdW/COMP3421
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getParticipants()
 {
     return $this->hasMany(Participant::className(), ['id' => 'Participant_id'])->viaTable('Survey_has_Participant', ['Survey_id' => 'id']);
 }
コード例 #5
0
ファイル: Coupon.php プロジェクト: pyw5pkU9PcdW/COMP3421
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getParticipants()
 {
     return $this->hasMany(Participant::className(), ['id' => 'Participant_id'])->viaTable('participant_has_coupon', ['coupon_id' => 'id']);
 }
コード例 #6
0
ファイル: User.php プロジェクト: h8every1/pro-education
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getParticipant()
 {
     return $this->hasOne(Participant::className(), ['user_id' => 'id'])->inverseOf('user');
 }