Mar 4 2015
- bug fixes
- Fix README.md typos [PR #134 and #131]
- Use table prefixes in
rebuildcommand [PR #133] - Fix
limitDepthquery scope [PR #125]
Mar 3 2015
- enhancements
- Add support for Laravel 5.x, leave a 1.0.x branch for backwards compatibility.
Sep 30 2014
- bug fixes
- Fix node depth recomputation when moving nodes. Closes [#109] & [#106].
- Laravel 5, composer compatibility.
Aug 25 2014
-
bug fixes
- Fix check for
Node->storeNewParent()to avoid moving a node which was already root. Fixes [#79] and closes [#81]. - Several git fixes by @GrahamCampbell [PR #96].
.travis.ymlimprovements by @GrahamCampbell [PR #95].- Rename
isValidstatic method toisValidNestedSetto avoid name clashes with validator packages. Closes [#89]. - Moving to root has been now reimplemented to be more consistent.
- Fix check for
-
enhancements
- Add pessimistic locking into the library. Closes [#89].
- Add
trunksfamily of methods:allTrunks,trunks,getTrunksandisTrunk. Closes [#59]. - Add a
forceoption to therebuildstatic method.
Jul 3 2014
-
bug fixes
- Target Laravel stable version in
composer.jsonfile. Merges [#67]. - Use qualified order column name on
newNestedSetQuerymethod. Merges [#70]. - Cleaned up migration stub. Merges [#84].
- Enforce sorting for
$orderColumnwhen callingtoHierarchy. Merges [#73], fixing [#71].
- Target Laravel stable version in
-
enhancements
- [#77] Add
makeFirstChildOfandmakeLastChildOfhelper methods. - [#62] Implement
limitDepthquery scope to allow query depth limiting for huge descendancy chains. Also allow to pass the depth limit as the first parameter ofgetDescendantsandgetDescendantsAndSelf. - [#67] Should work with Laravel 4.2
- [#68] Implement
buildTree,makeTreemass-assignment (seeding) methods.
- [#77] Add
May 2 2014
-
bug fixes
- Fix inserting a new model with a defined scope. Fixes [#27].
- Static methods now do not take into account scoped column values, which would not make sense.
- Properly set a model's relations when reloading an instance via
reload(). - Fix
getObservableEvents()function to include node'smovingandmovedevents. - Fix
reload()to consider trashed node objects via soft-delete operations. Fixes [#35]. - Preliminar support for soft-delete operations. Should fix [#23].
- Assigning
nullto theparent_idcolumn value and saving the node now performs the same operation asmakeRoot(). Fixes [#54]. - Reimplement
toHierarchyas yielded inconsistent results, even worse with custom sorting of the collection results. Merges [#61], fixes [#63].
-
enhancements
- Implement tree structure validation via
Node::isValid. - Implement tree index rebuilding via
Node::rebuild. Very useful when a tree structure has been messed up or to convert from aparent_idonly table. - Preliminar support for soft-delete operations.
- Allow the user to change the default sorting column name (defaulting to
lft). - Add support for non-numeric keys. Merges & fixes [#52].
- Implement tree structure validation via
Jan 14 2014
-
bug fixes
- [#26] Prevent impossible moves to the left or right. Now moving a node too
further to the left or right raises a
MoveNotPossibleException. Thanks to @ziadoz for spotting this issue and providing a patch.
- [#26] Prevent impossible moves to the left or right. Now moving a node too
further to the left or right raises a
-
enhancenments
- [#5] Implement
toHierarchymethod which returns a nested collection representing the queried tree. Great thanks go to @Surt for his patch on this. - Add a static
allmethod which works as the regularEloquent\Model::allmethod but sorts for thelftcolumn.
- [#5] Implement
Oct 11 2013
- bug fixes
- Properly wrap column names when used inside raw queries.
- Correct examples from README.
July 31 2013
- enhancements
- Implement
withoutNode,withoutRoot,withoutSelfquery scopes. - [#15] Add
Node::getNestedListstatic method thanks to @gerp.
- Implement
July 22 2013
- enhancements
- Implement simple means to implement "scopes" for a Nested Set tree, allowing for multiple trees in the same database table.
July 18 2013
- bug fixes
- Full support for PHP >= 5.3.7. Baum should work if Eloquent works.
July 5th 2013
-
enhanments
- Add support for PHP 5.3 to make Baum match the requirements of Eloquent.
- Improve Postgres friendliness
-
bug fixes
insideSubtreewas inside incorrectly to guard against impossible moves. Fixed.- Due to default ordering by
lftcolumn, Postgres complained when using aggregate methods on queries which had SORT BY clauses. Now those are pruned before running aggregates.
July 3rd 2013
-
enhancements
- Add
immediateDescendants, 'getImmediateDescendants' methods. - Implement a test suite.
- Add
-
bug fixes
- [#8] Add
lftlogic ordering by default to every scope method. Thanks to @dirkpostma for spotting this out. - [#9], [#10] Fix an SQL generation bug when moving root nodes between them. Thanks to @daxborges for providing the fix.
- Fix
getLeftSiblingmethod which was not behaving properly because of the previosly stated bugs.
- [#8] Add
May 7th 2013
-
enhancements
- Add indexes to
parent_id,lft,rgtcolumns by default on generated migration.
- Add indexes to
-
bug fix
- [#1] Fix a bug which caused model events not to fire on subclassed instances
of
Baum\Node.
- [#1] Fix a bug which caused model events not to fire on subclassed instances
of
May 4th 2013
- First release.