Closed fzyzcjy closed 7 years ago
Any help?? Thanks!!
i have same problem
@egitimplus have you solved it
@turtlegood not yet. this problem is new for me. i didnt see it before. i think some packages has cause that.
For now, i call manually rebuild() if lft / right/ depth is null.
Finally I used another library: laravel-nestedset and it works well. By the way, baum has another issue: there will be deadlocks sometimes.
When I use
create
or other methods, the lft/rgt/depth of the newly created node is always null, but the parent_id and so on are very normal. Then if I usegetDescendantsAndSelf
and so on, I will get an exception because of the null columns. Only if I userebuild()
will all the nodes have not-null normal values. But then if Icreate()
a new node the columns of it are still null. Looking forward to your reply!