Pass both column and type to fetchRelationshipId and changed indexing of relationships to use column name instead of type.