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 459 forks source link

Not working function with soft delete items #328

Open volkov-kitactive opened 4 years ago

volkov-kitactive commented 4 years ago

Hi, please help me with my problem. In my project, I have a tablet that uses soft deletion and etrepat/baum. If the element is deleted and I unload the element with withTrashed and use a function for example getRoot(), then it returns null. How to solve this problem.

catalinux commented 4 years ago

Try rebuild(true) on that modeul after unload action