simpod / doctrine-money
Doctrine mapping support for MoneyPHP
Installs: 4 143
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
Requires
- php: >=7.1
Requires (Dev)
- doctrine/coding-standard: ^4.0
- phpstan/phpstan: ^0.9
- phpstan/phpstan-strict-rules: ^0.9
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2019-09-17 07:48:08 UTC
README
The project is abandoned. Avoid embeddables and use brick/money. No Doctrine types needed.
Doctrine Money
Installation
composer require simpod/doctrine-money
Use
doctrine: orm: mappings: Money: dir: "%kernel.project_dir%/../vendor/simpod/doctrine-money/src/doctrine/orm" prefix: Money type: xml
Then in entity you can add property of type Money\Money
:
/** * @var Money * @ORM\Embedded(class="Money\Money") */ private $money;