Entity.Message.dcm.yml 923 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Entity\Message:
  2. type: entity
  3. table: message
  4. repositoryClass: Entity\Repository\MessageRepository
  5. fields:
  6. id:
  7. id: true
  8. type: bigint
  9. nullable: false
  10. generator:
  11. strategy: IDENTITY
  12. user_sender_id:
  13. type: integer
  14. unsigned: false
  15. nullable: false
  16. user_receiver_id:
  17. type: integer
  18. unsigned: false
  19. nullable: false
  20. msg_status:
  21. type: boolean
  22. nullable: false
  23. send_date:
  24. type: datetime
  25. nullable: false
  26. title:
  27. type: string
  28. length: 255
  29. fixed: false
  30. nullable: false
  31. content:
  32. type: text
  33. nullable: false
  34. group_id:
  35. type: integer
  36. unsigned: false
  37. nullable: false
  38. parent_id:
  39. type: integer
  40. unsigned: false
  41. nullable: false
  42. update_date:
  43. type: datetime
  44. nullable: false
  45. lifecycleCallbacks:
  46. prePersist:
  47. - before_save