Fix through table attributes not working for createAssociation in n:m. Closes #2155