Entity.Session.dcm.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Entity\Session:
  2. type: entity
  3. table: session
  4. repositoryClass: Entity\Repository\SessionRepository
  5. fields:
  6. id:
  7. id: true
  8. type: smallint
  9. nullable: false
  10. generator:
  11. strategy: IDENTITY
  12. id_coach:
  13. type: integer
  14. unsigned: false
  15. nullable: false
  16. name:
  17. type: string
  18. length: 50
  19. fixed: true
  20. nullable: false
  21. nbr_courses:
  22. type: smallint
  23. nullable: false
  24. nbr_users:
  25. type: integer
  26. unsigned: false
  27. nullable: false
  28. nbr_classes:
  29. type: integer
  30. unsigned: false
  31. nullable: false
  32. date_start:
  33. type: date
  34. nullable: false
  35. date_end:
  36. type: date
  37. nullable: false
  38. nb_days_access_before_beginning:
  39. type: boolean
  40. nullable: true
  41. nb_days_access_after_end:
  42. type: boolean
  43. nullable: true
  44. session_admin_id:
  45. type: integer
  46. unsigned: false
  47. nullable: false
  48. visibility:
  49. type: integer
  50. unsigned: false
  51. nullable: false
  52. session_category_id:
  53. type: integer
  54. unsigned: false
  55. nullable: false
  56. promotion_id:
  57. type: integer
  58. unsigned: false
  59. nullable: false
  60. lifecycleCallbacks:
  61. prePersist:
  62. - before_save