GORM Playground Link
https://github.com/go-gorm/playground/pull/723
Description
According to https://gorm.io/docs/query.html#Retrieving-objects-with-primary-key
This should work:
var result User
db.Model(User{ID: 10}).First(&result)
// SELECT * FROM users WHERE id = 10;
But instead it ignores the ID in the Model() parameter.
Comment From: zchenyu
Friendly bump, any update here?