{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/4642","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/4642/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/4642/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/4642/events","html_url":"https://github.com/sequelize/sequelize/issues/4642","id":111105779,"number":4642,"title":"Belongs-To-Many \"add\" method with similar column names","user":{"login":"sitbackmedia","id":2423961,"avatar_url":"https://avatars.githubusercontent.com/u/2423961?v=3","gravatar_id":"","url":"https://api.github.com/users/sitbackmedia","html_url":"https://github.com/sitbackmedia","followers_url":"https://api.github.com/users/sitbackmedia/followers","following_url":"https://api.github.com/users/sitbackmedia/following{/other_user}","gists_url":"https://api.github.com/users/sitbackmedia/gists{/gist_id}","starred_url":"https://api.github.com/users/sitbackmedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitbackmedia/subscriptions","organizations_url":"https://api.github.com/users/sitbackmedia/orgs","repos_url":"https://api.github.com/users/sitbackmedia/repos","events_url":"https://api.github.com/users/sitbackmedia/events{/privacy}","received_events_url":"https://api.github.com/users/sitbackmedia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-13T05:15:17Z","updated_at":"2015-10-13T07:16:37Z","closed_at":"2015-10-13T07:16:37Z","body":"So I have three models, just to keep it simple\r\n\r\nUser {\r\nid,\r\nusername\r\n}\r\n\r\nSocial {\r\nid,\r\ntitle,\r\norder\r\n}\r\n\r\nSocialUser {\r\nuserId,\r\nSocialId,\r\nstatus,\r\norder\r\n}\r\n\r\nWhen I try this I get no errors:\r\ndb.Social.addUser(db.user, {\r\nstatus: active\r\n});\r\n\r\nBut when I add \"order\", which is a column in both the Social table and SocialUser table, I get errors.\r\ndb.Social.addUser(db.user, {\r\nstatus: active,\r\norder: 1\r\n});\r\n\r\nHow to update a join table with similar columns as it's parent tables?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/147626900","html_url":"https://github.com/sequelize/sequelize/issues/4642#issuecomment-147626900","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/4642","id":147626900,"user":{"login":"mickhansen","id":699049,"avatar_url":"https://avatars.githubusercontent.com/u/699049?v=3","gravatar_id":"","url":"https://api.github.com/users/mickhansen","html_url":"https://github.com/mickhansen","followers_url":"https://api.github.com/users/mickhansen/followers","following_url":"https://api.github.com/users/mickhansen/following{/other_user}","gists_url":"https://api.github.com/users/mickhansen/gists{/gist_id}","starred_url":"https://api.github.com/users/mickhansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickhansen/subscriptions","organizations_url":"https://api.github.com/users/mickhansen/orgs","repos_url":"https://api.github.com/users/mickhansen/repos","events_url":"https://api.github.com/users/mickhansen/events{/privacy}","received_events_url":"https://api.github.com/users/mickhansen/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T07:16:37Z","updated_at":"2015-10-13T07:16:37Z","body":"See https://github.com/sequelize/sequelize/issues/4597"}}