{"action":"created","comment":{"url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/pulls/comments/23215431","id":23215431,"diff_hunk":"@@ -53,6 +53,11 @@ public function normalize($object, $format = null, array $context = [])\n             ];\n         }\n \n+        foreach ($object->getAssociations() as $association) {\n+            $associationPart = $this->normalizer->normalize($association, 'api_import', $context);\n+            $processedProduct = array_merge($processedProduct, $associationPart);","path":"Normalizer/ProductNormalizer.php","position":6,"original_position":6,"commit_id":"2c19c7ec1975e7744b7478e5974ae4dc1a8297d8","original_commit_id":"2c19c7ec1975e7744b7478e5974ae4dc1a8297d8","user":{"login":"fitn","id":2131005,"avatar_url":"https://avatars.githubusercontent.com/u/2131005?v=3","gravatar_id":"","url":"https://api.github.com/users/fitn","html_url":"https://github.com/fitn","followers_url":"https://api.github.com/users/fitn/followers","following_url":"https://api.github.com/users/fitn/following{/other_user}","gists_url":"https://api.github.com/users/fitn/gists{/gist_id}","starred_url":"https://api.github.com/users/fitn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fitn/subscriptions","organizations_url":"https://api.github.com/users/fitn/orgs","repos_url":"https://api.github.com/users/fitn/repos","events_url":"https://api.github.com/users/fitn/events{/privacy}","received_events_url":"https://api.github.com/users/fitn/received_events","type":"User","site_admin":false},"body":"$assocationPart = $this->normalizeAssociations($association, $format, $context);\r\n$processedProduct = array_merge($processedProduct, $associationPart);\r\n\r\nprotected function normalizeAssociations($object, ...)\r\n{\r\n    return $this->normalizer->normalize($object->getAssociations(), $format, $context);\r\n}","created_at":"2015-01-20T11:13:01Z","updated_at":"2015-01-20T11:13:01Z","html_url":"https://github.com/akeneo/MagentoConnectorBundle/pull/365#discussion_r23215431","pull_request_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/pulls/365","_links":{"self":{"href":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/pulls/comments/23215431"},"html":{"href":"https://github.com/akeneo/MagentoConnectorBundle/pull/365#discussion_r23215431"},"pull_request":{"href":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/pulls/365"}}},"pull_request":{"url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/pulls/365","id":27214109,"html_url":"https://github.com/akeneo/MagentoConnectorBundle/pull/365","diff_url":"https://github.com/akeneo/MagentoConnectorBundle/pull/365.diff","patch_url":"https://github.com/akeneo/MagentoConnectorBundle/pull/365.patch","issue_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/issues/365","number":365,"state":"open","locked":false,"title":"MC-137: Add product associations export in product export code","user":{"login":"willy-ahva","id":7206368,"avatar_url":"https://avatars.githubusercontent.com/u/7206368?v=3","gravatar_id":"","url":"https://api.github.com/users/willy-ahva","html_url":"https://github.com/willy-ahva","followers_url":"https://api.github.com/users/willy-ahva/followers","following_url":"https://api.github.com/users/willy-ahva/following{/other_user}","gists_url":"https://api.github.com/users/willy-ahva/gists{/gist_id}","starred_url":"https://api.github.com/users/willy-ahva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willy-ahva/subscriptions","organizations_url":"https://api.github.com/users/willy-ahva/orgs","repos_url":"https://api.github.com/users/willy-ahva/repos","events_url":"https://api.github.com/users/willy-ahva/events{/privacy}","received_events_url":"https://api.github.com/users/willy-ahva/received_events","type":"User","site_admin":false},"body":"| Q                    | A\r\n| -------------------- | ---\r\n| Bug fix?             | n\r\n| New feature?         | y\r\n| Specs pass?*         | y\r\n| Checkstyle issues?** | n\r\n| PMD issues?***       | n\r\n| Fixed tickets        | MC-137\r\n| Doc PR               |","created_at":"2015-01-12T18:14:22Z","updated_at":"2015-01-20T11:13:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6a5afe2f88bed6b125d5a7ca663aa9a195f629c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/pulls/365/commits","review_comments_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/pulls/365/comments","review_comment_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/pulls/comments/{number}","comments_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/issues/365/comments","statuses_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/statuses/2c19c7ec1975e7744b7478e5974ae4dc1a8297d8","head":{"label":"akeneo:MC-137","ref":"MC-137","sha":"2c19c7ec1975e7744b7478e5974ae4dc1a8297d8","user":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars.githubusercontent.com/u/2510186?v=3","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"repo":{"id":14501490,"name":"MagentoConnectorBundle","full_name":"akeneo/MagentoConnectorBundle","owner":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars.githubusercontent.com/u/2510186?v=3","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akeneo/MagentoConnectorBundle","description":"Akeneo Magento Connector","fork":false,"url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle","forks_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/forks","keys_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/teams","hooks_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/hooks","issue_events_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/issues/events{/number}","events_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/events","assignees_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/assignees{/user}","branches_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/branches{/branch}","tags_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/tags","blobs_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/languages","stargazers_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/stargazers","contributors_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/contributors","subscribers_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/subscribers","subscription_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/subscription","commits_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/issues/comments/{number}","contents_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/contents/{+path}","compare_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/merges","archive_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/downloads","issues_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/issues{/number}","pulls_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/labels{/name}","releases_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/releases{/id}","created_at":"2013-11-18T18:44:05Z","updated_at":"2015-01-20T09:13:09Z","pushed_at":"2015-01-20T11:03:58Z","git_url":"git://github.com/akeneo/MagentoConnectorBundle.git","ssh_url":"git@github.com:akeneo/MagentoConnectorBundle.git","clone_url":"https://github.com/akeneo/MagentoConnectorBundle.git","svn_url":"https://github.com/akeneo/MagentoConnectorBundle","homepage":"","size":8367,"stargazers_count":37,"watchers_count":37,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":40,"forks":16,"open_issues":40,"watchers":37,"default_branch":"master"}},"base":{"label":"akeneo:2.0","ref":"2.0","sha":"0f72bf9fa5b14546e262d9bbe505c706c0b3cd1a","user":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars.githubusercontent.com/u/2510186?v=3","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"repo":{"id":14501490,"name":"MagentoConnectorBundle","full_name":"akeneo/MagentoConnectorBundle","owner":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars.githubusercontent.com/u/2510186?v=3","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akeneo/MagentoConnectorBundle","description":"Akeneo Magento Connector","fork":false,"url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle","forks_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/forks","keys_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/teams","hooks_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/hooks","issue_events_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/issues/events{/number}","events_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/events","assignees_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/assignees{/user}","branches_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/branches{/branch}","tags_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/tags","blobs_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/languages","stargazers_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/stargazers","contributors_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/contributors","subscribers_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/subscribers","subscription_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/subscription","commits_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/issues/comments/{number}","contents_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/contents/{+path}","compare_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/merges","archive_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/downloads","issues_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/issues{/number}","pulls_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/labels{/name}","releases_url":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/releases{/id}","created_at":"2013-11-18T18:44:05Z","updated_at":"2015-01-20T09:13:09Z","pushed_at":"2015-01-20T11:03:58Z","git_url":"git://github.com/akeneo/MagentoConnectorBundle.git","ssh_url":"git@github.com:akeneo/MagentoConnectorBundle.git","clone_url":"https://github.com/akeneo/MagentoConnectorBundle.git","svn_url":"https://github.com/akeneo/MagentoConnectorBundle","homepage":"","size":8367,"stargazers_count":37,"watchers_count":37,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":40,"forks":16,"open_issues":40,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/pulls/365"},"html":{"href":"https://github.com/akeneo/MagentoConnectorBundle/pull/365"},"issue":{"href":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/issues/365"},"comments":{"href":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/issues/365/comments"},"review_comments":{"href":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/pulls/365/comments"},"review_comment":{"href":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/pulls/365/commits"},"statuses":{"href":"https://api.github.com/repos/akeneo/MagentoConnectorBundle/statuses/2c19c7ec1975e7744b7478e5974ae4dc1a8297d8"}}}}