{"action":"created","issue":{"url":"https://api.github.com/repos/esbanarango/ember-model-validator/issues/11","labels_url":"https://api.github.com/repos/esbanarango/ember-model-validator/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/esbanarango/ember-model-validator/issues/11/comments","events_url":"https://api.github.com/repos/esbanarango/ember-model-validator/issues/11/events","html_url":"https://github.com/esbanarango/ember-model-validator/issues/11","id":90732059,"number":11,"title":"ember model validator breaks on ember-data 1.0.0-beta.19.1","user":{"login":"sescobb27","id":1157892,"avatar_url":"https://avatars.githubusercontent.com/u/1157892?v=3","gravatar_id":"","url":"https://api.github.com/users/sescobb27","html_url":"https://github.com/sescobb27","followers_url":"https://api.github.com/users/sescobb27/followers","following_url":"https://api.github.com/users/sescobb27/following{/other_user}","gists_url":"https://api.github.com/users/sescobb27/gists{/gist_id}","starred_url":"https://api.github.com/users/sescobb27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sescobb27/subscriptions","organizations_url":"https://api.github.com/users/sescobb27/orgs","repos_url":"https://api.github.com/users/sescobb27/repos","events_url":"https://api.github.com/users/sescobb27/events{/privacy}","received_events_url":"https://api.github.com/users/sescobb27/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/esbanarango/ember-model-validator/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"esbanarango","id":1156865,"avatar_url":"https://avatars.githubusercontent.com/u/1156865?v=3","gravatar_id":"","url":"https://api.github.com/users/esbanarango","html_url":"https://github.com/esbanarango","followers_url":"https://api.github.com/users/esbanarango/followers","following_url":"https://api.github.com/users/esbanarango/following{/other_user}","gists_url":"https://api.github.com/users/esbanarango/gists{/gist_id}","starred_url":"https://api.github.com/users/esbanarango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esbanarango/subscriptions","organizations_url":"https://api.github.com/users/esbanarango/orgs","repos_url":"https://api.github.com/users/esbanarango/repos","events_url":"https://api.github.com/users/esbanarango/events{/privacy}","received_events_url":"https://api.github.com/users/esbanarango/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-06-24T16:55:29Z","updated_at":"2015-07-29T14:29:11Z","closed_at":null,"body":"in `store.recordWasInvalid(this, errors);` throws an error `Uncaught TypeError: internalModel.adapterDidInvalidate is not a function`.\r\n\r\nreading the source code of ember-data I found this\r\n\r\n```js\r\n// ===== InternalModel\r\n// FOR USE DURING COMMIT PROCESS\r\n/**\r\n  @method adapterDidInvalidate\r\n  @private\r\n*/\r\nadapterDidInvalidate: function (errors) {\r\n  var recordErrors = this.getErrors();\r\n  ember$data$lib$system$model$internal$model$$forEach.call(Ember.keys(errors), function (key) {\r\n    recordErrors.add(key, errors[key]);\r\n  });\r\n  this._saveWasRejected();\r\n}\r\n// ===== InternalModel\r\n\r\n/**\r\n  This method is called once the promise returned by an\r\n  adapter's `createRecord`, `updateRecord` or `deleteRecord`\r\n  is rejected with a `DS.InvalidError`.\r\n   @method recordWasInvalid\r\n  @private\r\n  @param {InternalModel} internalModel\r\n  @param {Object} errors\r\n*/\r\nrecordWasInvalid: function (internalModel, errors) {\r\n  internalModel.adapterDidInvalidate(errors);\r\n}\r\n```\r\n\r\nI think you should not call that method manually, instead make something like this:  https://github.com/dockyard/ember-validations/blob/master/addon/validators/local/inclusion.js#L23\r\n"},"comment":{"url":"https://api.github.com/repos/esbanarango/ember-model-validator/issues/comments/125969873","html_url":"https://github.com/esbanarango/ember-model-validator/issues/11#issuecomment-125969873","issue_url":"https://api.github.com/repos/esbanarango/ember-model-validator/issues/11","id":125969873,"user":{"login":"esbanarango","id":1156865,"avatar_url":"https://avatars.githubusercontent.com/u/1156865?v=3","gravatar_id":"","url":"https://api.github.com/users/esbanarango","html_url":"https://github.com/esbanarango","followers_url":"https://api.github.com/users/esbanarango/followers","following_url":"https://api.github.com/users/esbanarango/following{/other_user}","gists_url":"https://api.github.com/users/esbanarango/gists{/gist_id}","starred_url":"https://api.github.com/users/esbanarango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esbanarango/subscriptions","organizations_url":"https://api.github.com/users/esbanarango/orgs","repos_url":"https://api.github.com/users/esbanarango/repos","events_url":"https://api.github.com/users/esbanarango/events{/privacy}","received_events_url":"https://api.github.com/users/esbanarango/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T14:29:11Z","updated_at":"2015-07-29T14:29:11Z","body":"@sescobb27 Could you confirm it pls. Thank you!"}}