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

Why parent_id is mandatory #272

Open giacomomasseron opened 7 years ago

giacomomasseron commented 7 years ago

Hi, I would like to know why the parent_id field in the database is mandatory. The nested set theory does not need it.

I ask cause I have an existing table without that field (but with "root_id" field), and I am not able to use this implementation.