-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from lazychaser/develop
Version 2.0
- Loading branch information
Showing
9 changed files
with
1,460 additions
and
732 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
### 2.0.0 | ||
|
||
* Added `insertAfter`, `insertBefore` methods. | ||
* `prepend` and `append` methods now save target model. | ||
* You can now call `refreshNode` to make sure that node has updated structural | ||
data (lft and rgt values). | ||
* The root node is not required now. You can use `saveAsRoot` or `makeRoot` method. | ||
New model is saved as root by default. | ||
* You can now create as many nodes and in any order as you want within single | ||
request. | ||
* Laravel 2 is supported but not required. | ||
* `ancestorsOf` now doesn't include target node into results. | ||
* New constraint methods `hasParent` and `hasChildren`. | ||
* New method `isDescendantOf` that checks if node is a descendant of other node. | ||
* Default order is not applied by default. | ||
* New method `descendantsOf` that allows to get descendants by id of the node. | ||
* Added `countErrors` and `isBroken` methods to check whether the tree is broken. | ||
* `NestedSet::createRoot` has been removed. | ||
* `NestedSet::column` doesn't create a foreign key anymore. | ||
|
||
### 1.1.0 | ||
|
||
* `Collection::toDictionary` is now obsolete. Use `Collection::groupBy`. | ||
* Laravel 4.2 is required |
Oops, something went wrong.