{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/832","labels_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/832/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/832/comments","events_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/832/events","html_url":"https://github.com/sonata-project/SonataMediaBundle/pull/832","id":102093634,"number":832,"title":"Correctly handle $andFlush parameter","user":{"login":"julien-maitan","id":8706365,"avatar_url":"https://avatars.githubusercontent.com/u/8706365?v=3","gravatar_id":"","url":"https://api.github.com/users/julien-maitan","html_url":"https://github.com/julien-maitan","followers_url":"https://api.github.com/users/julien-maitan/followers","following_url":"https://api.github.com/users/julien-maitan/following{/other_user}","gists_url":"https://api.github.com/users/julien-maitan/gists{/gist_id}","starred_url":"https://api.github.com/users/julien-maitan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien-maitan/subscriptions","organizations_url":"https://api.github.com/users/julien-maitan/orgs","repos_url":"https://api.github.com/users/julien-maitan/repos","events_url":"https://api.github.com/users/julien-maitan/events{/privacy}","received_events_url":"https://api.github.com/users/julien-maitan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-20T08:51:26Z","updated_at":"2015-10-16T22:04:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/pulls/832","html_url":"https://github.com/sonata-project/SonataMediaBundle/pull/832","diff_url":"https://github.com/sonata-project/SonataMediaBundle/pull/832.diff","patch_url":"https://github.com/sonata-project/SonataMediaBundle/pull/832.patch"},"body":"We only need to check for the type of $andFlush because it will be set to true if not provided.\r\nIf we use the condition ($andFlush && is_bool($and_flush)) a call to save($media, false) will never match and will fallback to save($media, true)"},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/comments/148847055","html_url":"https://github.com/sonata-project/SonataMediaBundle/pull/832#issuecomment-148847055","issue_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/832","id":148847055,"user":{"login":"Uriziel","id":1389837,"avatar_url":"https://avatars.githubusercontent.com/u/1389837?v=3","gravatar_id":"","url":"https://api.github.com/users/Uriziel","html_url":"https://github.com/Uriziel","followers_url":"https://api.github.com/users/Uriziel/followers","following_url":"https://api.github.com/users/Uriziel/following{/other_user}","gists_url":"https://api.github.com/users/Uriziel/gists{/gist_id}","starred_url":"https://api.github.com/users/Uriziel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uriziel/subscriptions","organizations_url":"https://api.github.com/users/Uriziel/orgs","repos_url":"https://api.github.com/users/Uriziel/repos","events_url":"https://api.github.com/users/Uriziel/events{/privacy}","received_events_url":"https://api.github.com/users/Uriziel/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T22:04:28Z","updated_at":"2015-10-16T22:04:28Z","body":"Duplicate of #797 "}}