@staticmethod
def _load_relationships(instance):
    """
        Helper method used to overcome a problem where the relationships that rely on joins aren't
        being loaded automatically.
        """
    for rel in instance.__mapper__.relationships:
        getattr(instance, rel.key)
