1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
<?php
declare(strict_types=1);
namespace Doctrine\Tests\Models\Generic;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Table;
#[Table(name: 'decimal_model')]
#[Entity]
class DecimalModel
{
/** @var int */
#[Id]
#[Column(type: 'integer')]
#[GeneratedValue(strategy: 'AUTO')]
public $id;
/** @var float */
#[Column(name: '`decimal`', type: 'decimal', scale: 2, precision: 5)]
public $decimal;
/** @var float */
#[Column(name: '`high_scale`', type: 'decimal', scale: 4, precision: 14)]
public $highScale;
}
|