Skip to content
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

Mongodb support #16

Open
nguago opened this issue Apr 17, 2015 · 5 comments
Open

Mongodb support #16

nguago opened this issue Apr 17, 2015 · 5 comments

Comments

@nguago
Copy link

nguago commented Apr 17, 2015

Hi,

I think Tree should support MongoDB. I see you use creocoder/yii2-nested-sets. If you do not have the version of MongoDB, you can use this https://github.com/letyii/yii2-mongo-nested-set


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@skworden
Copy link

+1 for supporting this!

@kartik-v
Copy link
Owner

kartik-v commented May 4, 2015

Would prefer one extension to manage this... for maintainability. Ideally check if @creocoder can include this functionality.

Alternatively if that's not possible - an extension which extends creocoder's nested set will be preferred. Most of the code inside will break if the extension is not consistent with creocoder's nested set.

@nguago
Copy link
Author

nguago commented May 4, 2015

All functions are to convert from creocoder's nested set. Why not try?

@kartik-v
Copy link
Owner

kartik-v commented May 4, 2015

The extension does not extend creocoder's NestedSetBehavior and is copied and modified. While it may work now... but with future updates to creocoder's extension ... the tree manager code may break and needs to be consistently maintained for two different extension versions.

Hence its better to maintain one code base OR use yii's recommended method of extending classes - so that the core class behavior is maintained. Pinging @creocoder to comment if this functionality can be included.

@creocoder
Copy link

I'll consider to add mongo db support to extension, but can't promise it can be done fast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants