tx.Model(&models.User{ID: 1}).Joins("INNER JOIN emails ON user.id = emails.user_id").Update("email_creater", 3)

output : UPDATE `user` SET `email_creater` = 3 INNER JOIN emails ON user.id = emails.user_id WHERE `user`.`id` = '1'

Comment From: gpopovic

any news on this one? :/

Comment From: nuczzz

@kumarsiva07 Hi, you can write code like this maybe ok: tx.Table("user INNER JOIN emails ON user.id = emails.user_id").Where("user.id=?", 1).Update("email_creater", 3)

Comment From: penguinpowernz

@kumarsiva07 / @gpopovic is the solution OK?

Comment From: kumarsiva07

@penguinpowernz I think we have to fix that. Because update with join should have join first.

Comment From: jchavannes

Here's another commit that adds UPDATE with JOIN support. https://github.com/jchavannes/gorm/commit/6e209826f9bdecd9f2f5ec04c25a01b8665748a5

Comment From: th0th

Does anybody know what the status is with this one?