![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mcoil.corals.io/vendor/kalnoy/nestedset/ |
### Upgrading from 4.0 to 4.1 Nested sets feature has been moved to trait `Kalnoy\Nestedset\NodeTrait`, but old `Kalnoy\Nestedset\Node` class is still available. Some methods on trait were renamed (see changelog), but still available on legacy node class. Default order is no longer applied for `siblings()`, `descendants()`, `prevNodes`, `nextNodes`. ### Upgrading to 3.0 Some methods were renamed, see changelog for more details. ### Upgrading to 2.0 Calling `$parent->append($node)` and `$parent->prepend($node)` now automatically saves `$node`. Those functions returns whether the node was saved. `ancestorsOf` now return ancestors only, not including target node. Default order is not applied automatically, so if you need nodes to be in tree-order you should call `defaultOrder` on the query. Since root node is not required now, `NestedSet::createRoot` method has been removed. `NestedSet::columns` now doesn't create a foreign key for a `parent_id` column.