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

[Tree] Tree\Node fails on setParentNode(null) #74

Closed
ErnestoNCarrea opened this issue Nov 5, 2013 · 1 comment
Closed

[Tree] Tree\Node fails on setParentNode(null) #74

ErnestoNCarrea opened this issue Nov 5, 2013 · 1 comment

Comments

@ErnestoNCarrea
Copy link

setChildNodeOf() must check parent node for null, to allow parent-less (root) nodes.

@CharlyPoppins
Copy link

I use this

if (null === $this->getCategorieParente()) {
    $this->setMaterializedPath('/');
} else {
    $this->setChildNodeOf($this->getCategorieParente());
}

setChildNodeOf should take null it will be simplier :)

@Einenlum Einenlum changed the title Tree\Node fails on setParentNode(null) [Tree] Tree\Node fails on setParentNode(null) Sep 14, 2017
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

3 participants