These are chat archives for jinzhu/gorm

10th
Mar 2016
Konstantin Ivanov
@logrusorgru
Mar 10 2016 08:37
@jinzhu Hi, I leave a comment on your commit.
Konstantin Ivanov
@logrusorgru
Mar 10 2016 08:55
@jinzhu special thanks for ErrRecordNotFound
Paul Tötterman
@ptman
Mar 10 2016 14:59
@jinzhu so, possible problems
I load a model with related objects (user with groups)
the I change the user and save
it tries to create duplicates of the groups
the groups haven't changed
I could .Omit() the groups, but I didn't have to do that before
but actually it seems like you have already fixed this since yesterday
Paul Tötterman
@ptman
Mar 10 2016 15:07
ok, I have another one
"pq: column "du.id" must appear in the GROUP BY clause or be used in an aggregate function"
this is because of SELECT * FROM table1 JOIN table2 AS du ...
previously I think gorm did SELECT table1.* FROM table1 JOIN table2 AS du ...
@jinzhu any ideas?