Entity.BlogPost.dcm.yml 719 B

12345678910111213141516171819202122232425262728293031323334353637
  1. Entity\BlogPost:
  2. type: entity
  3. table: c_blog_post
  4. repositoryClass: Entity\Repository\BlogPostRepository
  5. fields:
  6. c_id:
  7. id: true
  8. type: integer
  9. unsigned: false
  10. nullable: false
  11. post_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. full_text:
  22. type: text
  23. nullable: false
  24. date_creation:
  25. type: datetime
  26. nullable: false
  27. blog_id:
  28. type: integer
  29. unsigned: false
  30. nullable: false
  31. author_id:
  32. type: integer
  33. unsigned: false
  34. nullable: false
  35. lifecycleCallbacks:
  36. prePersist:
  37. - before_save