{"action":"created","comment":{"url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/pulls/comments/37759985","id":37759985,"diff_hunk":"@@ -105,4 +112,12 @@ protected function castParameter($parameter)\n             }\n         }\n     }\n+\n+    protected function isNullValue($resource)\n+    {\n+        return null === $resource ||","path":"src/Knp/Rad/ResourceResolver/EventListener/ResourcesListener.php","position":28,"original_position":28,"commit_id":"dc1e2df0688fe9d816220d9c59a8ff83e72f7de8","original_commit_id":"dbe12b19adf2695e1a2fa86df991427c3fade15e","user":{"login":"Einenlum","id":5675200,"avatar_url":"https://avatars.githubusercontent.com/u/5675200?v=3","gravatar_id":"","url":"https://api.github.com/users/Einenlum","html_url":"https://github.com/Einenlum","followers_url":"https://api.github.com/users/Einenlum/followers","following_url":"https://api.github.com/users/Einenlum/following{/other_user}","gists_url":"https://api.github.com/users/Einenlum/gists{/gist_id}","starred_url":"https://api.github.com/users/Einenlum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Einenlum/subscriptions","organizations_url":"https://api.github.com/users/Einenlum/orgs","repos_url":"https://api.github.com/users/Einenlum/repos","events_url":"https://api.github.com/users/Einenlum/events{/privacy}","received_events_url":"https://api.github.com/users/Einenlum/received_events","type":"User","site_admin":false},"body":"```php\r\n$someEmptyCollection = new ArrayCollection();\r\n\r\necho empty($someEmptyCollection);\r\n```\r\n\r\nWill return false.","created_at":"2015-08-24T14:56:41Z","updated_at":"2015-08-24T14:56:41Z","html_url":"https://github.com/KnpLabs/rad-resource-resolver/pull/21#discussion_r37759985","pull_request_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/pulls/comments/37759985"},"html":{"href":"https://github.com/KnpLabs/rad-resource-resolver/pull/21#discussion_r37759985"},"pull_request":{"href":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/pulls/21","id":43183241,"html_url":"https://github.com/KnpLabs/rad-resource-resolver/pull/21","diff_url":"https://github.com/KnpLabs/rad-resource-resolver/pull/21.diff","patch_url":"https://github.com/KnpLabs/rad-resource-resolver/pull/21.patch","issue_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/issues/21","number":21,"state":"open","locked":false,"title":"Throw 404 if resource is not found","user":{"login":"Einenlum","id":5675200,"avatar_url":"https://avatars.githubusercontent.com/u/5675200?v=3","gravatar_id":"","url":"https://api.github.com/users/Einenlum","html_url":"https://github.com/Einenlum","followers_url":"https://api.github.com/users/Einenlum/followers","following_url":"https://api.github.com/users/Einenlum/following{/other_user}","gists_url":"https://api.github.com/users/Einenlum/gists{/gist_id}","starred_url":"https://api.github.com/users/Einenlum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Einenlum/subscriptions","organizations_url":"https://api.github.com/users/Einenlum/orgs","repos_url":"https://api.github.com/users/Einenlum/repos","events_url":"https://api.github.com/users/Einenlum/events{/privacy}","received_events_url":"https://api.github.com/users/Einenlum/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-24T14:51:57Z","updated_at":"2015-08-24T14:56:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee41e6c7974f21ceea25be5fb61f15a51d80fec5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/pulls/21/commits","review_comments_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/pulls/21/comments","review_comment_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/issues/21/comments","statuses_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/statuses/dc1e2df0688fe9d816220d9c59a8ff83e72f7de8","head":{"label":"KnpLabs:feature/404-if-resource-not-found","ref":"feature/404-if-resource-not-found","sha":"dc1e2df0688fe9d816220d9c59a8ff83e72f7de8","user":{"login":"KnpLabs","id":202732,"avatar_url":"https://avatars.githubusercontent.com/u/202732?v=3","gravatar_id":"","url":"https://api.github.com/users/KnpLabs","html_url":"https://github.com/KnpLabs","followers_url":"https://api.github.com/users/KnpLabs/followers","following_url":"https://api.github.com/users/KnpLabs/following{/other_user}","gists_url":"https://api.github.com/users/KnpLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/KnpLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KnpLabs/subscriptions","organizations_url":"https://api.github.com/users/KnpLabs/orgs","repos_url":"https://api.github.com/users/KnpLabs/repos","events_url":"https://api.github.com/users/KnpLabs/events{/privacy}","received_events_url":"https://api.github.com/users/KnpLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":29920472,"name":"rad-resource-resolver","full_name":"KnpLabs/rad-resource-resolver","owner":{"login":"KnpLabs","id":202732,"avatar_url":"https://avatars.githubusercontent.com/u/202732?v=3","gravatar_id":"","url":"https://api.github.com/users/KnpLabs","html_url":"https://github.com/KnpLabs","followers_url":"https://api.github.com/users/KnpLabs/followers","following_url":"https://api.github.com/users/KnpLabs/following{/other_user}","gists_url":"https://api.github.com/users/KnpLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/KnpLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KnpLabs/subscriptions","organizations_url":"https://api.github.com/users/KnpLabs/orgs","repos_url":"https://api.github.com/users/KnpLabs/repos","events_url":"https://api.github.com/users/KnpLabs/events{/privacy}","received_events_url":"https://api.github.com/users/KnpLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KnpLabs/rad-resource-resolver","description":"Knp Rad Resource Resolver","fork":false,"url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver","forks_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/forks","keys_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/teams","hooks_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/hooks","issue_events_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/issues/events{/number}","events_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/events","assignees_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/assignees{/user}","branches_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/branches{/branch}","tags_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/tags","blobs_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/git/refs{/sha}","trees_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/statuses/{sha}","languages_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/languages","stargazers_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/stargazers","contributors_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/contributors","subscribers_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/subscribers","subscription_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/subscription","commits_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/commits{/sha}","git_commits_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/git/commits{/sha}","comments_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/comments{/number}","issue_comment_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/issues/comments{/number}","contents_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/contents/{+path}","compare_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/merges","archive_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/downloads","issues_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/issues{/number}","pulls_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/pulls{/number}","milestones_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/milestones{/number}","notifications_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/labels{/name}","releases_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/releases{/id}","created_at":"2015-01-27T15:34:57Z","updated_at":"2015-03-18T15:41:24Z","pushed_at":"2015-08-24T14:55:23Z","git_url":"git://github.com/KnpLabs/rad-resource-resolver.git","ssh_url":"git@github.com:KnpLabs/rad-resource-resolver.git","clone_url":"https://github.com/KnpLabs/rad-resource-resolver.git","svn_url":"https://github.com/KnpLabs/rad-resource-resolver","homepage":null,"size":444,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"KnpLabs:master","ref":"master","sha":"3a18db2d852391b906f8746d2f9ea94c045df991","user":{"login":"KnpLabs","id":202732,"avatar_url":"https://avatars.githubusercontent.com/u/202732?v=3","gravatar_id":"","url":"https://api.github.com/users/KnpLabs","html_url":"https://github.com/KnpLabs","followers_url":"https://api.github.com/users/KnpLabs/followers","following_url":"https://api.github.com/users/KnpLabs/following{/other_user}","gists_url":"https://api.github.com/users/KnpLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/KnpLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KnpLabs/subscriptions","organizations_url":"https://api.github.com/users/KnpLabs/orgs","repos_url":"https://api.github.com/users/KnpLabs/repos","events_url":"https://api.github.com/users/KnpLabs/events{/privacy}","received_events_url":"https://api.github.com/users/KnpLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":29920472,"name":"rad-resource-resolver","full_name":"KnpLabs/rad-resource-resolver","owner":{"login":"KnpLabs","id":202732,"avatar_url":"https://avatars.githubusercontent.com/u/202732?v=3","gravatar_id":"","url":"https://api.github.com/users/KnpLabs","html_url":"https://github.com/KnpLabs","followers_url":"https://api.github.com/users/KnpLabs/followers","following_url":"https://api.github.com/users/KnpLabs/following{/other_user}","gists_url":"https://api.github.com/users/KnpLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/KnpLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KnpLabs/subscriptions","organizations_url":"https://api.github.com/users/KnpLabs/orgs","repos_url":"https://api.github.com/users/KnpLabs/repos","events_url":"https://api.github.com/users/KnpLabs/events{/privacy}","received_events_url":"https://api.github.com/users/KnpLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KnpLabs/rad-resource-resolver","description":"Knp Rad Resource Resolver","fork":false,"url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver","forks_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/forks","keys_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/teams","hooks_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/hooks","issue_events_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/issues/events{/number}","events_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/events","assignees_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/assignees{/user}","branches_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/branches{/branch}","tags_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/tags","blobs_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/git/refs{/sha}","trees_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/statuses/{sha}","languages_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/languages","stargazers_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/stargazers","contributors_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/contributors","subscribers_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/subscribers","subscription_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/subscription","commits_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/commits{/sha}","git_commits_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/git/commits{/sha}","comments_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/comments{/number}","issue_comment_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/issues/comments{/number}","contents_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/contents/{+path}","compare_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/merges","archive_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/downloads","issues_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/issues{/number}","pulls_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/pulls{/number}","milestones_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/milestones{/number}","notifications_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/labels{/name}","releases_url":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/releases{/id}","created_at":"2015-01-27T15:34:57Z","updated_at":"2015-03-18T15:41:24Z","pushed_at":"2015-08-24T14:55:23Z","git_url":"git://github.com/KnpLabs/rad-resource-resolver.git","ssh_url":"git@github.com:KnpLabs/rad-resource-resolver.git","clone_url":"https://github.com/KnpLabs/rad-resource-resolver.git","svn_url":"https://github.com/KnpLabs/rad-resource-resolver","homepage":null,"size":444,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/pulls/21"},"html":{"href":"https://github.com/KnpLabs/rad-resource-resolver/pull/21"},"issue":{"href":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/issues/21"},"comments":{"href":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/KnpLabs/rad-resource-resolver/statuses/dc1e2df0688fe9d816220d9c59a8ff83e72f7de8"}}}}