Releases: franzose/ClosureTable
Releases · franzose/ClosureTable
Fixed hardcoded table column names in the ClosureTable model
Minor tweaks
- Laravel 8 support in tests, thanks to @avvertix
Entity::parent()
many-to-one relationship to the direct ancestor node- Minor tweaks
Fixed regression in the Collection::toTree() method
This is a small release which brings a fix to the regression pointed out by @ritterg.
ClosureTable 6
Improvements
- Fixed a lot of bugs related to positioning and movements between ancestors
- Introduced a bunch of query scopes to ease querying. They allowed to simplify the internals too!
- Introduced some convenient methods to the custom collection in addition to the existing ones
- Fixed bugs in the model and migration generators
- Improved tests and automated Travis CI builds. Many many thanks to @avvertix for the latter!
Deprecations
- Franzose\ClosureTable\Contracts\EntityInteface has been deprecated and will be removed in the next major release
- Franzose\ClosureTable\Contracts\ClosureTableInteface has been deprecated and will be removed in the next major release
- Entity's
real_depth
attribute & database column have been deprecated and are not included in the generated model and migration anymore - The following methods of the Entity model has been deprecated and will be removed in the next major release:
- Entity::getRealDepthColumn()
- Entity::getChildrenRelationIndex()
- Entity::getAncestorsTree()
- Entity::getAncestorsWhere()
- Entity::getDescendantsTree()
- Entity::getDescendantsWhere()
- Entity::hasChildrenRelation()
- Entity::getTree()
- Entity::getTreeByQuery()
- Entity::getTreeWhere()
Other notes
PHP 5.6 support has been dropped. Starting from this release, ClosureTable supports PHP 7.0 and higher.
Fixes and improvements
Compatibility with Laravel 5.5
Thanks to @dcanaud, the package now supports Laravel 5.5.
Minor fix
Laravel 5.4 support
Thanks to @krutuzick pull request, the library now supports Laravel 5.4+.
Rolled back bindings due to PostgreSQL behavior
4.1.4 removed bindings
A fix for raw DB queries
I introduced params binding for raw queries in ClosureTable model.