Mapping.Fixture.Yaml.Category.dcm.yml 922 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ---
  2. Mapping\Fixture\Yaml\Category:
  3. type: entity
  4. table: categories
  5. id:
  6. id:
  7. type: integer
  8. generator:
  9. strategy: AUTO
  10. gedmo:
  11. translation:
  12. entity: Translatable\Fixture\CategoryTranslation
  13. locale: localeField
  14. fields:
  15. title:
  16. type: string
  17. length: 64
  18. gedmo:
  19. - translatable
  20. - sluggable
  21. slug:
  22. type: string
  23. length: 64
  24. gedmo:
  25. - translatable
  26. slug:
  27. separator: _
  28. style: camel
  29. changed:
  30. type: date
  31. gedmo:
  32. timestampable:
  33. on: change
  34. field: title
  35. value: Test
  36. manyToOne:
  37. parent:
  38. targetEntity: Mapping\Fixture\Yaml\Category
  39. inversedBy: children
  40. gedmo:
  41. - treeParent
  42. oneToMany:
  43. children:
  44. targetEntity: Mapping\Fixture\Yaml\Category
  45. mappedBy: parent
  46. indexes:
  47. search_idx:
  48. columns: title