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

Question: How to make an existing record a node #177

Closed lriggle-strib closed 9 years ago

lriggle-strib commented 9 years ago

I'm looking at applying a nested set structure to an already existing data set and I was wondering how to use your tool to update existing records to make them nodes. All I'm seeing in the documentation is how to create new nodes, not adding a node from an existing record.

andreshg112 commented 5 years ago

Hi, @lriggle-strib! Did you find a solution? I'm trying to do the same because It triggers an error. https://github.com/etrepat/baum/issues/294

lriggle-strib commented 5 years ago

@andreshg112 Honestly, I don't remember. I don't think I did and switched to using a different package.

andreshg112 commented 5 years ago

@lriggle-strib , maybe this https://github.com/lazychaser/laravel-nestedset?

andreshg112 commented 5 years ago

Yes, this package has a related function. https://github.com/lazychaser/laravel-nestedset#migrating-from-basic-parentage-info