-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can it run alongside laravel-nestedset? #113
Comments
Hi @sawirricardo, |
yes, |
and I think should not the columns be in 1 table though? haven't seen structures which has lft/rgt and parent_id in different places 🤔 |
I didn't mean in comparison to having the columns in multiple tables, but I wanted to confirm that you want to have the columns for both packages at the same time. It sounds quite cumbersome to always keep two sets of hierarchies up-to-date and in sync.
You should be able to solve the conflicts with method aliases: |
I just looked at the actual conflicts: You can solve the conflicts for methods like |
Does |
the motivation behind me is the uncertain to pick exactly 1 package between these two, hence the thinking to why not use both, but if it isn't possible, that's okay. Do you have any situation say... when you will pick this package rather than nested set? or vice versa? |
Unfortunately, you would have to spend some time to make that work.
I'm biased, of course, but for me the big advantage of this package is that you can use the "native" table structure for hierarchies that only requires a |
Great to hear that... I've implemented in this package https://github.com/sawirricardo/indonesia-region to simplify the usage for recursive elements |
Yes, advantage of this package: it doesn't need to build left / right positions every time so tree can't be broken on parallel update / inserts. |
Hi, great package, really love it.
I was thinking maybe we can try to make this package co-existable with current nested-set? Since it has some features I would love to use that doesn't require nested set, but didn't want to leave the nested set too.
https://github.com/lazychaser/laravel-nestedset
currently, if we just install this, it will have conflicting methods such as parents and children relationship...
The text was updated successfully, but these errors were encountered: