sequelize/sequelize — pull request #1923 by LJ1102 (2014-06-18 17:51:02+00:00)
Title: Fixes has-many-dobule-linked join table attribute changes on injected setter

I'm not quite sure how the first version should've worked since the foreign
keys are afaik always prefixed with the table name which results in
mytable.mytable_id.

This commit keeps the old behavior as first try to remain backwards compatible.

Would be nice to see this as well as my other commit in NPM version of sequelize.