diff --git a/scope.go b/scope.go index ca861d8a..4237e0ec 100644 --- a/scope.go +++ b/scope.go @@ -112,6 +112,9 @@ func (scope *Scope) Fields() []*Field { ) for _, structField := range scope.GetModelStruct().StructFields { + if structField.IsIgnored { + continue + } if isStruct { fieldValue := indirectScopeValue for _, name := range structField.Names {