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

Cannot create multiple tree in the same table by using buildTree #314

Open chao opened 5 years ago

chao commented 5 years ago

In my seeder file I was trying to create multiple tree in same table, but it seems the previous tree will be deleted and only one last tree was created in the table.

emman31 commented 4 years ago

Hi! I ran into the exact same problem after updating BAUM in my project. It seems that the property « $scoped » has been renamed to « $scopeColumnNames » in the model.

I changed it in my model and it solved the problem.