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