code: def get_relationship_key(self, context):
          
          if not self.relationship:
              return context.portal_type + self.getName()
          return self.relationship
docs: Return the configured relationship key or generate a new one