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