{"action":"created","comment":{"url":"https://api.github.com/repos/api-platform/docs/pulls/comments/258414928","pull_request_review_id":205675204,"id":258414928,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1ODQxNDkyOA==","diff_hunk":"@@ -367,3 +367,36 @@ api_platform:\n ```\n \n In this example, only `severity` and `anotherPayloadField` will be serialized.\n+\n+## Validation on collection relations\n+\n+Note: this is related to the [collection relation denormalization](./serialization.md#collection-relation).\n+You may have an issue when trying to validate a relation representing a collection (`toMany`). After fixing the denormalization by using a getter that returns `$collectionRelation->getValues()`, you should define your validation on the getter instead of the property.\n+\n+For example:\n+\n+```yaml\n+<getter property=\"foos\">","path":"core/validation.md","position":13,"original_position":13,"commit_id":"d8efb10dff5848b98a9c0bff8c0e75cc94c64965","original_commit_id":"d8efb10dff5848b98a9c0bff8c0e75cc94c64965","user":{"login":"alanpoulain","id":10920253,"node_id":"MDQ6VXNlcjEwOTIwMjUz","avatar_url":"https://avatars1.githubusercontent.com/u/10920253?v=4","gravatar_id":"","url":"https://api.github.com/users/alanpoulain","html_url":"https://github.com/alanpoulain","followers_url":"https://api.github.com/users/alanpoulain/followers","following_url":"https://api.github.com/users/alanpoulain/following{/other_user}","gists_url":"https://api.github.com/users/alanpoulain/gists{/gist_id}","starred_url":"https://api.github.com/users/alanpoulain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanpoulain/subscriptions","organizations_url":"https://api.github.com/users/alanpoulain/orgs","repos_url":"https://api.github.com/users/alanpoulain/repos","events_url":"https://api.github.com/users/alanpoulain/events{/privacy}","received_events_url":"https://api.github.com/users/alanpoulain/received_events","type":"User","site_admin":false},"body":"foos?","created_at":"2019-02-20T10:16:40Z","updated_at":"2019-02-20T10:16:40Z","html_url":"https://github.com/api-platform/docs/pull/740#discussion_r258414928","pull_request_url":"https://api.github.com/repos/api-platform/docs/pulls/740","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/api-platform/docs/pulls/comments/258414928"},"html":{"href":"https://github.com/api-platform/docs/pull/740#discussion_r258414928"},"pull_request":{"href":"https://api.github.com/repos/api-platform/docs/pulls/740"}}},"pull_request":{"url":"https://api.github.com/repos/api-platform/docs/pulls/740","id":254569168,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU0NTY5MTY4","html_url":"https://github.com/api-platform/docs/pull/740","diff_url":"https://github.com/api-platform/docs/pull/740.diff","patch_url":"https://github.com/api-platform/docs/pull/740.patch","issue_url":"https://api.github.com/repos/api-platform/docs/issues/740","number":740,"state":"open","locked":false,"title":"fix #504","user":{"login":"soyuka","id":1321971,"node_id":"MDQ6VXNlcjEzMjE5NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1321971?v=4","gravatar_id":"","url":"https://api.github.com/users/soyuka","html_url":"https://github.com/soyuka","followers_url":"https://api.github.com/users/soyuka/followers","following_url":"https://api.github.com/users/soyuka/following{/other_user}","gists_url":"https://api.github.com/users/soyuka/gists{/gist_id}","starred_url":"https://api.github.com/users/soyuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soyuka/subscriptions","organizations_url":"https://api.github.com/users/soyuka/orgs","repos_url":"https://api.github.com/users/soyuka/repos","events_url":"https://api.github.com/users/soyuka/events{/privacy}","received_events_url":"https://api.github.com/users/soyuka/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-02-20T09:57:30Z","updated_at":"2019-02-20T10:16:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88d2d6a27a7befa2b9b991871cddc9748faa498a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/api-platform/docs/pulls/740/commits","review_comments_url":"https://api.github.com/repos/api-platform/docs/pulls/740/comments","review_comment_url":"https://api.github.com/repos/api-platform/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/api-platform/docs/issues/740/comments","statuses_url":"https://api.github.com/repos/api-platform/docs/statuses/d8efb10dff5848b98a9c0bff8c0e75cc94c64965","head":{"label":"soyuka:to-many","ref":"to-many","sha":"d8efb10dff5848b98a9c0bff8c0e75cc94c64965","user":{"login":"soyuka","id":1321971,"node_id":"MDQ6VXNlcjEzMjE5NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1321971?v=4","gravatar_id":"","url":"https://api.github.com/users/soyuka","html_url":"https://github.com/soyuka","followers_url":"https://api.github.com/users/soyuka/followers","following_url":"https://api.github.com/users/soyuka/following{/other_user}","gists_url":"https://api.github.com/users/soyuka/gists{/gist_id}","starred_url":"https://api.github.com/users/soyuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soyuka/subscriptions","organizations_url":"https://api.github.com/users/soyuka/orgs","repos_url":"https://api.github.com/users/soyuka/repos","events_url":"https://api.github.com/users/soyuka/events{/privacy}","received_events_url":"https://api.github.com/users/soyuka/received_events","type":"User","site_admin":false},"repo":{"id":49493131,"node_id":"MDEwOlJlcG9zaXRvcnk0OTQ5MzEzMQ==","name":"doc","full_name":"soyuka/doc","private":false,"owner":{"login":"soyuka","id":1321971,"node_id":"MDQ6VXNlcjEzMjE5NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1321971?v=4","gravatar_id":"","url":"https://api.github.com/users/soyuka","html_url":"https://github.com/soyuka","followers_url":"https://api.github.com/users/soyuka/followers","following_url":"https://api.github.com/users/soyuka/following{/other_user}","gists_url":"https://api.github.com/users/soyuka/gists{/gist_id}","starred_url":"https://api.github.com/users/soyuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soyuka/subscriptions","organizations_url":"https://api.github.com/users/soyuka/orgs","repos_url":"https://api.github.com/users/soyuka/repos","events_url":"https://api.github.com/users/soyuka/events{/privacy}","received_events_url":"https://api.github.com/users/soyuka/received_events","type":"User","site_admin":false},"html_url":"https://github.com/soyuka/doc","description":"API Platform documentation","fork":true,"url":"https://api.github.com/repos/soyuka/doc","forks_url":"https://api.github.com/repos/soyuka/doc/forks","keys_url":"https://api.github.com/repos/soyuka/doc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/soyuka/doc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/soyuka/doc/teams","hooks_url":"https://api.github.com/repos/soyuka/doc/hooks","issue_events_url":"https://api.github.com/repos/soyuka/doc/issues/events{/number}","events_url":"https://api.github.com/repos/soyuka/doc/events","assignees_url":"https://api.github.com/repos/soyuka/doc/assignees{/user}","branches_url":"https://api.github.com/repos/soyuka/doc/branches{/branch}","tags_url":"https://api.github.com/repos/soyuka/doc/tags","blobs_url":"https://api.github.com/repos/soyuka/doc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/soyuka/doc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/soyuka/doc/git/refs{/sha}","trees_url":"https://api.github.com/repos/soyuka/doc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/soyuka/doc/statuses/{sha}","languages_url":"https://api.github.com/repos/soyuka/doc/languages","stargazers_url":"https://api.github.com/repos/soyuka/doc/stargazers","contributors_url":"https://api.github.com/repos/soyuka/doc/contributors","subscribers_url":"https://api.github.com/repos/soyuka/doc/subscribers","subscription_url":"https://api.github.com/repos/soyuka/doc/subscription","commits_url":"https://api.github.com/repos/soyuka/doc/commits{/sha}","git_commits_url":"https://api.github.com/repos/soyuka/doc/git/commits{/sha}","comments_url":"https://api.github.com/repos/soyuka/doc/comments{/number}","issue_comment_url":"https://api.github.com/repos/soyuka/doc/issues/comments{/number}","contents_url":"https://api.github.com/repos/soyuka/doc/contents/{+path}","compare_url":"https://api.github.com/repos/soyuka/doc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/soyuka/doc/merges","archive_url":"https://api.github.com/repos/soyuka/doc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/soyuka/doc/downloads","issues_url":"https://api.github.com/repos/soyuka/doc/issues{/number}","pulls_url":"https://api.github.com/repos/soyuka/doc/pulls{/number}","milestones_url":"https://api.github.com/repos/soyuka/doc/milestones{/number}","notifications_url":"https://api.github.com/repos/soyuka/doc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/soyuka/doc/labels{/name}","releases_url":"https://api.github.com/repos/soyuka/doc/releases{/id}","deployments_url":"https://api.github.com/repos/soyuka/doc/deployments","created_at":"2016-01-12T10:38:23Z","updated_at":"2015-09-17T07:30:54Z","pushed_at":"2019-02-20T09:57:22Z","git_url":"git://github.com/soyuka/doc.git","ssh_url":"git@github.com:soyuka/doc.git","clone_url":"https://github.com/soyuka/doc.git","svn_url":"https://github.com/soyuka/doc","homepage":"https://api-platform.com/doc/","size":12701,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"1.0"}},"base":{"label":"api-platform:2.4","ref":"2.4","sha":"63cef672bf9dc9d4b689e49aad53b996e1e7006f","user":{"login":"api-platform","id":13420081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDIwMDgx","avatar_url":"https://avatars3.githubusercontent.com/u/13420081?v=4","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":38251565,"node_id":"MDEwOlJlcG9zaXRvcnkzODI1MTU2NQ==","name":"docs","full_name":"api-platform/docs","private":false,"owner":{"login":"api-platform","id":13420081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDIwMDgx","avatar_url":"https://avatars3.githubusercontent.com/u/13420081?v=4","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},"html_url":"https://github.com/api-platform/docs","description":"API Platform documentation","fork":false,"url":"https://api.github.com/repos/api-platform/docs","forks_url":"https://api.github.com/repos/api-platform/docs/forks","keys_url":"https://api.github.com/repos/api-platform/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/api-platform/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/api-platform/docs/teams","hooks_url":"https://api.github.com/repos/api-platform/docs/hooks","issue_events_url":"https://api.github.com/repos/api-platform/docs/issues/events{/number}","events_url":"https://api.github.com/repos/api-platform/docs/events","assignees_url":"https://api.github.com/repos/api-platform/docs/assignees{/user}","branches_url":"https://api.github.com/repos/api-platform/docs/branches{/branch}","tags_url":"https://api.github.com/repos/api-platform/docs/tags","blobs_url":"https://api.github.com/repos/api-platform/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/api-platform/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/api-platform/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/api-platform/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/api-platform/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/api-platform/docs/languages","stargazers_url":"https://api.github.com/repos/api-platform/docs/stargazers","contributors_url":"https://api.github.com/repos/api-platform/docs/contributors","subscribers_url":"https://api.github.com/repos/api-platform/docs/subscribers","subscription_url":"https://api.github.com/repos/api-platform/docs/subscription","commits_url":"https://api.github.com/repos/api-platform/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/api-platform/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/api-platform/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/api-platform/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/api-platform/docs/contents/{+path}","compare_url":"https://api.github.com/repos/api-platform/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/api-platform/docs/merges","archive_url":"https://api.github.com/repos/api-platform/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/api-platform/docs/downloads","issues_url":"https://api.github.com/repos/api-platform/docs/issues{/number}","pulls_url":"https://api.github.com/repos/api-platform/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/api-platform/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/api-platform/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/api-platform/docs/labels{/name}","releases_url":"https://api.github.com/repos/api-platform/docs/releases{/id}","deployments_url":"https://api.github.com/repos/api-platform/docs/deployments","created_at":"2015-06-29T14:19:34Z","updated_at":"2019-02-20T10:08:13Z","pushed_at":"2019-02-20T10:06:19Z","git_url":"git://github.com/api-platform/docs.git","ssh_url":"git@github.com:api-platform/docs.git","clone_url":"https://github.com/api-platform/docs.git","svn_url":"https://github.com/api-platform/docs","homepage":"https://api-platform.com/docs/","size":19578,"stargazers_count":73,"watchers_count":73,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":327,"mirror_url":null,"archived":false,"open_issues_count":62,"license":null,"forks":327,"open_issues":62,"watchers":73,"default_branch":"2.4"}},"_links":{"self":{"href":"https://api.github.com/repos/api-platform/docs/pulls/740"},"html":{"href":"https://github.com/api-platform/docs/pull/740"},"issue":{"href":"https://api.github.com/repos/api-platform/docs/issues/740"},"comments":{"href":"https://api.github.com/repos/api-platform/docs/issues/740/comments"},"review_comments":{"href":"https://api.github.com/repos/api-platform/docs/pulls/740/comments"},"review_comment":{"href":"https://api.github.com/repos/api-platform/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/api-platform/docs/pulls/740/commits"},"statuses":{"href":"https://api.github.com/repos/api-platform/docs/statuses/d8efb10dff5848b98a9c0bff8c0e75cc94c64965"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"alanpoulain"}}