/** * Set the parent node of this node (Only in memory) * * @param self $parent * @return self */ public function setParent(Node $parent) { $this->relations['parent'] = $parent; $parent->addChild($this); return $this; }