public function setParent(INabuDataObjectTreeNode $parent)
    {
        $this->nb_tree_parent = $parent;

        if ($parent instanceof CNabuDataObject &&
            method_exists($parent, 'getId') &&
            $this instanceof CNabuDataObject &&
            method_exists($this, 'setParentId')
        ) {
            $this->setParentId($parent->getId());
        }

        return $this;
    }