DecimalModel.php 452B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Doctrine\Tests\Models\Generic;
  3. /**
  4. * @Entity
  5. * @Table(name="decimal_model")
  6. */
  7. class DecimalModel
  8. {
  9. /**
  10. * @Id @Column(type="integer")
  11. * @GeneratedValue(strategy="AUTO")
  12. */
  13. public $id;
  14. /**
  15. * @Column(name="`decimal`", type="decimal", scale=2, precision=5)
  16. */
  17. public $decimal;
  18. /**
  19. * @Column(name="`high_scale`", type="decimal", scale=4, precision=14)
  20. */
  21. public $highScale;
  22. }