public function add($name, ItemInterface $item)
    {
        if (isset($this->relationships[$name]) === false) {
            $this->relationships[$name] = [];
        }

        unset($this->relationships[$name][$item->getId()]);

        $this->relationships[$name][$item->getId()] = $item;
    }