Example #1
0
 public static function modelClass()
 {
     return MPayment::className();
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdPayment()
 {
     return $this->hasOne(Payment::className(), ['id_payment' => 'id_payment']);
 }
Example #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdPayments()
 {
     return $this->hasMany(Payment::className(), ['id_payment' => 'id_payment'])->viaTable('payment_dtl', ['id_invoice' => 'id_invoice']);
 }