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