Create related connections only for connections between entities of the same class