{"action":"closed","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/3890","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/3890/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/3890/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/3890/events","html_url":"https://github.com/sequelize/sequelize/issues/3890","id":85866289,"number":3890,"title":"Setting a foreign key field using updateAttributes() method doesn't work","user":{"login":"basco-johnkevin","id":2178576,"avatar_url":"https://avatars.githubusercontent.com/u/2178576?v=3","gravatar_id":"","url":"https://api.github.com/users/basco-johnkevin","html_url":"https://github.com/basco-johnkevin","followers_url":"https://api.github.com/users/basco-johnkevin/followers","following_url":"https://api.github.com/users/basco-johnkevin/following{/other_user}","gists_url":"https://api.github.com/users/basco-johnkevin/gists{/gist_id}","starred_url":"https://api.github.com/users/basco-johnkevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basco-johnkevin/subscriptions","organizations_url":"https://api.github.com/users/basco-johnkevin/orgs","repos_url":"https://api.github.com/users/basco-johnkevin/repos","events_url":"https://api.github.com/users/basco-johnkevin/events{/privacy}","received_events_url":"https://api.github.com/users/basco-johnkevin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-06-07T06:28:20Z","updated_at":"2015-10-12T16:18:38Z","closed_at":"2015-10-12T16:18:37Z","body":"Our Ticket model has a relationship to Mailbox and a relationship to User (as Assignee):\r\n```\r\nModel.belongsTo(models.User, {as: 'Assignee'});\r\nModel.belongsTo(models.Mailbox);\r\n```\r\nUpdating `MailboxId` using updateAttributes() method works but updating `AssigneeId` doesn't work. The weird thing is it works on my local development environment, but doesn't work when I tried it on our staging environment that is deployed in Digital Ocean. We're using Postgresql for both environments.\r\n\r\npackage.json is requiring: `\"sequelize\": \"^2.0.4\"`\r\n\r\npostgresql on local dev env: `PostgreSQL 9.3.5 on x86_64-apple-darwin12.5.0, compiled by Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn), 64-bit`\r\npostgresql on staging: `PostgreSQL 9.3.5 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2, 64-bit`\r\n\r\nLet me know if you guys need more info."}}