0x4a52466c696e74 1 month ago
parent
commit
de1dc192b0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      rest_gorm/preload.go

+ 1 - 0
rest_gorm/preload.go

@@ -22,6 +22,7 @@ func preloadPrefix(obj any, fields rest.FieldList, q *gorm.DB, prefix string) (*
 	}
 	for _, name := range names {
 		if f, check := fields.Field(name.eName); check {
+			log.Println("preload", prefix+name.eName)
 			q = q.Preload(prefix + name.eName)
 			if f.IsObject() {
 				log.Println("is_object:" + prefix + name.eName)