public function getGrouped()
    {
        $types = [];
        $elements = $this->toArray();
        /** @var Entity\Relations $element */
        foreach ($elements as $element) {
            $type = $element->get('to_contenttype');
            $types[$type][] = $element;
        }

        return $types;
    }