Permalink
Browse files

Merge pull request #8 from jcroll/master

[WIP] Refactor
  • Loading branch information...
iampersistent committed Apr 1, 2013
2 parents 1cd245f + ec986b3 commit 90d91ef0a6ec09677fde2acf8830184b2164b916
Showing with 35 additions and 0 deletions.
  1. +35 −0 lib/Vespolina/Billing/Mapping/BillingAgreement.mongodb.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping
+ http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
+
+ <document name="Vespolina\Entity\Billing\BillingAgreement">
+ <field name="id" id="true" />
+
+ <field name="active" type="boolean" />
+ <field name="billedToDate" type="date" />
+ <field name="billingCycles" type="int" />
+ <field name="billingInterval" type="string" />
+ <field name="createdAt" type="date" />
+ <field name="initialBillingDate" type="date" />
+ <field name="numberCyclesBilled" type="int" />
+ <field name="updatedAt" type="date" />
+ <field name="numberCyclesBilled" type="int" />
+ <field name="updatedAt" type="date" />
+ <field name="generateRequestOffset" type="string" />
+ <field name="processRequestOffset" type="string" />
+ <field name="generateRequestOn" type="date" />
+
+ <reference-one field="owner" target-document="Vespolina\Entity\Partner\Partner" />
+ <reference-one field="order" target-document="Vespolina\Entity\Order\Order" />
+ <reference-one field="paymentProfile" target-document="Vespolina\Entity\Partner\PaymentProfile" />
+ <reference-many field="orderItems" target-document="Vespolina\Entity\Order\Item" />
+ <reference-many field="pricingSet" target-document="Vespolina\Pricing\Entity\PricingSet" />
+
+ <lifecycle-callbacks>
+ <lifecycle-callback type="prePersist" method="autoSetCreatedAt" />
+ <lifecycle-callback type="preUpdate" method="autoSetUpdatedAt" />
+ </lifecycle-callbacks>
+ </document>
+</doctrine-mongo-mapping>

0 comments on commit 90d91ef

Please sign in to comment.