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

Load correct has_one association with lazy loading #581

Conversation

matthewmcgarvey
Copy link
Member

The code was still depending on the query being mutated instead of immutable so it was always loading the first association in the database. This only affected code that was using lazy loading (by enabling it or using the bang methods).

@matthewmcgarvey matthewmcgarvey force-pushed the bug/has-one-lazy-loading branch from 23921a1 to 5abdc8a Compare December 29, 2020 22:27
Copy link
Member

@jwoertink jwoertink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

@matthewmcgarvey matthewmcgarvey merged commit 3ff7b13 into luckyframework:master Dec 29, 2020
@matthewmcgarvey matthewmcgarvey deleted the bug/has-one-lazy-loading branch December 29, 2020 22:35
jwoertink added a commit that referenced this pull request Dec 29, 2020
jwoertink added a commit that referenced this pull request Dec 30, 2020
Patching #581. Bumping versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants