Skip to content

Doctrine Types and Embeddables for the PHP implementation of Fowler's Money pattern.

Notifications You must be signed in to change notification settings

MichaelGooden/mdg-money-doctrine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mdg Money Doctrine

Include the custom Currency type into your Doctrine configuration.

Point a XML mapping driver to the vendor/michaelgooden/mdg-money-doctrine/config/orm/Money.Money.dcm.xml file to being using \Money\Money as an embeddable:

    /**
     * @ORM\Embedded(class="Money\Money")
     */
    private $total;

    /**
     * @ORM\Embedded(class="Money\Money")
     */
    private $tax;

About

Doctrine Types and Embeddables for the PHP implementation of Fowler's Money pattern.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages