{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/3356","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/3356/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/3356/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/3356/events","html_url":"https://github.com/sequelize/sequelize/issues/3356","id":62028797,"number":3356,"title":"bulkCreate validate and individualHooks malfunction","user":{"login":"manmar92","id":3532163,"avatar_url":"https://avatars.githubusercontent.com/u/3532163?v=3","gravatar_id":"","url":"https://api.github.com/users/manmar92","html_url":"https://github.com/manmar92","followers_url":"https://api.github.com/users/manmar92/followers","following_url":"https://api.github.com/users/manmar92/following{/other_user}","gists_url":"https://api.github.com/users/manmar92/gists{/gist_id}","starred_url":"https://api.github.com/users/manmar92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manmar92/subscriptions","organizations_url":"https://api.github.com/users/manmar92/orgs","repos_url":"https://api.github.com/users/manmar92/repos","events_url":"https://api.github.com/users/manmar92/events{/privacy}","received_events_url":"https://api.github.com/users/manmar92/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":3,"created_at":"2015-03-16T09:50:06Z","updated_at":"2015-03-18T13:14:47Z","closed_at":null,"body":"Using the latest version of sequelize and postgreSQL\r\n```\r\nmodels.User.bulkCreate(mtxes, {\r\n\tvalidate: true,\r\n\tindividualHooks: true\r\n})\r\n.then(function() {          \r\n\tres.redirect('/users');\r\n})\r\n.catch(function(errors) {\r\n\tconsole.log(errors);\r\n})\r\n```\r\nIf the validation fails, console.log(errors) is like: \r\n\r\n```\r\n{ [SequelizeValidationError: Validation error]\r\n\t  name: 'SequelizeValidationError',\r\n\t  message: 'Validation error',\r\n\t  errors: [Object] }\r\n```\r\nInstead of the expected:\r\n\r\n```\r\n[\r\n    { record: \r\n    ... \r\n    errors: \r\n      { name: 'SequelizeValidationError',\r\n        message: 'Validation error',\r\n        errors: [Object] } },\r\n    { record: \r\n      ...\r\n      errors: \r\n        { name: 'SequelizeValidationError',\r\n        message: 'Validation error',\r\n        errors: [Object] } } \r\n  ]  \r\n```\r\nAfter looking into the code, I think the error is located in https://github.com/sequelize/sequelize/blob/master/lib/model.js#L1354 and the way it handles validation hooks. "},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/82965018","html_url":"https://github.com/sequelize/sequelize/issues/3356#issuecomment-82965018","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/3356","id":82965018,"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-03-18T13:14:47Z","updated_at":"2015-03-18T13:14:47Z","body":"@janmeier might want @thanpolas to weigh in here, afaik there should only be a single error object containing multiple errors as properties."}}