{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/doctrine2/issues/6183","repository_url":"https://api.github.com/repos/doctrine/doctrine2","labels_url":"https://api.github.com/repos/doctrine/doctrine2/issues/6183/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/doctrine2/issues/6183/comments","events_url":"https://api.github.com/repos/doctrine/doctrine2/issues/6183/events","html_url":"https://github.com/doctrine/doctrine2/issues/6183","id":196688599,"number":6183,"title":"Immutable Entities","user":{"login":"davidbarratt","id":868364,"avatar_url":"https://avatars.githubusercontent.com/u/868364?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbarratt","html_url":"https://github.com/davidbarratt","followers_url":"https://api.github.com/users/davidbarratt/followers","following_url":"https://api.github.com/users/davidbarratt/following{/other_user}","gists_url":"https://api.github.com/users/davidbarratt/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbarratt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbarratt/subscriptions","organizations_url":"https://api.github.com/users/davidbarratt/orgs","repos_url":"https://api.github.com/users/davidbarratt/repos","events_url":"https://api.github.com/users/davidbarratt/events{/privacy}","received_events_url":"https://api.github.com/users/davidbarratt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-20T14:39:34Z","updated_at":"2016-12-20T16:42:07Z","closed_at":null,"body":"Is there a way to have immutable entities? My problem is that for instance if you create an entity and then persist it, Doctrine wants to set the id of the object. \r\n\r\nIs there a way to have the persist method return a new object with the id on it?"},"comment":{"url":"https://api.github.com/repos/doctrine/doctrine2/issues/comments/268292604","html_url":"https://github.com/doctrine/doctrine2/issues/6183#issuecomment-268292604","issue_url":"https://api.github.com/repos/doctrine/doctrine2/issues/6183","id":268292604,"user":{"login":"davidbarratt","id":868364,"avatar_url":"https://avatars.githubusercontent.com/u/868364?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbarratt","html_url":"https://github.com/davidbarratt","followers_url":"https://api.github.com/users/davidbarratt/followers","following_url":"https://api.github.com/users/davidbarratt/following{/other_user}","gists_url":"https://api.github.com/users/davidbarratt/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbarratt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbarratt/subscriptions","organizations_url":"https://api.github.com/users/davidbarratt/orgs","repos_url":"https://api.github.com/users/davidbarratt/repos","events_url":"https://api.github.com/users/davidbarratt/events{/privacy}","received_events_url":"https://api.github.com/users/davidbarratt/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T16:42:07Z","updated_at":"2016-12-20T16:42:07Z","body":"Or rather... I should say that you cannot use immutable entities with `@GeneratedValue()` since that would mutate your class, correct?"}}
{"actor":{"display_login":"davidbarratt"}}