public function executePendingLinkage()
    {
        foreach ($this->pendingLinks as $item) {
            /** @var ShareOneOrMany $rel */
            $rel = $item['relation'];
            if ($item['link']) {
                $rel->link($this, $item['entity']);
            } else {
                $rel->unlink($this, $item['entity']);
            }
        }

        $this->pendingLinks = [];
    }