{"action":"created","issue":{"url":"https://api.github.com/repos/esbanarango/ember-model-validator/issues/7","labels_url":"https://api.github.com/repos/esbanarango/ember-model-validator/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/esbanarango/ember-model-validator/issues/7/comments","events_url":"https://api.github.com/repos/esbanarango/ember-model-validator/issues/7/events","html_url":"https://github.com/esbanarango/ember-model-validator/issues/7","id":87835044,"number":7,"title":"Doesn't validate belongsTo async relation","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/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/esbanarango/ember-model-validator/labels/question","name":"question","color":"cc317c"}],"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":3,"created_at":"2015-06-12T20:02:59Z","updated_at":"2015-06-16T17:26:17Z","closed_at":null,"body":"I have the following model\r\n\r\n```js\r\nimport DS from 'ember-data';\r\nimport Validator from '../mixins/model-validator';\r\n\r\nvar attr = DS.attr;\r\n\r\nexport default DS.Model.extend(Validator, {\r\n  plan: DS.belongsTo('plan', {async: true}),\r\n  validations: {\r\n    plan: {\r\n      presence: {\r\n        message: 'Please select a plan'\r\n      }\r\n    }\r\n  }\r\n});\r\n```\r\nThen when I'm trying to validate a model trying to test the behavior when the validation fail, the validation pass, but if I delete the `{async: true}` the validations doesn't pass (as expected)"},"comment":{"url":"https://api.github.com/repos/esbanarango/ember-model-validator/issues/comments/112505017","html_url":"https://github.com/esbanarango/ember-model-validator/issues/7#issuecomment-112505017","issue_url":"https://api.github.com/repos/esbanarango/ember-model-validator/issues/7","id":112505017,"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},"created_at":"2015-06-16T17:26:17Z","updated_at":"2015-06-16T17:26:17Z","body":"not yet, I just remove the `{async: true}` to make it work, the object isn't that big to make it async"}}