{"action":"closed","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/5816","repository_url":"https://api.github.com/repos/sequelize/sequelize","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/5816/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/5816/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/5816/events","html_url":"https://github.com/sequelize/sequelize/issues/5816","id":151686129,"number":5816,"title":"Sequelize.define breaks, if there are addition to Object.prototype","user":{"login":"sandeepraheja","id":2988299,"avatar_url":"https://avatars.githubusercontent.com/u/2988299?v=3","gravatar_id":"","url":"https://api.github.com/users/sandeepraheja","html_url":"https://github.com/sandeepraheja","followers_url":"https://api.github.com/users/sandeepraheja/followers","following_url":"https://api.github.com/users/sandeepraheja/following{/other_user}","gists_url":"https://api.github.com/users/sandeepraheja/gists{/gist_id}","starred_url":"https://api.github.com/users/sandeepraheja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandeepraheja/subscriptions","organizations_url":"https://api.github.com/users/sandeepraheja/orgs","repos_url":"https://api.github.com/users/sandeepraheja/repos","events_url":"https://api.github.com/users/sandeepraheja/events{/privacy}","received_events_url":"https://api.github.com/users/sandeepraheja/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-28T16:25:36Z","updated_at":"2016-05-09T17:24:55Z","closed_at":"2016-05-09T17:24:55Z","body":"We are working on a Node application, using Sequelize (3.14.2) with postgres. \r\n\r\nFor the ease of writing, and writing generic code, we have extended on Javascript's Object prototype.\r\n\r\nDoing so breaks the Sequelize's define method, when mapping the rawAttributes in model.js function constructor. \r\nInternally using the lodash's isPlainObject, it breaks on hasOwnProperty.\r\n\r\nAny insight will be helpful?"}}