{"action":"created","comment":{"url":"https://api.github.com/repos/api-platform/core/pulls/comments/62421776","id":62421776,"diff_hunk":"@@ -94,13 +102,21 @@ public function getItem(string $resourceClass, $id, string $operationName = null\n \n         $repository = $manager->getRepository($resourceClass);\n         $queryBuilder = $repository->createQueryBuilder('o');\n-\n+        $i = 0;\n         foreach ($identifiers as $propertyName => $value) {\n             $placeholder = 'id_'.$propertyName;\n+            $whereExpr[$i] = $queryBuilder->expr()->eq('o.'.$propertyName, ':'.$placeholder);\n+\n+            if ($i <= 0) {","path":"src/Bridge/Doctrine/Orm/ItemDataProvider.php","position":null,"original_position":32,"commit_id":"f67ceca915bb9d3e675d399ce4ab029ea58b18d1","original_commit_id":"1be8f44352e48cd7dd7753436b2c16f029fcf969","user":{"login":"Simperfit","id":3451634,"avatar_url":"https://avatars.githubusercontent.com/u/3451634?v=3","gravatar_id":"","url":"https://api.github.com/users/Simperfit","html_url":"https://github.com/Simperfit","followers_url":"https://api.github.com/users/Simperfit/followers","following_url":"https://api.github.com/users/Simperfit/following{/other_user}","gists_url":"https://api.github.com/users/Simperfit/gists{/gist_id}","starred_url":"https://api.github.com/users/Simperfit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simperfit/subscriptions","organizations_url":"https://api.github.com/users/Simperfit/orgs","repos_url":"https://api.github.com/users/Simperfit/repos","events_url":"https://api.github.com/users/Simperfit/events{/privacy}","received_events_url":"https://api.github.com/users/Simperfit/received_events","type":"User","site_admin":false},"body":"Like this ?","created_at":"2016-05-07T19:48:53Z","updated_at":"2016-05-07T19:48:53Z","html_url":"https://github.com/api-platform/core/pull/533#discussion_r62421776","pull_request_url":"https://api.github.com/repos/api-platform/core/pulls/533","_links":{"self":{"href":"https://api.github.com/repos/api-platform/core/pulls/comments/62421776"},"html":{"href":"https://github.com/api-platform/core/pull/533#discussion_r62421776"},"pull_request":{"href":"https://api.github.com/repos/api-platform/core/pulls/533"}}},"pull_request":{"url":"https://api.github.com/repos/api-platform/core/pulls/533","id":69244752,"html_url":"https://github.com/api-platform/core/pull/533","diff_url":"https://github.com/api-platform/core/pull/533.diff","patch_url":"https://github.com/api-platform/core/pull/533.patch","issue_url":"https://api.github.com/repos/api-platform/core/issues/533","number":533,"state":"open","locked":false,"title":"#530 ~ Add behat test and change behavior of ItemDataProvider for uuid","user":{"login":"Simperfit","id":3451634,"avatar_url":"https://avatars.githubusercontent.com/u/3451634?v=3","gravatar_id":"","url":"https://api.github.com/users/Simperfit","html_url":"https://github.com/Simperfit","followers_url":"https://api.github.com/users/Simperfit/followers","following_url":"https://api.github.com/users/Simperfit/following{/other_user}","gists_url":"https://api.github.com/users/Simperfit/gists{/gist_id}","starred_url":"https://api.github.com/users/Simperfit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simperfit/subscriptions","organizations_url":"https://api.github.com/users/Simperfit/orgs","repos_url":"https://api.github.com/users/Simperfit/repos","events_url":"https://api.github.com/users/Simperfit/events{/privacy}","received_events_url":"https://api.github.com/users/Simperfit/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | yes\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | #530 \r\n| License       | MIT\r\n\r\nThis is WIP \r\n\r\n- [x] Finish the test behat\r\n- [x] Add more test for composite\r\n- [x] Modify the behaviour of ItemDataProvider to test the composite identifiers and to make uuid work\r\n","created_at":"2016-05-07T15:22:59Z","updated_at":"2016-05-07T19:48:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dadb75783087ac22cd2822f50b4a272c34a38486","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/api-platform/core/pulls/533/commits","review_comments_url":"https://api.github.com/repos/api-platform/core/pulls/533/comments","review_comment_url":"https://api.github.com/repos/api-platform/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/api-platform/core/issues/533/comments","statuses_url":"https://api.github.com/repos/api-platform/core/statuses/f67ceca915bb9d3e675d399ce4ab029ea58b18d1","head":{"label":"Simperfit:fix-uuid-530","ref":"fix-uuid-530","sha":"f67ceca915bb9d3e675d399ce4ab029ea58b18d1","user":{"login":"Simperfit","id":3451634,"avatar_url":"https://avatars.githubusercontent.com/u/3451634?v=3","gravatar_id":"","url":"https://api.github.com/users/Simperfit","html_url":"https://github.com/Simperfit","followers_url":"https://api.github.com/users/Simperfit/followers","following_url":"https://api.github.com/users/Simperfit/following{/other_user}","gists_url":"https://api.github.com/users/Simperfit/gists{/gist_id}","starred_url":"https://api.github.com/users/Simperfit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simperfit/subscriptions","organizations_url":"https://api.github.com/users/Simperfit/orgs","repos_url":"https://api.github.com/users/Simperfit/repos","events_url":"https://api.github.com/users/Simperfit/events{/privacy}","received_events_url":"https://api.github.com/users/Simperfit/received_events","type":"User","site_admin":false},"repo":{"id":53217809,"name":"core","full_name":"Simperfit/core","owner":{"login":"Simperfit","id":3451634,"avatar_url":"https://avatars.githubusercontent.com/u/3451634?v=3","gravatar_id":"","url":"https://api.github.com/users/Simperfit","html_url":"https://github.com/Simperfit","followers_url":"https://api.github.com/users/Simperfit/followers","following_url":"https://api.github.com/users/Simperfit/following{/other_user}","gists_url":"https://api.github.com/users/Simperfit/gists{/gist_id}","starred_url":"https://api.github.com/users/Simperfit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simperfit/subscriptions","organizations_url":"https://api.github.com/users/Simperfit/orgs","repos_url":"https://api.github.com/users/Simperfit/repos","events_url":"https://api.github.com/users/Simperfit/events{/privacy}","received_events_url":"https://api.github.com/users/Simperfit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Simperfit/core","description":"The Hypermedia REST API component of API Platform: JSON-LD and Hydra support, works with Symfony too","fork":true,"url":"https://api.github.com/repos/Simperfit/core","forks_url":"https://api.github.com/repos/Simperfit/core/forks","keys_url":"https://api.github.com/repos/Simperfit/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Simperfit/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Simperfit/core/teams","hooks_url":"https://api.github.com/repos/Simperfit/core/hooks","issue_events_url":"https://api.github.com/repos/Simperfit/core/issues/events{/number}","events_url":"https://api.github.com/repos/Simperfit/core/events","assignees_url":"https://api.github.com/repos/Simperfit/core/assignees{/user}","branches_url":"https://api.github.com/repos/Simperfit/core/branches{/branch}","tags_url":"https://api.github.com/repos/Simperfit/core/tags","blobs_url":"https://api.github.com/repos/Simperfit/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Simperfit/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Simperfit/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/Simperfit/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Simperfit/core/statuses/{sha}","languages_url":"https://api.github.com/repos/Simperfit/core/languages","stargazers_url":"https://api.github.com/repos/Simperfit/core/stargazers","contributors_url":"https://api.github.com/repos/Simperfit/core/contributors","subscribers_url":"https://api.github.com/repos/Simperfit/core/subscribers","subscription_url":"https://api.github.com/repos/Simperfit/core/subscription","commits_url":"https://api.github.com/repos/Simperfit/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/Simperfit/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/Simperfit/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/Simperfit/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/Simperfit/core/contents/{+path}","compare_url":"https://api.github.com/repos/Simperfit/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Simperfit/core/merges","archive_url":"https://api.github.com/repos/Simperfit/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Simperfit/core/downloads","issues_url":"https://api.github.com/repos/Simperfit/core/issues{/number}","pulls_url":"https://api.github.com/repos/Simperfit/core/pulls{/number}","milestones_url":"https://api.github.com/repos/Simperfit/core/milestones{/number}","notifications_url":"https://api.github.com/repos/Simperfit/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Simperfit/core/labels{/name}","releases_url":"https://api.github.com/repos/Simperfit/core/releases{/id}","deployments_url":"https://api.github.com/repos/Simperfit/core/deployments","created_at":"2016-03-05T18:57:36Z","updated_at":"2016-03-05T18:57:38Z","pushed_at":"2016-05-07T19:48:39Z","git_url":"git://github.com/Simperfit/core.git","ssh_url":"git@github.com:Simperfit/core.git","clone_url":"https://github.com/Simperfit/core.git","svn_url":"https://github.com/Simperfit/core","homepage":"https://api-platform.com/doc/1.0/api-bundle/","size":1780,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"api-platform:master","ref":"master","sha":"bb746545ea204f01b7bff2cf75ccfb86a1729255","user":{"login":"api-platform","id":13420081,"avatar_url":"https://avatars.githubusercontent.com/u/13420081?v=3","gravatar_id":"","url":"https://api.github.com/users/api-platform","html_url":"https://github.com/api-platform","followers_url":"https://api.github.com/users/api-platform/followers","following_url":"https://api.github.com/users/api-platform/following{/other_user}","gists_url":"https://api.github.com/users/api-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/api-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/api-platform/subscriptions","organizations_url":"https://api.github.com/users/api-platform/orgs","repos_url":"https://api.github.com/users/api-platform/repos","events_url":"https://api.github.com/users/api-platform/events{/privacy}","received_events_url":"https://api.github.com/users/api-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":29501260,"name":"core","full_name":"api-platform/core","owner":{"login":"api-platform","id":13420081,"avatar_url":"https://avatars.githubusercontent.com/u/13420081?v=3","gravatar_id":"","url":"https://api.github.com/users/api-platform","html_url":"https://github.com/api-platform","followers_url":"https://api.github.com/users/api-platform/followers","following_url":"https://api.github.com/users/api-platform/following{/other_user}","gists_url":"https://api.github.com/users/api-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/api-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/api-platform/subscriptions","organizations_url":"https://api.github.com/users/api-platform/orgs","repos_url":"https://api.github.com/users/api-platform/repos","events_url":"https://api.github.com/users/api-platform/events{/privacy}","received_events_url":"https://api.github.com/users/api-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/api-platform/core","description":"The Hypermedia REST API component of API Platform: JSON-LD and Hydra support, works with Symfony too","fork":false,"url":"https://api.github.com/repos/api-platform/core","forks_url":"https://api.github.com/repos/api-platform/core/forks","keys_url":"https://api.github.com/repos/api-platform/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/api-platform/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/api-platform/core/teams","hooks_url":"https://api.github.com/repos/api-platform/core/hooks","issue_events_url":"https://api.github.com/repos/api-platform/core/issues/events{/number}","events_url":"https://api.github.com/repos/api-platform/core/events","assignees_url":"https://api.github.com/repos/api-platform/core/assignees{/user}","branches_url":"https://api.github.com/repos/api-platform/core/branches{/branch}","tags_url":"https://api.github.com/repos/api-platform/core/tags","blobs_url":"https://api.github.com/repos/api-platform/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/api-platform/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/api-platform/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/api-platform/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/api-platform/core/statuses/{sha}","languages_url":"https://api.github.com/repos/api-platform/core/languages","stargazers_url":"https://api.github.com/repos/api-platform/core/stargazers","contributors_url":"https://api.github.com/repos/api-platform/core/contributors","subscribers_url":"https://api.github.com/repos/api-platform/core/subscribers","subscription_url":"https://api.github.com/repos/api-platform/core/subscription","commits_url":"https://api.github.com/repos/api-platform/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/api-platform/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/api-platform/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/api-platform/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/api-platform/core/contents/{+path}","compare_url":"https://api.github.com/repos/api-platform/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/api-platform/core/merges","archive_url":"https://api.github.com/repos/api-platform/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/api-platform/core/downloads","issues_url":"https://api.github.com/repos/api-platform/core/issues{/number}","pulls_url":"https://api.github.com/repos/api-platform/core/pulls{/number}","milestones_url":"https://api.github.com/repos/api-platform/core/milestones{/number}","notifications_url":"https://api.github.com/repos/api-platform/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/api-platform/core/labels{/name}","releases_url":"https://api.github.com/repos/api-platform/core/releases{/id}","deployments_url":"https://api.github.com/repos/api-platform/core/deployments","created_at":"2015-01-19T23:05:56Z","updated_at":"2016-05-03T14:58:48Z","pushed_at":"2016-05-07T19:48:39Z","git_url":"git://github.com/api-platform/core.git","ssh_url":"git@github.com:api-platform/core.git","clone_url":"https://github.com/api-platform/core.git","svn_url":"https://github.com/api-platform/core","homepage":"https://api-platform.com","size":2220,"stargazers_count":314,"watchers_count":314,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":97,"forks":80,"open_issues":97,"watchers":314,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/api-platform/core/pulls/533"},"html":{"href":"https://github.com/api-platform/core/pull/533"},"issue":{"href":"https://api.github.com/repos/api-platform/core/issues/533"},"comments":{"href":"https://api.github.com/repos/api-platform/core/issues/533/comments"},"review_comments":{"href":"https://api.github.com/repos/api-platform/core/pulls/533/comments"},"review_comment":{"href":"https://api.github.com/repos/api-platform/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/api-platform/core/pulls/533/commits"},"statuses":{"href":"https://api.github.com/repos/api-platform/core/statuses/f67ceca915bb9d3e675d399ce4ab029ea58b18d1"}}}}