Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBilling()
 {
     return $this->hasOne(Billing::className(), ['id' => 'billing_id']);
 }
Esempio n. 2
0
File: Agency.php Progetto: ras263/df
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBillings()
 {
     return $this->hasMany(Billing::className(), ['agency_id' => 'agency_id']);
 }