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

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

        return $relationKey;
    }
protected function fetchRelationId ( $ factoryName , $ relationshipName , array $ attributes ) { $ attributes = $ this -> extractRelationshipAttributes ( $ relationshipName , $ attributes ) ; $ relationKey = $ this -> persist ( $ factoryName , $ attributes ) -> getKey ( ) ; return $ relationKey ; }
Get the ID for the relationship.

@param  string $factoryName
@param  string $relationshipName
@param  array  $attributes
@return int
Get the ID for the relationship .