public function setNodeTypeByKey($id)
    {
        $nodeType = NodeType::findOrFail($id);

        $this->nodeType()->associate($nodeType);

        $this->mailing = $nodeType->isTypeMailing();
    }