diff --git a/engine.go b/engine.go index f5af6d9d4..93a8d8dac 100644 --- a/engine.go +++ b/engine.go @@ -1108,7 +1108,7 @@ func (engine *Engine) idOfV(rv reflect.Value) (core.PK, error) { } fieldName = parts[1] } - fmt.Println(table.Name, fieldName, v) + pkField := v.FieldByName(fieldName) switch pkField.Kind() { case reflect.String: