michaelgooden / mdg-money-doctrine
Doctrine Types and Embeddables for the PHP implementation of Fowler's Money pattern.
Installs: 228 753
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 3
Forks: 6
Open Issues: 1
Requires
- doctrine/dbal: ^3.0 || ^4.0
- moneyphp/money: ^3.0 || ^4.0
This package is auto-updated.
Last update: 2024-11-14 15:11:51 UTC
README
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;