go-gorm / playground

GORM Playground (Please Create PR for this project to report issues)
MIT License
91 stars 697 forks source link

Panic on associations replace #734

Closed SergeiSadov closed 5 months ago

SergeiSadov commented 6 months ago

Explain your user case and expected results

While replacing associations using an example from the docs panic occurs.

db.Model(&user).Association("Languages").Replace(Language{Name: "DE"}, languageEN)