{"action":"created","issue":{"url":"https://api.github.com/repos/js-data/js-data/issues/269","labels_url":"https://api.github.com/repos/js-data/js-data/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/js-data/js-data/issues/269/comments","events_url":"https://api.github.com/repos/js-data/js-data/issues/269/events","html_url":"https://github.com/js-data/js-data/issues/269","id":116749732,"number":269,"title":"'revert' method breaks relations (>= 2.8.1) ","user":{"login":"emgolubev","id":136785,"avatar_url":"https://avatars.githubusercontent.com/u/136785?v=3","gravatar_id":"","url":"https://api.github.com/users/emgolubev","html_url":"https://github.com/emgolubev","followers_url":"https://api.github.com/users/emgolubev/followers","following_url":"https://api.github.com/users/emgolubev/following{/other_user}","gists_url":"https://api.github.com/users/emgolubev/gists{/gist_id}","starred_url":"https://api.github.com/users/emgolubev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgolubev/subscriptions","organizations_url":"https://api.github.com/users/emgolubev/orgs","repos_url":"https://api.github.com/users/emgolubev/repos","events_url":"https://api.github.com/users/emgolubev/events{/privacy}","received_events_url":"https://api.github.com/users/emgolubev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-13T11:19:44Z","updated_at":"2015-11-13T14:05:51Z","closed_at":null,"body":"It seems happens because of option 'replace' in inject method."},"comment":{"url":"https://api.github.com/repos/js-data/js-data/issues/comments/156439984","html_url":"https://github.com/js-data/js-data/issues/269#issuecomment-156439984","issue_url":"https://api.github.com/repos/js-data/js-data/issues/269","id":156439984,"user":{"login":"davincho","id":2635143,"avatar_url":"https://avatars.githubusercontent.com/u/2635143?v=3","gravatar_id":"","url":"https://api.github.com/users/davincho","html_url":"https://github.com/davincho","followers_url":"https://api.github.com/users/davincho/followers","following_url":"https://api.github.com/users/davincho/following{/other_user}","gists_url":"https://api.github.com/users/davincho/gists{/gist_id}","starred_url":"https://api.github.com/users/davincho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davincho/subscriptions","organizations_url":"https://api.github.com/users/davincho/orgs","repos_url":"https://api.github.com/users/davincho/repos","events_url":"https://api.github.com/users/davincho/events{/privacy}","received_events_url":"https://api.github.com/users/davincho/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T14:05:51Z","updated_at":"2015-11-13T14:05:51Z","body":"Ok the problem is that ``_this.previous`` only returns real attributes and no localKeys which are defined via a relation. As we inject only values of real attributes, the local key gets lost and so its relation to other objects."}}