示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBenefits()
 {
     return $this->hasMany(Benefit::className(), ['benefit_scholar_id' => 'scholar_id']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBenefitAllowance()
 {
     return $this->hasOne(Benefit::className(), ['benefit_id' => 'benefit_allowance_id']);
 }