Entity.Notification.dcm.yml 814 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Entity\Notification:
  2. type: entity
  3. table: notification
  4. repositoryClass: Entity\Repository\NotificationRepository
  5. fields:
  6. id:
  7. id: true
  8. type: bigint
  9. nullable: false
  10. generator:
  11. strategy: IDENTITY
  12. dest_user_id:
  13. type: integer
  14. unsigned: false
  15. nullable: false
  16. dest_mail:
  17. type: string
  18. length: 255
  19. fixed: true
  20. nullable: true
  21. title:
  22. type: string
  23. length: 255
  24. fixed: true
  25. nullable: true
  26. content:
  27. type: string
  28. length: 255
  29. fixed: true
  30. nullable: true
  31. send_freq:
  32. type: smallint
  33. nullable: true
  34. created_at:
  35. type: datetime
  36. nullable: false
  37. sent_at:
  38. type: datetime
  39. nullable: true
  40. lifecycleCallbacks:
  41. prePersist:
  42. - before_save