---
Mapping\Fixture\Yaml\Category:
  type: entity
  table: categories
  id:
    id:
      type: integer
      generator:
        strategy: AUTO
  gedmo:
    translation:
      entity: Translatable\Fixture\CategoryTranslation
      locale: localeField
    tree:
      type: nested
    loggable:
      logEntryClass: Gedmo\Loggable\Entity\LogEntry
  fields:
    title:
      type: string
      length: 64
      gedmo:
        - translatable
    slug:
      type: string
      length: 64
      gedmo:
        slug:
          separator: "_"
          style: camel
          fields:
            - title
          handlers:
            "Gedmo\Sluggable\Handler\RelativeSlugHandler":
              relationField: parent
              relationSlugField: slug
              separator: /
            "Gedmo\Sluggable\Handler\TreeSlugHandler":
              parentRelationField: parent
              separator: /
    changed:
      type: date
      gedmo:
        timestampable:
          on: change
          field: title
          value: Test
  manyToOne:
    parent:
      targetEntity: Mapping\Fixture\Yaml\Category
      inversedBy: children
      gedmo:
        - treeParent
  oneToMany:
    children:
      targetEntity: Mapping\Fixture\Yaml\Category
      mappedBy: parent
  indexes:
    search_idx:
      columns: title
