Entity.SystemTemplate.dcm.yml 606 B

12345678910111213141516171819202122232425262728293031
  1. Entity\SystemTemplate:
  2. type: entity
  3. table: system_template
  4. repositoryClass: Entity\Repository\SystemTemplateRepository
  5. fields:
  6. id:
  7. id: true
  8. type: integer
  9. unsigned: false
  10. nullable: false
  11. generator:
  12. strategy: IDENTITY
  13. title:
  14. type: string
  15. length: 250
  16. fixed: false
  17. nullable: false
  18. comment:
  19. type: text
  20. nullable: false
  21. image:
  22. type: string
  23. length: 250
  24. fixed: false
  25. nullable: false
  26. content:
  27. type: text
  28. nullable: false
  29. lifecycleCallbacks:
  30. prePersist:
  31. - before_save