Skip to content

Commit

Permalink
Add Money embeddable mapping.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Gooden <[email protected]>
  • Loading branch information
MichaelGooden committed Nov 1, 2016
1 parent c57eb12 commit a2f12c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/orm/Money.Money.dcm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
http://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<embeddable name="Money\Money">
<field name="amount" type="integer"/>
<field name="currency" type="currency"/>
</embeddable>
</doctrine-mapping>

0 comments on commit a2f12c5

Please sign in to comment.