Entity.QuizAnswer.dcm.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Entity\QuizAnswer:
  2. type: entity
  3. table: c_quiz_answer
  4. repositoryClass: Entity\Repository\QuizAnswerRepository
  5. fields:
  6. c_id:
  7. id: true
  8. type: integer
  9. unsigned: false
  10. nullable: false
  11. id_auto:
  12. id: true
  13. type: integer
  14. unsigned: false
  15. nullable: false
  16. id:
  17. type: integer
  18. unsigned: false
  19. nullable: false
  20. question_id:
  21. type: integer
  22. unsigned: false
  23. nullable: false
  24. answer:
  25. type: text
  26. nullable: false
  27. correct:
  28. type: integer
  29. unsigned: false
  30. nullable: true
  31. comment:
  32. type: text
  33. nullable: true
  34. ponderation:
  35. type: float
  36. nullable: false
  37. position:
  38. type: integer
  39. unsigned: false
  40. nullable: false
  41. hotspot_coordinates:
  42. type: text
  43. nullable: true
  44. hotspot_type:
  45. type: string
  46. length: null
  47. fixed: false
  48. nullable: true
  49. destination:
  50. type: text
  51. nullable: false
  52. answer_code:
  53. type: string
  54. length: 10
  55. fixed: true
  56. nullable: true
  57. lifecycleCallbacks:
  58. prePersist:
  59. - before_save