Server IP : 66.29.132.124 / Your IP : 52.15.92.58 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/vendor/kalnoy/nestedset/ |
Upload File : |
### 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.