{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/4670","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/4670/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/4670/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/4670/events","html_url":"https://github.com/sequelize/sequelize/issues/4670","id":111926540,"number":4670,"title":"Bug?! Model name ending with 'ta' changes to 'tum' on findAll","user":{"login":"Rodrigojorge","id":2468366,"avatar_url":"https://avatars.githubusercontent.com/u/2468366?v=3","gravatar_id":"","url":"https://api.github.com/users/Rodrigojorge","html_url":"https://github.com/Rodrigojorge","followers_url":"https://api.github.com/users/Rodrigojorge/followers","following_url":"https://api.github.com/users/Rodrigojorge/following{/other_user}","gists_url":"https://api.github.com/users/Rodrigojorge/gists{/gist_id}","starred_url":"https://api.github.com/users/Rodrigojorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rodrigojorge/subscriptions","organizations_url":"https://api.github.com/users/Rodrigojorge/orgs","repos_url":"https://api.github.com/users/Rodrigojorge/repos","events_url":"https://api.github.com/users/Rodrigojorge/events{/privacy}","received_events_url":"https://api.github.com/users/Rodrigojorge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-16T22:59:48Z","updated_at":"2015-10-17T13:37:29Z","closed_at":null,"body":"I have a model named 'motorista' , like this:\r\n\r\n  var Motorista = sequelize.define('motorista', {\r\n    matricula: {\r\n      type: DataTypes.STRING,\r\n      primaryKey: true,\r\n      field: 'MATRICULA',\r\n.....\r\n\r\nand it is associated with another called 'movimentacao'\r\n\r\nassociate: function (models) {\r\n        Movimentacao.belongsTo(models.motorista, {\r\n          foreignKey: {\r\n            type: DataTypes.STRING,\r\n            field: 'MATRICULA_MOTORISTA',\r\n            name: 'matriculaMotorista'\r\n          }\r\n        })\r\n\r\nI can 'CRUD' the model 'motorista' normally, but when I execute a findAll from movimentacao, like this:\r\n\r\n  model.movimentacao.findAll({\r\n      include: [\r\n        {model: model.motorista},\r\n\r\nthe result changes the name to motorist**um** , i can´t even set an alias !\r\n\r\nIf i name it motorista**r**  or motorista**ra** it isn´t changed \r\nIf I name it **M**otorista or or motorist**t**a IT IS CHANGED\r\nIf i change my other model name 'solicitante' to 'solicitant**a** IT CHANGES TO solicitant**um** too\r\n\r\nthe sufix 'ta' changes to 'tum' ?!?!?!?!\r\n\r\nBug? Any idea? \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/148916719","html_url":"https://github.com/sequelize/sequelize/issues/4670#issuecomment-148916719","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/4670","id":148916719,"user":{"login":"Rodrigojorge","id":2468366,"avatar_url":"https://avatars.githubusercontent.com/u/2468366?v=3","gravatar_id":"","url":"https://api.github.com/users/Rodrigojorge","html_url":"https://github.com/Rodrigojorge","followers_url":"https://api.github.com/users/Rodrigojorge/followers","following_url":"https://api.github.com/users/Rodrigojorge/following{/other_user}","gists_url":"https://api.github.com/users/Rodrigojorge/gists{/gist_id}","starred_url":"https://api.github.com/users/Rodrigojorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rodrigojorge/subscriptions","organizations_url":"https://api.github.com/users/Rodrigojorge/orgs","repos_url":"https://api.github.com/users/Rodrigojorge/repos","events_url":"https://api.github.com/users/Rodrigojorge/events{/privacy}","received_events_url":"https://api.github.com/users/Rodrigojorge/received_events","type":"User","site_admin":false},"created_at":"2015-10-17T13:37:29Z","updated_at":"2015-10-17T13:37:29Z","body":"Only to clear again, the as was on the include... I have never put it on the association "}}