/** * @return \yii\db\ActiveQuery */ public function getAllowances() { return $this->hasMany(Allowance::className(), ['benefit_allowance_id' => 'benefit_id']); }
/** * @return \yii\db\ActiveQuery */ public function getAllowances() { return $this->hasMany(Allowance::className(), ['allowance_scholar_id' => 'scholar_id']); }
/** * @return \yii\db\ActiveQuery */ public function getAllowanceAllowanceArea() { return $this->hasOne(Allowance::className(), ['allowance_area' => 'allowance_allowance_area']); }