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

Ensure hasMany() associations work when properties have mapsTo #679

Merged
merged 2 commits into from
Dec 1, 2015

Conversation

stueynz
Copy link

@stueynz stueynz commented Dec 1, 2015

Another bug fix when using mapsTo on PK properties. We have to adjust PK property names to matching database name (using mapsTo field in property definition) when setting up JOIN for Many association.

Otherwise the ON part of the JOIN clause will have the property name instead of the database field name when doing the select.

@dxg
Copy link
Collaborator

dxg commented Dec 1, 2015

Awesome, thanks!

dxg added a commit that referenced this pull request Dec 1, 2015
Ensure hasMany() associations work when properties have mapsTo
@dxg dxg merged commit 31c9630 into dresende:master Dec 1, 2015
@dxg
Copy link
Collaborator

dxg commented Dec 1, 2015

Released 2.1.28 with this changed.

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.

2 participants