Entity.BlogComment.dcm.yml 969 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Entity\BlogComment:
  2. type: entity
  3. table: c_blog_comment
  4. repositoryClass: Entity\Repository\BlogCommentRepository
  5. fields:
  6. c_id:
  7. id: true
  8. type: integer
  9. unsigned: false
  10. nullable: false
  11. comment_id:
  12. id: true
  13. type: integer
  14. unsigned: false
  15. nullable: false
  16. title:
  17. type: string
  18. length: 250
  19. fixed: false
  20. nullable: false
  21. comment:
  22. type: text
  23. nullable: false
  24. author_id:
  25. type: integer
  26. unsigned: false
  27. nullable: false
  28. date_creation:
  29. type: datetime
  30. nullable: false
  31. blog_id:
  32. type: integer
  33. unsigned: false
  34. nullable: false
  35. post_id:
  36. type: integer
  37. unsigned: false
  38. nullable: false
  39. task_id:
  40. type: integer
  41. unsigned: false
  42. nullable: true
  43. parent_comment_id:
  44. type: integer
  45. unsigned: false
  46. nullable: false
  47. lifecycleCallbacks:
  48. prePersist:
  49. - before_save