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

NestedSet Behavior : parent attribute is not updated/reseted after move #416

Open
ComOcean opened this issue Jul 16, 2012 · 0 comments
Open
Labels

Comments

@ComOcean
Copy link

When moving a node using one of the four moveToXXXOf() method, the parent reference of the node is not updated and reseted then when using retrieveParent() or getPath() returns bad informations.

A solution is too add a resetParentRefence() method and call it at the ends of the 4 "move" methods :

public function resetParentRefence() {
$this->hasParentNode = null;
$this->parentNode = null;
}

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

No branches or pull requests

1 participant