SetColumn No fields ignored were processed
This commit is contained in:
parent
836fb2c19d
commit
1bf0644c4f
2
scope.go
2
scope.go
@ -225,7 +225,7 @@ func (scope *Scope) SetColumn(column interface{}, value interface{}) error {
|
|||||||
updateAttrs[field.DBName] = value
|
updateAttrs[field.DBName] = value
|
||||||
return field.Set(value)
|
return field.Set(value)
|
||||||
}
|
}
|
||||||
if (field.DBName == dbName) || (field.Name == name && mostMatchedField == nil) {
|
if !field.IsIgnored && ((field.DBName == dbName) || (field.Name == name && mostMatchedField == nil)) {
|
||||||
mostMatchedField = field
|
mostMatchedField = field
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user