Skip to content

Conversation

cengizonkal
Copy link

if (is_null($node->getParentId())) {   //parent_id can be zero 
    $node->setRelation('parent', null);
}

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

Successfully merging this pull request may close these issues.

1 participant