Entity.ReservationItem.dcm.yml 843 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Entity\ReservationItem:
  2. type: entity
  3. table: reservation_item
  4. repositoryClass: Entity\Repository\ReservationItemRepository
  5. fields:
  6. id:
  7. id: true
  8. type: integer
  9. unsigned: false
  10. nullable: false
  11. generator:
  12. strategy: IDENTITY
  13. category_id:
  14. type: integer
  15. unsigned: false
  16. nullable: false
  17. course_code:
  18. type: string
  19. length: 40
  20. fixed: false
  21. nullable: false
  22. name:
  23. type: string
  24. length: 128
  25. fixed: false
  26. nullable: false
  27. description:
  28. type: text
  29. nullable: false
  30. blackout:
  31. type: boolean
  32. nullable: false
  33. creator:
  34. type: integer
  35. unsigned: false
  36. nullable: false
  37. always_available:
  38. type: boolean
  39. nullable: false
  40. lifecycleCallbacks:
  41. prePersist:
  42. - before_save