0x4a52466c696e74 1 settimana fa
parent
commit
de1dc192b0
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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)