{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/4804","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/4804/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/4804/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/4804/events","html_url":"https://github.com/sequelize/sequelize/issues/4804","id":115008196,"number":4804,"title":"Create with ascociation fails if ascociated table name ends with 'Data'","user":{"login":"DPM1","id":15609480,"avatar_url":"https://avatars.githubusercontent.com/u/15609480?v=3","gravatar_id":"","url":"https://api.github.com/users/DPM1","html_url":"https://github.com/DPM1","followers_url":"https://api.github.com/users/DPM1/followers","following_url":"https://api.github.com/users/DPM1/following{/other_user}","gists_url":"https://api.github.com/users/DPM1/gists{/gist_id}","starred_url":"https://api.github.com/users/DPM1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DPM1/subscriptions","organizations_url":"https://api.github.com/users/DPM1/orgs","repos_url":"https://api.github.com/users/DPM1/repos","events_url":"https://api.github.com/users/DPM1/events{/privacy}","received_events_url":"https://api.github.com/users/DPM1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sequelize/sequelize/labels/bug","name":"bug","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-04T09:23:48Z","updated_at":"2015-11-04T10:14:48Z","closed_at":null,"body":"This works fine and enters the row into the User table:\r\n\r\n       var Product = sequelize.define('Product', {\r\n            title: Sequelize.STRING\r\n        });\r\n        var User = sequelize.define('User', {\r\n            first_name: Sequelize.STRING,\r\n            last_name: Sequelize.STRING\r\n        });\r\n        Product.hasOne(User, {\r\n            foreignKey: 'TestJoinID'\r\n        });\r\n        sequelize.sync().then(function () {\r\n            return Product.create({\r\n                title: 'Chair',\r\n                User: {\r\n                    first_name: 'Mick',\r\n                    last_name: 'Broadstone'\r\n                }\r\n            }, {\r\n                include: [User]\r\n            })\r\n        })\r\n\r\n\r\nBut this does not enter the row into the UserData table:\r\n\r\n        var Product = sequelize.define('Product', {\r\n            title: Sequelize.STRING\r\n        });\r\n        var UserData = sequelize.define('UserData', {\r\n            first_name: Sequelize.STRING,\r\n            last_name: Sequelize.STRING\r\n        });\r\n        Product.hasOne(UserData, {\r\n            foreignKey: 'TestJoinID'\r\n        });\r\n        sequelize.sync().then(function () {\r\n            return Product.create({\r\n                title: 'Chair',\r\n                UserData: {\r\n                    first_name: 'Mick',\r\n                    last_name: 'Broadstone'\r\n                }\r\n            }, {\r\n                include: [UserData]\r\n            })\r\n        })\r\n\r\n\r\nIf this is already documented. Then I apologize, I didn't see it, maybe you could link it here for anyone who has this problem. "},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/153671056","html_url":"https://github.com/sequelize/sequelize/issues/4804#issuecomment-153671056","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/4804","id":153671056,"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-11-04T10:14:48Z","updated_at":"2015-11-04T10:14:48Z","body":"Oh yeah that must be it, Data is plural, Datum is the singular form of Data, although no one actually uses Datum :P"}}