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

Single Table Inheritance and JSON #12

Open
ghost opened this issue Jul 15, 2011 · 0 comments
Open

Single Table Inheritance and JSON #12

ghost opened this issue Jul 15, 2011 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 15, 2011

Hi,
I created an abstract node class (Application_Model_Node) and 3 classes inherit from it.
This works quite well, but when I used JSON, then the method addChild doesn't update all right values.
I tried to debug and found that it has something to do with my Single Table Inheritance.
E.g. if I exchange in the method shiftRLRange of NodeWrapper the line
->update(get_class($this->getNode()), 'n')
by
->update('Application_Model_Node' , 'n')
then it works again.
Is this a bug on NestedSet or is NestedSet not supposed to work with the combination SingleTableInheritance/JSON or can I do something different?
Thanks,
Ben

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

No branches or pull requests

0 participants