{"action":"created","comment":{"url":"https://api.github.com/repos/doctrine/doctrine2/pulls/comments/89670602","pull_request_review_id":10214308,"id":89670602,"diff_hunk":"@@ -50,8 +50,11 @@ public function testSetVersionOnCreate()\n         $this->_em->persist($firstRelatedEntity);\n         $this->_em->flush();\n \n+        $firstRelatedEntity->name = 'Fred2';\n+        $this->_em->flush();\n+\n         $firstEntity = $this->_em->getRepository('Doctrine\\Tests\\Models\\VersionedOneToOne\\FirstRelatedEntity')\n-            ->findOneBy(array('name' => 'Fred'));\n+            ->findOneBy(array('name' => 'Fred2'));","path":"tests/Doctrine/Tests/ORM/Functional/VersionedOneToOneTest.php","position":null,"original_position":9,"commit_id":"b6adbff708e3c03216f43866a5e287a64fd5a776","original_commit_id":"4670e61825640be7a1cc777e9f5b7f58b6b56cac","user":{"login":"janedbal","id":1993453,"avatar_url":"https://avatars.githubusercontent.com/u/1993453?v=3","gravatar_id":"","url":"https://api.github.com/users/janedbal","html_url":"https://github.com/janedbal","followers_url":"https://api.github.com/users/janedbal/followers","following_url":"https://api.github.com/users/janedbal/following{/other_user}","gists_url":"https://api.github.com/users/janedbal/gists{/gist_id}","starred_url":"https://api.github.com/users/janedbal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janedbal/subscriptions","organizations_url":"https://api.github.com/users/janedbal/orgs","repos_url":"https://api.github.com/users/janedbal/repos","events_url":"https://api.github.com/users/janedbal/events{/privacy}","received_events_url":"https://api.github.com/users/janedbal/received_events","type":"User","site_admin":false},"body":"Sure, added.","created_at":"2016-11-26T11:53:36Z","updated_at":"2016-11-26T11:53:36Z","html_url":"https://github.com/doctrine/doctrine2/pull/6149#discussion_r89670602","pull_request_url":"https://api.github.com/repos/doctrine/doctrine2/pulls/6149","_links":{"self":{"href":"https://api.github.com/repos/doctrine/doctrine2/pulls/comments/89670602"},"html":{"href":"https://github.com/doctrine/doctrine2/pull/6149#discussion_r89670602"},"pull_request":{"href":"https://api.github.com/repos/doctrine/doctrine2/pulls/6149"}}},"pull_request":{"url":"https://api.github.com/repos/doctrine/doctrine2/pulls/6149","id":95319688,"html_url":"https://github.com/doctrine/doctrine2/pull/6149","diff_url":"https://github.com/doctrine/doctrine2/pull/6149.diff","patch_url":"https://github.com/doctrine/doctrine2/pull/6149.patch","issue_url":"https://api.github.com/repos/doctrine/doctrine2/issues/6149","number":6149,"state":"open","locked":false,"title":"VersionedOneToOneTest: changed to failing test with update","user":{"login":"janedbal","id":1993453,"avatar_url":"https://avatars.githubusercontent.com/u/1993453?v=3","gravatar_id":"","url":"https://api.github.com/users/janedbal","html_url":"https://github.com/janedbal","followers_url":"https://api.github.com/users/janedbal/followers","following_url":"https://api.github.com/users/janedbal/following{/other_user}","gists_url":"https://api.github.com/users/janedbal/gists{/gist_id}","starred_url":"https://api.github.com/users/janedbal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janedbal/subscriptions","organizations_url":"https://api.github.com/users/janedbal/orgs","repos_url":"https://api.github.com/users/janedbal/repos","events_url":"https://api.github.com/users/janedbal/events{/privacy}","received_events_url":"https://api.github.com/users/janedbal/received_events","type":"User","site_admin":false},"body":"Updating versioned entity when using one-to-one association is broken as shown in failing test. It results in `Undefined index: second_entity_id` in IdentifierFlattener. Similar (but maybe not 100% same) error will occur when I use own type (e.g. Uuid object) for the id column of `SecondRelatedEntity`.\r\n\r\n\r\n-----\r\n\r\n*I was not able to find and fix the bug itself, so I hope this failing test will help you resolve this issue easily.*","created_at":"2016-11-25T15:24:25Z","updated_at":"2016-11-26T11:53:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f706290525cb147cda922b524503c4567dc3d8d2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/doctrine/doctrine2/pulls/6149/commits","review_comments_url":"https://api.github.com/repos/doctrine/doctrine2/pulls/6149/comments","review_comment_url":"https://api.github.com/repos/doctrine/doctrine2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/doctrine/doctrine2/issues/6149/comments","statuses_url":"https://api.github.com/repos/doctrine/doctrine2/statuses/b6adbff708e3c03216f43866a5e287a64fd5a776","head":{"label":"janedbal:versioned-one-to-one-bug","ref":"versioned-one-to-one-bug","sha":"b6adbff708e3c03216f43866a5e287a64fd5a776","user":{"login":"janedbal","id":1993453,"avatar_url":"https://avatars.githubusercontent.com/u/1993453?v=3","gravatar_id":"","url":"https://api.github.com/users/janedbal","html_url":"https://github.com/janedbal","followers_url":"https://api.github.com/users/janedbal/followers","following_url":"https://api.github.com/users/janedbal/following{/other_user}","gists_url":"https://api.github.com/users/janedbal/gists{/gist_id}","starred_url":"https://api.github.com/users/janedbal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janedbal/subscriptions","organizations_url":"https://api.github.com/users/janedbal/orgs","repos_url":"https://api.github.com/users/janedbal/repos","events_url":"https://api.github.com/users/janedbal/events{/privacy}","received_events_url":"https://api.github.com/users/janedbal/received_events","type":"User","site_admin":false},"repo":{"id":74768141,"name":"doctrine2","full_name":"janedbal/doctrine2","owner":{"login":"janedbal","id":1993453,"avatar_url":"https://avatars.githubusercontent.com/u/1993453?v=3","gravatar_id":"","url":"https://api.github.com/users/janedbal","html_url":"https://github.com/janedbal","followers_url":"https://api.github.com/users/janedbal/followers","following_url":"https://api.github.com/users/janedbal/following{/other_user}","gists_url":"https://api.github.com/users/janedbal/gists{/gist_id}","starred_url":"https://api.github.com/users/janedbal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janedbal/subscriptions","organizations_url":"https://api.github.com/users/janedbal/orgs","repos_url":"https://api.github.com/users/janedbal/repos","events_url":"https://api.github.com/users/janedbal/events{/privacy}","received_events_url":"https://api.github.com/users/janedbal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/janedbal/doctrine2","description":"Doctrine 2 Object Relational Mapper (ORM)","fork":true,"url":"https://api.github.com/repos/janedbal/doctrine2","forks_url":"https://api.github.com/repos/janedbal/doctrine2/forks","keys_url":"https://api.github.com/repos/janedbal/doctrine2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/janedbal/doctrine2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/janedbal/doctrine2/teams","hooks_url":"https://api.github.com/repos/janedbal/doctrine2/hooks","issue_events_url":"https://api.github.com/repos/janedbal/doctrine2/issues/events{/number}","events_url":"https://api.github.com/repos/janedbal/doctrine2/events","assignees_url":"https://api.github.com/repos/janedbal/doctrine2/assignees{/user}","branches_url":"https://api.github.com/repos/janedbal/doctrine2/branches{/branch}","tags_url":"https://api.github.com/repos/janedbal/doctrine2/tags","blobs_url":"https://api.github.com/repos/janedbal/doctrine2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/janedbal/doctrine2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/janedbal/doctrine2/git/refs{/sha}","trees_url":"https://api.github.com/repos/janedbal/doctrine2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/janedbal/doctrine2/statuses/{sha}","languages_url":"https://api.github.com/repos/janedbal/doctrine2/languages","stargazers_url":"https://api.github.com/repos/janedbal/doctrine2/stargazers","contributors_url":"https://api.github.com/repos/janedbal/doctrine2/contributors","subscribers_url":"https://api.github.com/repos/janedbal/doctrine2/subscribers","subscription_url":"https://api.github.com/repos/janedbal/doctrine2/subscription","commits_url":"https://api.github.com/repos/janedbal/doctrine2/commits{/sha}","git_commits_url":"https://api.github.com/repos/janedbal/doctrine2/git/commits{/sha}","comments_url":"https://api.github.com/repos/janedbal/doctrine2/comments{/number}","issue_comment_url":"https://api.github.com/repos/janedbal/doctrine2/issues/comments{/number}","contents_url":"https://api.github.com/repos/janedbal/doctrine2/contents/{+path}","compare_url":"https://api.github.com/repos/janedbal/doctrine2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/janedbal/doctrine2/merges","archive_url":"https://api.github.com/repos/janedbal/doctrine2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/janedbal/doctrine2/downloads","issues_url":"https://api.github.com/repos/janedbal/doctrine2/issues{/number}","pulls_url":"https://api.github.com/repos/janedbal/doctrine2/pulls{/number}","milestones_url":"https://api.github.com/repos/janedbal/doctrine2/milestones{/number}","notifications_url":"https://api.github.com/repos/janedbal/doctrine2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/janedbal/doctrine2/labels{/name}","releases_url":"https://api.github.com/repos/janedbal/doctrine2/releases{/id}","deployments_url":"https://api.github.com/repos/janedbal/doctrine2/deployments","created_at":"2016-11-25T15:11:40Z","updated_at":"2016-11-25T15:11:45Z","pushed_at":"2016-11-26T11:53:03Z","git_url":"git://github.com/janedbal/doctrine2.git","ssh_url":"git@github.com:janedbal/doctrine2.git","clone_url":"https://github.com/janedbal/doctrine2.git","svn_url":"https://github.com/janedbal/doctrine2","homepage":"http://www.doctrine-project.org","size":28623,"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":"doctrine:master","ref":"master","sha":"4c59ec92820ed2ec7e0854e5b0b6d6e4ac14c694","user":{"login":"doctrine","id":209254,"avatar_url":"https://avatars.githubusercontent.com/u/209254?v=3","gravatar_id":"","url":"https://api.github.com/users/doctrine","html_url":"https://github.com/doctrine","followers_url":"https://api.github.com/users/doctrine/followers","following_url":"https://api.github.com/users/doctrine/following{/other_user}","gists_url":"https://api.github.com/users/doctrine/gists{/gist_id}","starred_url":"https://api.github.com/users/doctrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctrine/subscriptions","organizations_url":"https://api.github.com/users/doctrine/orgs","repos_url":"https://api.github.com/users/doctrine/repos","events_url":"https://api.github.com/users/doctrine/events{/privacy}","received_events_url":"https://api.github.com/users/doctrine/received_events","type":"Organization","site_admin":false},"repo":{"id":597887,"name":"doctrine2","full_name":"doctrine/doctrine2","owner":{"login":"doctrine","id":209254,"avatar_url":"https://avatars.githubusercontent.com/u/209254?v=3","gravatar_id":"","url":"https://api.github.com/users/doctrine","html_url":"https://github.com/doctrine","followers_url":"https://api.github.com/users/doctrine/followers","following_url":"https://api.github.com/users/doctrine/following{/other_user}","gists_url":"https://api.github.com/users/doctrine/gists{/gist_id}","starred_url":"https://api.github.com/users/doctrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctrine/subscriptions","organizations_url":"https://api.github.com/users/doctrine/orgs","repos_url":"https://api.github.com/users/doctrine/repos","events_url":"https://api.github.com/users/doctrine/events{/privacy}","received_events_url":"https://api.github.com/users/doctrine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/doctrine/doctrine2","description":"Doctrine 2 Object Relational Mapper (ORM)","fork":false,"url":"https://api.github.com/repos/doctrine/doctrine2","forks_url":"https://api.github.com/repos/doctrine/doctrine2/forks","keys_url":"https://api.github.com/repos/doctrine/doctrine2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doctrine/doctrine2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doctrine/doctrine2/teams","hooks_url":"https://api.github.com/repos/doctrine/doctrine2/hooks","issue_events_url":"https://api.github.com/repos/doctrine/doctrine2/issues/events{/number}","events_url":"https://api.github.com/repos/doctrine/doctrine2/events","assignees_url":"https://api.github.com/repos/doctrine/doctrine2/assignees{/user}","branches_url":"https://api.github.com/repos/doctrine/doctrine2/branches{/branch}","tags_url":"https://api.github.com/repos/doctrine/doctrine2/tags","blobs_url":"https://api.github.com/repos/doctrine/doctrine2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doctrine/doctrine2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doctrine/doctrine2/git/refs{/sha}","trees_url":"https://api.github.com/repos/doctrine/doctrine2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doctrine/doctrine2/statuses/{sha}","languages_url":"https://api.github.com/repos/doctrine/doctrine2/languages","stargazers_url":"https://api.github.com/repos/doctrine/doctrine2/stargazers","contributors_url":"https://api.github.com/repos/doctrine/doctrine2/contributors","subscribers_url":"https://api.github.com/repos/doctrine/doctrine2/subscribers","subscription_url":"https://api.github.com/repos/doctrine/doctrine2/subscription","commits_url":"https://api.github.com/repos/doctrine/doctrine2/commits{/sha}","git_commits_url":"https://api.github.com/repos/doctrine/doctrine2/git/commits{/sha}","comments_url":"https://api.github.com/repos/doctrine/doctrine2/comments{/number}","issue_comment_url":"https://api.github.com/repos/doctrine/doctrine2/issues/comments{/number}","contents_url":"https://api.github.com/repos/doctrine/doctrine2/contents/{+path}","compare_url":"https://api.github.com/repos/doctrine/doctrine2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doctrine/doctrine2/merges","archive_url":"https://api.github.com/repos/doctrine/doctrine2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doctrine/doctrine2/downloads","issues_url":"https://api.github.com/repos/doctrine/doctrine2/issues{/number}","pulls_url":"https://api.github.com/repos/doctrine/doctrine2/pulls{/number}","milestones_url":"https://api.github.com/repos/doctrine/doctrine2/milestones{/number}","notifications_url":"https://api.github.com/repos/doctrine/doctrine2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doctrine/doctrine2/labels{/name}","releases_url":"https://api.github.com/repos/doctrine/doctrine2/releases{/id}","deployments_url":"https://api.github.com/repos/doctrine/doctrine2/deployments","created_at":"2010-04-06T21:42:59Z","updated_at":"2016-11-26T04:35:47Z","pushed_at":"2016-11-26T11:53:04Z","git_url":"git://github.com/doctrine/doctrine2.git","ssh_url":"git@github.com:doctrine/doctrine2.git","clone_url":"https://github.com/doctrine/doctrine2.git","svn_url":"https://github.com/doctrine/doctrine2","homepage":"http://www.doctrine-project.org","size":39557,"stargazers_count":3328,"watchers_count":3328,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1623,"mirror_url":null,"open_issues_count":1158,"forks":1623,"open_issues":1158,"watchers":3328,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/doctrine/doctrine2/pulls/6149"},"html":{"href":"https://github.com/doctrine/doctrine2/pull/6149"},"issue":{"href":"https://api.github.com/repos/doctrine/doctrine2/issues/6149"},"comments":{"href":"https://api.github.com/repos/doctrine/doctrine2/issues/6149/comments"},"review_comments":{"href":"https://api.github.com/repos/doctrine/doctrine2/pulls/6149/comments"},"review_comment":{"href":"https://api.github.com/repos/doctrine/doctrine2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/doctrine/doctrine2/pulls/6149/commits"},"statuses":{"href":"https://api.github.com/repos/doctrine/doctrine2/statuses/b6adbff708e3c03216f43866a5e287a64fd5a776"}}}}
{"actor":{"display_login":"janedbal"}}