Entity.Quiz.dcm.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Entity\Quiz:
  2. type: entity
  3. table: c_quiz
  4. repositoryClass: Entity\Repository\QuizRepository
  5. fields:
  6. c_id:
  7. id: true
  8. type: integer
  9. unsigned: false
  10. nullable: false
  11. id:
  12. id: true
  13. type: integer
  14. unsigned: false
  15. nullable: false
  16. title:
  17. type: string
  18. length: 255
  19. fixed: false
  20. nullable: false
  21. description:
  22. type: text
  23. nullable: true
  24. sound:
  25. type: string
  26. length: 255
  27. fixed: false
  28. nullable: true
  29. type:
  30. type: boolean
  31. nullable: false
  32. random:
  33. type: integer
  34. unsigned: false
  35. nullable: false
  36. random_answers:
  37. type: boolean
  38. nullable: false
  39. active:
  40. type: boolean
  41. nullable: false
  42. results_disabled:
  43. type: integer
  44. unsigned: false
  45. nullable: false
  46. access_condition:
  47. type: text
  48. nullable: true
  49. max_attempt:
  50. type: integer
  51. unsigned: false
  52. nullable: false
  53. start_time:
  54. type: datetime
  55. nullable: false
  56. end_time:
  57. type: datetime
  58. nullable: false
  59. feedback_type:
  60. type: integer
  61. unsigned: false
  62. nullable: false
  63. expired_time:
  64. type: integer
  65. unsigned: false
  66. nullable: false
  67. session_id:
  68. type: integer
  69. unsigned: false
  70. nullable: true
  71. propagate_neg:
  72. type: integer
  73. unsigned: false
  74. nullable: false
  75. review_answers:
  76. type: integer
  77. unsigned: false
  78. nullable: false
  79. random_by_category:
  80. type: integer
  81. unsigned: false
  82. nullable: false
  83. text_when_finished:
  84. type: text
  85. nullable: true
  86. display_category_name:
  87. type: integer
  88. unsigned: false
  89. nullable: false
  90. pass_percentage:
  91. type: integer
  92. unsigned: false
  93. nullable: true
  94. lifecycleCallbacks:
  95. prePersist:
  96. - before_save