Mapping.Fixture.Xml.ClosureTree.dcm.xml 912 B

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
  3. xmlns:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping">
  4. <entity name="Mapping\Fixture\Xml\ClosureTree" table="closure_trees">
  5. <id name="id" type="integer" column="id">
  6. <generator strategy="AUTO"/>
  7. </id>
  8. <field name="name" type="string" length="128"/>
  9. <field name="level" type="integer">
  10. <gedmo:tree-level />
  11. </field>
  12. <many-to-one field="parent" target-entity="ClosureTree">
  13. <join-column name="parent_id" referenced-column-name="id" on-delete="CASCADE"/>
  14. <gedmo:tree-parent/>
  15. </many-to-one>
  16. <gedmo:tree type="closure"/>
  17. <gedmo:tree-closure class="Mapping\Fixture\ClosureTreeClosure"/>
  18. </entity>
  19. </doctrine-mapping>