Mapping.Fixture.Xml.MaterializedPathTree.dcm.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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\MaterializedPathTree" table="materialized_path_trees">
  5. <indexes>
  6. <index name="title_idx" columns="title"/>
  7. </indexes>
  8. <id name="id" type="integer" column="id">
  9. <generator strategy="AUTO"/>
  10. </id>
  11. <field name="level" column="lvl" type="integer">
  12. <gedmo:tree-level/>
  13. </field>
  14. <field name="title" type="string" length="64">
  15. <gedmo:tree-path-source />
  16. </field>
  17. <field name="path" type="string" length="3000">
  18. <gedmo:tree-path separator="," />
  19. </field>
  20. <field name="lockTime" type="datetime">
  21. <gedmo:tree-lock-time />
  22. </field>
  23. <many-to-one field="parent" target-entity="MaterializedPathTree">
  24. <join-column name="parent_id" referenced-column-name="id" on-delete="CASCADE"/>
  25. <gedmo:tree-parent/>
  26. </many-to-one>
  27. <gedmo:tree type="materializedPath" activate-locking="true" locking-timeout="10" />
  28. </entity>
  29. </doctrine-mapping>