@@ -14,7 +14,7 @@ Features:
1414- Synchronization of left, right values is automatic
1515- Can support concurrent flush with many objects being persisted and updated
1616- Can be nested with other extensions
17- - Attribute, Annotation, Yaml and Xml mapping support for extensions
17+ - Attribute, Annotation and Xml mapping support for extensions
1818
1919Thanks for contributions to:
2020
@@ -966,63 +966,6 @@ class Category
966966
967967```
968968
969- ### MongoDB example (Yaml)
970- ```
971- YourNamespace\Document\Category:
972- type: mappedSuperclass
973- repositoryClass: Gedmo\Tree\Document\MongoDB\Repository\MaterializedPathRepository
974- collection: categories
975- gedmo:
976- tree:
977- type: materializedPath
978- activateLocking: true
979- fields:
980- id:
981- id: true
982- title:
983- type: string
984- gedmo:
985- - sluggable
986- slug:
987- type: string
988- gedmo:
989- 0: treePathSource
990- slug:
991- unique: false
992- fields:
993- - title
994- path:
995- type: string
996- gedmo:
997- treePath:
998- separator: '/'
999- appendId: false
1000- startsWithSeparator: false # default
1001- endsWithSeparator: true # default
1002- level:
1003- type: int
1004- name: lvl
1005- nullable: true
1006- gedmo:
1007- - treeLevel
1008- lockTime:
1009- type: date
1010- gedmo:
1011- - treeLockTime
1012- hash:
1013- type: string
1014- gedmo:
1015- - treePathHash
1016- parent:
1017- reference: true
1018- type: one
1019- inversedBy: children
1020- targetDocument: YourNamespace\Document\Category
1021- simple: true
1022- gedmo:
1023- - treeParent
1024- ```
1025-
1026969### Path generation
1027970
1028971When an entity is inserted, a path is generated using the value of the field configured as the TreePathSource.
@@ -1062,7 +1005,7 @@ If it is locked, then it throws an exception of type "Gedmo\Exception\TreeLockin
10621005it locks the tree and proceeds with the modification. After all the modifications are done, the lock is freed.
10631006
10641007If, for some reason, the lock couldn't get freed, there's a lock timeout configured with a default time of 3 seconds.
1065- You can change this value using the ** lockingTimeout** parameter under the Tree annotation (or equivalent in XML and YML ).
1008+ You can change this value using the ** lockingTimeout** parameter under the Tree attribute (or equivalent in annotation and XML ).
10661009You must pass a value in seconds to this parameter.
10671010
10681011
0 commit comments