Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Association replace panics #7015

Open
SergeiSadov opened this issue May 10, 2024 · 0 comments
Open

Association replace panics #7015

SergeiSadov opened this issue May 10, 2024 · 0 comments
Assignees
Labels
type:with reproduction steps with reproduction steps

Comments

@SergeiSadov
Copy link

GORM Playground Link

go-gorm/playground#734

Description

While replacing associations using non-addressable parameter panic occurs.
Here is an example of such usage from the docs:

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

I've also submitted a PR in order to fix this #7012

@github-actions github-actions bot added the type:with reproduction steps with reproduction steps label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:with reproduction steps with reproduction steps
Projects
None yet
Development

No branches or pull requests

2 participants