Fix through table attributes not working for createAssociation in n:m. Closes #2155
Merge remote-tracking branch 'upstream/master'