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

Open
ComOcean opened this Issue Jul 16, 2012 · 0 comments

Projects

None yet

1 participant

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