protected function getRelationData(&$params, array $map = [])
    {
        $operation = $this->model->name;

        if (is_null($this->model->related_data)) {
            return $operation;
        }
        foreach ($this->model->related_data as $relation => $data) {

            if ($relation === 'users') {
                $classname  = get_class(\Antares\Support\Facades\Foundation::make('antares.user'));
                $urlPattern = $this->getUrlPattern($classname);
                $links      = [];
                foreach ($data as $element) {
                    $links[] = $this->link('{id}', $element['id'], $urlPattern, array_get($element, 'firstname') . ' ' . array_get($element, 'lastname'));
                }
                $params[$relation] = implode(', ', $links);
            } elseif ($relation === 'user') {
                continue;
            } elseif (!empty($data)) {
                foreach ($data as $classname => $values) {
                    if (empty($values)) {
                        continue;
                    }
                    if (!class_exists($classname)) {
                        continue;
                    }
                    if (($url = $this->getUrlPattern($classname)) !== '') {
                        $submap    = $this->getReplacementKeys($values);
                        $subValues = array_values($values);
                        $title     = array_get($values, 'name', array_get($values, 'id'));
                        array_set($params, $relation, !$this->urlFillable($url, $map) ? $title : $this->link($submap, $subValues, $url, $title) );
                    } else {
                        $params[$relation] = $this->getTitle(current($data));
                    }
                }
            }
            $operation .= '_' . strtoupper($relation);
        }

        return $operation;
    }