Entity.Block.dcm.yml 674 B

123456789101112131415161718192021222324252627282930313233343536
  1. Entity\Block:
  2. type: entity
  3. table: block
  4. repositoryClass: Entity\Repository\BlockRepository
  5. fields:
  6. id:
  7. id: true
  8. type: integer
  9. unsigned: false
  10. nullable: false
  11. generator:
  12. strategy: IDENTITY
  13. name:
  14. type: string
  15. length: 255
  16. fixed: false
  17. nullable: true
  18. description:
  19. type: text
  20. nullable: true
  21. path:
  22. type: string
  23. length: 255
  24. fixed: false
  25. nullable: false
  26. controller:
  27. type: string
  28. length: 100
  29. fixed: false
  30. nullable: false
  31. active:
  32. type: boolean
  33. nullable: false
  34. lifecycleCallbacks:
  35. prePersist:
  36. - before_save