forked from mirror/gorm
commit
3c28ceea66
|
@ -70,7 +70,7 @@ func Preload(scope *Scope) {
|
||||||
if value.Kind() == reflect.Slice && value.Type().Elem().Kind() == reflect.Interface {
|
if value.Kind() == reflect.Slice && value.Type().Elem().Kind() == reflect.Interface {
|
||||||
value = value.Index(0).Elem()
|
value = value.Index(0).Elem()
|
||||||
}
|
}
|
||||||
scope.Err(fmt.Errorf("can't found field %s in %s", key, value.Type()))
|
scope.Err(fmt.Errorf("can't find field %s in %s", key, value.Type()))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue