Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update mapping for BillingAgreement and BillingRequest

  • Loading branch information...
commit 02782ffe4234f8fc3cf061b0a1b212b8c6476472 1 parent 4cb9b21
@iampersistent iampersistent authored
View
4 lib/Vespolina/Billing/Mapping/BillingAgreement.orm.xml
@@ -17,7 +17,6 @@
<field name="initialBillingDate" type="datetime" />
<field name="nextBillingDate" type="datetime" />
<field name="numberCyclesBilled" type="integer" />
- <field name="paymentGateway" type="string" nullable="true" />
<field name="updatedAt" type="datetime" />
<many-to-one field="partner" target-entity="Vespolina\Entity\Partner\PartnerInterface">
@@ -35,6 +34,9 @@
<many-to-one field="order" target-entity="Vespolina\Entity\Order\OrderInterface" inversed-by="billingAgreements">
</many-to-one>
+ <many-to-one field="paymentProfile" target-entity="Vespolina\Entity\Partner\PaymentProfile">
+ </many-to-one>
+
<lifecycle-callbacks>
<lifecycle-callback type="prePersist" method="autoSetCreatedAt" />
<lifecycle-callback type="preUpdate" method="autoSetUpdatedAt" />
View
3  lib/Vespolina/Billing/Mapping/BillingRequest.orm.xml
@@ -26,6 +26,9 @@
<join-column name="partner_id" referenced-column-name="id" />
</many-to-one>
+ <many-to-one field="paymentProfile" target-entity="Vespolina\Entity\Partner\PaymentProfile">
+ </many-to-one>
+
<lifecycle-callbacks>
<lifecycle-callback type="prePersist" method="autoSetCreatedAt" />
</lifecycle-callbacks>
Please sign in to comment.
Something went wrong with that request. Please try again.