diff --git a/gen/generator.go b/gen/generator.go index 9f2aecf56..985a8ff95 100644 --- a/gen/generator.go +++ b/gen/generator.go @@ -1124,7 +1124,7 @@ func (m *Model) SetClassChildren(classDetails interface{}, pkgNames []string) { if key.(string) == "exclude_children" { for _, child := range value.([]interface{}) { if !slices.Contains(childClasses, child.(string)) { - excludeChildClasses = append(childClasses, child.(string)) + excludeChildClasses = append(excludeChildClasses, child.(string)) } } }