/**
  * @return \yii\db\ActiveQuery
  */
 public function getBilling()
 {
     return $this->hasOne(Billing::className(), ['id' => 'billing_id']);
 }
Exemple #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBillings()
 {
     return $this->hasMany(Billing::className(), ['agency_id' => 'agency_id']);
 }