protected function fetchRelationId($factoryName, $relationshipName, array $attributes)
    {
        $attributes = $this->extractRelationshipAttributes($relationshipName, $attributes);
        $relationKey = $this->persist($factoryName, $attributes)->getKey();

        return $relationKey;
    }