go-gorm/gorm

FirstOrCreate doesn't behave as expected

bkmeneguello opened this issue · 0 comments

GORM Playground Link

go-gorm/playground#765

Description

FirstOrCreate doesn't behave like FirstOrInit and as stated in the docs: go-gorm/playground#765

I expect when an attribute is assigned (.Assign) it is set in the returned object.