fix can't get some filed
fix can't get some filed
This commit is contained in:
parent
aa45da1542
commit
56356759aa
2
field.go
2
field.go
@ -64,7 +64,7 @@ func (scope *Scope) Fields() map[string]*Field {
|
||||
indirectValue := scope.IndirectValue()
|
||||
isStruct := indirectValue.Kind() == reflect.Struct
|
||||
for _, structField := range modelStruct.StructFields {
|
||||
if field, ok := fields[structField.DBName]; !ok || field.IsIgnored {
|
||||
if field, ok := fields[structField.DBName]; !ok || !field.IsIgnored {
|
||||
if isStruct {
|
||||
fields[structField.DBName] = getField(indirectValue, structField)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user