How to populate and embedded array with gorm?
Clash Royale CLAN TAG #URR8PPP How to populate and embedded array with gorm? I have 2 structs with data like this: type User struct { Pics Pic } type Pic struct { Id int UserId int64 } Although everytime I insert an User, Each of the pics are inserted on their table everytime I find the users, pics are not populated: var users User db.Limit(pagesize).Where("updated_at > ?", date).Find(&users) Am I doing something wrong? I have no experience with gorm, but does your query return the pic data? – Justin Wood Mar 11 '15 at 20:24 no, that's the problem, it doesn't return anything on the array – Javier Manzano Mar 12 '15 at 12:11 ...