{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/895","repository_url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/895/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/895/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/895/events","html_url":"https://github.com/FriendsOfSymfony/FOSElasticaBundle/issues/895","id":86619985,"number":895,"title":"\"Immediate\" configuration option breaks auto-update","user":{"login":"GeoffroyR","id":532469,"avatar_url":"https://avatars.githubusercontent.com/u/532469?v=3","gravatar_id":"","url":"https://api.github.com/users/GeoffroyR","html_url":"https://github.com/GeoffroyR","followers_url":"https://api.github.com/users/GeoffroyR/followers","following_url":"https://api.github.com/users/GeoffroyR/following{/other_user}","gists_url":"https://api.github.com/users/GeoffroyR/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoffroyR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoffroyR/subscriptions","organizations_url":"https://api.github.com/users/GeoffroyR/orgs","repos_url":"https://api.github.com/users/GeoffroyR/repos","events_url":"https://api.github.com/users/GeoffroyR/events{/privacy}","received_events_url":"https://api.github.com/users/GeoffroyR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-06-09T14:33:34Z","updated_at":"2016-02-02T17:58:32Z","closed_at":null,"body":"Could found three reports related to this issue: #796  #741 #654\r\n\r\nThe \"immediate\" option is not working (did it ever work?) and breaks the auto-update feature.\r\nLooking at the code, it's a switch to use preFlush in place of postFlush.\r\nProblem is that at \"preFlush\" no event was triggered as the bundle listens to postPersist and postUpdate which are triggered after.\r\n\r\nCommit 22a5d67d05d2df4fe46ca6e80f4b21198f2d3b19 should be reverted completely."},"comment":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/comments/178721528","html_url":"https://github.com/FriendsOfSymfony/FOSElasticaBundle/issues/895#issuecomment-178721528","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/895","id":178721528,"user":{"login":"ConneXNL","id":971199,"avatar_url":"https://avatars.githubusercontent.com/u/971199?v=3","gravatar_id":"","url":"https://api.github.com/users/ConneXNL","html_url":"https://github.com/ConneXNL","followers_url":"https://api.github.com/users/ConneXNL/followers","following_url":"https://api.github.com/users/ConneXNL/following{/other_user}","gists_url":"https://api.github.com/users/ConneXNL/gists{/gist_id}","starred_url":"https://api.github.com/users/ConneXNL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ConneXNL/subscriptions","organizations_url":"https://api.github.com/users/ConneXNL/orgs","repos_url":"https://api.github.com/users/ConneXNL/repos","events_url":"https://api.github.com/users/ConneXNL/events{/privacy}","received_events_url":"https://api.github.com/users/ConneXNL/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T17:58:32Z","updated_at":"2016-02-02T17:58:32Z","body":"I have a problem where i have to call flush on the doctrine orm entity manager twice. Calling it only once updates the database but not the ES for some reason. \r\n\r\nIs this related?"}}