#6627: Handling case when rel is between same structures
Merge pull request #6639 from dotCMS/issue-6627-relationships

#6627: Handling case when rel is between same structures