Skip to content

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