how preload a full hierarchy in GO using GORM
问题 I have a hierachy composed by several structures type Entry struct { Id int CreatedAt time.Time UpdatedAt time.Time Fields []Field } type SyncField struct { Id int CreatedAt time.Time UpdatedAt time.Time TechnicalName string JsonName string EntryId int Decorators []Decorator } type Decorator struct { Id int CreatedAt time.Time UpdatedAt time.Time Name string Description string SortingOrder int Params string SyncFieldId int } My DB creation is definded like this : db.CreateTable(&Entry{}) db