Closed scgkiran closed 1 year ago
Is below test code expected to work?
result := TestDb.WithContext(ctx).Model(&TestEntity{}).Where("id = ?", "A1").Delete(&entity) assert.NoError(t, err) assert.Equal(t, int64(1), result.RowsAffected)
func (HasTenant) DeleteClauses(f *schema.Field) []clause.Interface { return []clause.Interface{HasTenantQueryClause{Field: f}} }
Is below test code expected to work?