{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony-docs/issues/7358","repository_url":"https://api.github.com/repos/symfony/symfony-docs","labels_url":"https://api.github.com/repos/symfony/symfony-docs/issues/7358/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony-docs/issues/7358/comments","events_url":"https://api.github.com/repos/symfony/symfony-docs/issues/7358/events","html_url":"https://github.com/symfony/symfony-docs/pull/7358","id":200586072,"number":7358,"title":"[File Uploads] Check if the entity contains the files","user":{"login":"Guikingone","id":13744329,"avatar_url":"https://avatars.githubusercontent.com/u/13744329?v=3","gravatar_id":"","url":"https://api.github.com/users/Guikingone","html_url":"https://github.com/Guikingone","followers_url":"https://api.github.com/users/Guikingone/followers","following_url":"https://api.github.com/users/Guikingone/following{/other_user}","gists_url":"https://api.github.com/users/Guikingone/gists{/gist_id}","starred_url":"https://api.github.com/users/Guikingone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guikingone/subscriptions","organizations_url":"https://api.github.com/users/Guikingone/orgs","repos_url":"https://api.github.com/users/Guikingone/repos","events_url":"https://api.github.com/users/Guikingone/events{/privacy}","received_events_url":"https://api.github.com/users/Guikingone/received_events","type":"User","site_admin":false},"labels":[{"id":390692613,"url":"https://api.github.com/repos/symfony/symfony-docs/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-13T09:41:02Z","updated_at":"2017-01-15T08:57:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/symfony/symfony-docs/pulls/7358","html_url":"https://github.com/symfony/symfony-docs/pull/7358","diff_url":"https://github.com/symfony/symfony-docs/pull/7358.diff","patch_url":"https://github.com/symfony/symfony-docs/pull/7358.patch"},"body":"After many tests, it seems that if the entity does not contains the files, the event throw a Exception, by checking the presence of files, the exception isn't thrown and the process can continue, this can be usefull if the entity isn't linked with file or if the file was stored into an array but not needed at this time.\r\n\r\nThe return isn't needed after the if statement."},"comment":{"url":"https://api.github.com/repos/symfony/symfony-docs/issues/comments/272682392","html_url":"https://github.com/symfony/symfony-docs/pull/7358#issuecomment-272682392","issue_url":"https://api.github.com/repos/symfony/symfony-docs/issues/7358","id":272682392,"user":{"login":"Guikingone","id":13744329,"avatar_url":"https://avatars.githubusercontent.com/u/13744329?v=3","gravatar_id":"","url":"https://api.github.com/users/Guikingone","html_url":"https://github.com/Guikingone","followers_url":"https://api.github.com/users/Guikingone/followers","following_url":"https://api.github.com/users/Guikingone/following{/other_user}","gists_url":"https://api.github.com/users/Guikingone/gists{/gist_id}","starred_url":"https://api.github.com/users/Guikingone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guikingone/subscriptions","organizations_url":"https://api.github.com/users/Guikingone/orgs","repos_url":"https://api.github.com/users/Guikingone/repos","events_url":"https://api.github.com/users/Guikingone/events{/privacy}","received_events_url":"https://api.github.com/users/Guikingone/received_events","type":"User","site_admin":false},"created_at":"2017-01-15T08:57:22Z","updated_at":"2017-01-15T08:57:22Z","body":"@xabbuh Done, sorry for the bad identation."}}
{"actor":{"display_login":"Guikingone"}}