etrepat / baum

Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.
http://etrepat.com/baum
MIT License
2.24k stars 460 forks source link

Could not resolve target node #207

Closed amin101 closed 8 years ago

amin101 commented 8 years ago

This error occur once trying to usebuildTree() on an array containing nodes have parent_id => null ERROR:
MoveNotPossibleException in Move.php line 208: Could not resolve target node. PS:it seems its because of null value being converted to empty string '' when sending data through json. need to check value , and if it is '' change it to null