Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 413 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 413 Bytes

Features:

  • PHP 8.0 attributes' support
  • automaticaly add Form type
  • automaticaly add DB types for mapping (doctrine only): amount and currency columns' mappings

Usage

doctrine's mapping:

<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
use PandawanTechnology\Money\Model\Money;

#[ORM\Entity]
class Product {
    #[ORM\Embedded(class: Money::class)]
    private $price;
}