示例#1
0
 public static function modelClass()
 {
     return MInvoice::className();
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdInvoice()
 {
     return $this->hasOne(Invoice::className(), ['id_invoice' => 'id_invoice']);
 }
示例#3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdInvoices()
 {
     return $this->hasMany(Invoice::className(), ['id_invoice' => 'id_invoice'])->viaTable('payment_dtl', ['id_payment' => 'id_payment']);
 }