{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/phpcr-odm/issues/691","repository_url":"https://api.github.com/repos/doctrine/phpcr-odm","labels_url":"https://api.github.com/repos/doctrine/phpcr-odm/issues/691/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/phpcr-odm/issues/691/comments","events_url":"https://api.github.com/repos/doctrine/phpcr-odm/issues/691/events","html_url":"https://github.com/doctrine/phpcr-odm/issues/691","id":135063052,"number":691,"title":"ID of document does not seem updated in postUpdate event","user":{"login":"richard-fizz","id":12270626,"avatar_url":"https://avatars.githubusercontent.com/u/12270626?v=3","gravatar_id":"","url":"https://api.github.com/users/richard-fizz","html_url":"https://github.com/richard-fizz","followers_url":"https://api.github.com/users/richard-fizz/followers","following_url":"https://api.github.com/users/richard-fizz/following{/other_user}","gists_url":"https://api.github.com/users/richard-fizz/gists{/gist_id}","starred_url":"https://api.github.com/users/richard-fizz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richard-fizz/subscriptions","organizations_url":"https://api.github.com/users/richard-fizz/orgs","repos_url":"https://api.github.com/users/richard-fizz/repos","events_url":"https://api.github.com/users/richard-fizz/events{/privacy}","received_events_url":"https://api.github.com/users/richard-fizz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-20T11:32:36Z","updated_at":"2016-02-23T10:33:49Z","closed_at":null,"body":"For instance, if I flush my updated document to the document manager and assign a postUpdate event to it, the node name and all other properties change, but the id stays the same.\r\nThis makes for difficult situations when integrating with systems such as Elastica, since it needs an updated id for it to work."},"comment":{"url":"https://api.github.com/repos/doctrine/phpcr-odm/issues/comments/187644586","html_url":"https://github.com/doctrine/phpcr-odm/issues/691#issuecomment-187644586","issue_url":"https://api.github.com/repos/doctrine/phpcr-odm/issues/691","id":187644586,"user":{"login":"richard-fizz","id":12270626,"avatar_url":"https://avatars.githubusercontent.com/u/12270626?v=3","gravatar_id":"","url":"https://api.github.com/users/richard-fizz","html_url":"https://github.com/richard-fizz","followers_url":"https://api.github.com/users/richard-fizz/followers","following_url":"https://api.github.com/users/richard-fizz/following{/other_user}","gists_url":"https://api.github.com/users/richard-fizz/gists{/gist_id}","starred_url":"https://api.github.com/users/richard-fizz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richard-fizz/subscriptions","organizations_url":"https://api.github.com/users/richard-fizz/orgs","repos_url":"https://api.github.com/users/richard-fizz/repos","events_url":"https://api.github.com/users/richard-fizz/events{/privacy}","received_events_url":"https://api.github.com/users/richard-fizz/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T10:33:49Z","updated_at":"2016-02-23T10:33:49Z","body":"Yup. After flushing in the controller, everything seems fine. Do we want to update the ID before the preUpdate event or is that flush' responsibility? Either way it would be useful to be able to retrieve the updated ID in preUpdate or postUpdate."}}