Skip to content

Commit 102faa4

Browse files
committed
Update Docs for change
1 parent f84a3b5 commit 102faa4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/tree.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ Thanks for contributions to:
2222
- **[everzet](http://github.com/everzet) Kudryashov Konstantin** for TreeLevel implementation
2323
- **[stof](http://github.com/stof) Christophe Coevoet** for getTreeLeafs function
2424

25+
Update **2018-02-26**
26+
27+
- Nodes with no Parent can now be sorted based on a tree root id being an id from another table. Existing behaviour
28+
is unchanged unless you add properties to the `@TreeRoot` annotation. Example: You have two categories with no parent,
29+
horror and comedy, which are actually categories of 'Movie', which is in another table. Usually calling `moveUp()` or
30+
`moveDown()` would be impossible, but now you can add `@TreeRoot(identifierMethod="getRoot")`, where `getRoot` is the
31+
name of your class method returning the root id/entity.
32+
33+
2534
Update **2017-04-22**
2635

2736
- Added the `TreeObjectHydrator` class for building trees from entities

0 commit comments

Comments
 (0)