Modification of unset_tenant_relationship

The function was not functionnal