DateTimeModel.php 509B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Doctrine\Tests\Models\Generic;
  3. /**
  4. * @Entity
  5. * @Table(name="date_time_model")
  6. */
  7. class DateTimeModel
  8. {
  9. /**
  10. * @Id @Column(type="integer")
  11. * @GeneratedValue
  12. */
  13. public $id;
  14. /**
  15. * @Column(name="col_datetime", type="datetime", nullable=true)
  16. */
  17. public $datetime;
  18. /**
  19. * @Column(name="col_date", type="date", nullable=true)
  20. */
  21. public $date;
  22. /**
  23. * @Column(name="col_time", type="time", nullable=true)
  24. */
  25. public $time;
  26. }