{"action":"opened","issue":{"url":"https://api.github.com/repos/simplethings/EntityAudit/issues/237","repository_url":"https://api.github.com/repos/simplethings/EntityAudit","labels_url":"https://api.github.com/repos/simplethings/EntityAudit/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/simplethings/EntityAudit/issues/237/comments","events_url":"https://api.github.com/repos/simplethings/EntityAudit/issues/237/events","html_url":"https://github.com/simplethings/EntityAudit/issues/237","id":193454893,"number":237,"title":"Regression: Loading revision data fails on entities with empty on-to-one associations","user":{"login":"soerenbernstein","id":3931047,"avatar_url":"https://avatars.githubusercontent.com/u/3931047?v=3","gravatar_id":"","url":"https://api.github.com/users/soerenbernstein","html_url":"https://github.com/soerenbernstein","followers_url":"https://api.github.com/users/soerenbernstein/followers","following_url":"https://api.github.com/users/soerenbernstein/following{/other_user}","gists_url":"https://api.github.com/users/soerenbernstein/gists{/gist_id}","starred_url":"https://api.github.com/users/soerenbernstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soerenbernstein/subscriptions","organizations_url":"https://api.github.com/users/soerenbernstein/orgs","repos_url":"https://api.github.com/users/soerenbernstein/repos","events_url":"https://api.github.com/users/soerenbernstein/events{/privacy}","received_events_url":"https://api.github.com/users/soerenbernstein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-05T10:01:54Z","updated_at":"2016-12-05T10:01:54Z","closed_at":null,"body":"Updating from 0.7 to 0.9.2 I have trouble getting my revisions. After some testing I figured out this was introduced in 0.8. \r\n\r\nI my case I have a Customer entity which has a bidirectional association with my User entity called user with Customer being the owning side. It also has an additional unidirectional associations with User called registeringUser. Not all of my Users do have an associated Customer entity. \r\n\r\nTrying to load a revision of a Customer entity will result in a NoRevisionFoundException because AuditReader::find fails to load the non-existing Customer entity from the inverse side of the associated User entity.\r\n\r\nI may be wrong, but I think the NoRevisionFoundException should only be thrown if this is the root entity. For any (optional) associated entities this exception should not be thrown."}}
{"actor":{"display_login":"soerenbernstein"}}