{"action":"created","comment":{"url":"https://api.github.com/repos/api-platform/docs/pulls/comments/199182409","pull_request_review_id":133255553,"id":199182409,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTE4MjQwOQ==","diff_hunk":"@@ -0,0 +1,68 @@\n+# Data Persisters\n+\n+To mutate the application states during `POST`, `PUT`, `PATCH` or `DELETE` [operations](operations.md), API Platform calls\n+classes called **data persisters**. Data persisters receive an instance of the class marked as an API resource (usually using\n+the `@ApiResource` annotation). This instance has been created using data submitted by the client during [the deserialization\n+process](serialization.md).\n+\n+A data persister using [Doctrine ORM](http://www.doctrine-project.org/projects/orm.html) is included with the library and\n+is enabled by default. It is able to persist and delete objects that are also mapped as [Doctrine entities](https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/basic-mapping.html).\n+\n+However, you may want to store data to other persistence layers (ElasticSearch or MongoDB), to separate the public model\n+of the API and the internal model mapped with the database; or to use patterns such as [CQRS](https://martinfowler.com/bliki/CQRS.html)","path":"core/data-persisters.md","position":12,"original_position":12,"commit_id":"8d463ee8843353cea415b636b7d148cf7b381315","original_commit_id":"13e7159b8e30e17de17f5c7365e3b50bcb001632","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":"`,` instead of `;` and remove `or`?\r\nMissing `,` after `[CQRS](https://martinfowler.com/bliki/CQRS.html)`?","created_at":"2018-06-29T14:44:32Z","updated_at":"2018-06-29T14:51:43Z","html_url":"https://github.com/api-platform/docs/pull/518#discussion_r199182409","pull_request_url":"https://api.github.com/repos/api-platform/docs/pulls/518","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/api-platform/docs/pulls/comments/199182409"},"html":{"href":"https://github.com/api-platform/docs/pull/518#discussion_r199182409"},"pull_request":{"href":"https://api.github.com/repos/api-platform/docs/pulls/518"}}},"pull_request":{"url":"https://api.github.com/repos/api-platform/docs/pulls/518","id":198323824,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MzIzODI0","html_url":"https://github.com/api-platform/docs/pull/518","diff_url":"https://github.com/api-platform/docs/pull/518.diff","patch_url":"https://github.com/api-platform/docs/pull/518.patch","issue_url":"https://api.github.com/repos/api-platform/docs/issues/518","number":518,"state":"open","locked":false,"title":"Add docs for data persisters","user":{"login":"dunglas","id":57224,"node_id":"MDQ6VXNlcjU3MjI0","avatar_url":"https://avatars2.githubusercontent.com/u/57224?v=4","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"body":"Documentation for api-platform/core#1464","created_at":"2018-06-29T13:51:44Z","updated_at":"2018-06-29T14:51:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b08ec45c11c3fff3f4fa1fd2afef9f1bc5a98ae","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/api-platform/docs/pulls/518/commits","review_comments_url":"https://api.github.com/repos/api-platform/docs/pulls/518/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/518/comments","statuses_url":"https://api.github.com/repos/api-platform/docs/statuses/8d463ee8843353cea415b636b7d148cf7b381315","head":{"label":"dunglas:data-persister","ref":"data-persister","sha":"8d463ee8843353cea415b636b7d148cf7b381315","user":{"login":"dunglas","id":57224,"node_id":"MDQ6VXNlcjU3MjI0","avatar_url":"https://avatars2.githubusercontent.com/u/57224?v=4","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"repo":{"id":53446876,"node_id":"MDEwOlJlcG9zaXRvcnk1MzQ0Njg3Ng==","name":"doc","full_name":"dunglas/doc","owner":{"login":"dunglas","id":57224,"node_id":"MDQ6VXNlcjU3MjI0","avatar_url":"https://avatars2.githubusercontent.com/u/57224?v=4","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dunglas/doc","description":"API Platform documentation","fork":true,"url":"https://api.github.com/repos/dunglas/doc","forks_url":"https://api.github.com/repos/dunglas/doc/forks","keys_url":"https://api.github.com/repos/dunglas/doc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dunglas/doc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dunglas/doc/teams","hooks_url":"https://api.github.com/repos/dunglas/doc/hooks","issue_events_url":"https://api.github.com/repos/dunglas/doc/issues/events{/number}","events_url":"https://api.github.com/repos/dunglas/doc/events","assignees_url":"https://api.github.com/repos/dunglas/doc/assignees{/user}","branches_url":"https://api.github.com/repos/dunglas/doc/branches{/branch}","tags_url":"https://api.github.com/repos/dunglas/doc/tags","blobs_url":"https://api.github.com/repos/dunglas/doc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dunglas/doc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dunglas/doc/git/refs{/sha}","trees_url":"https://api.github.com/repos/dunglas/doc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dunglas/doc/statuses/{sha}","languages_url":"https://api.github.com/repos/dunglas/doc/languages","stargazers_url":"https://api.github.com/repos/dunglas/doc/stargazers","contributors_url":"https://api.github.com/repos/dunglas/doc/contributors","subscribers_url":"https://api.github.com/repos/dunglas/doc/subscribers","subscription_url":"https://api.github.com/repos/dunglas/doc/subscription","commits_url":"https://api.github.com/repos/dunglas/doc/commits{/sha}","git_commits_url":"https://api.github.com/repos/dunglas/doc/git/commits{/sha}","comments_url":"https://api.github.com/repos/dunglas/doc/comments{/number}","issue_comment_url":"https://api.github.com/repos/dunglas/doc/issues/comments{/number}","contents_url":"https://api.github.com/repos/dunglas/doc/contents/{+path}","compare_url":"https://api.github.com/repos/dunglas/doc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dunglas/doc/merges","archive_url":"https://api.github.com/repos/dunglas/doc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dunglas/doc/downloads","issues_url":"https://api.github.com/repos/dunglas/doc/issues{/number}","pulls_url":"https://api.github.com/repos/dunglas/doc/pulls{/number}","milestones_url":"https://api.github.com/repos/dunglas/doc/milestones{/number}","notifications_url":"https://api.github.com/repos/dunglas/doc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dunglas/doc/labels{/name}","releases_url":"https://api.github.com/repos/dunglas/doc/releases{/id}","deployments_url":"https://api.github.com/repos/dunglas/doc/deployments","created_at":"2016-03-08T21:35:56Z","updated_at":"2016-09-06T12:26:16Z","pushed_at":"2018-06-29T14:46:14Z","git_url":"git://github.com/dunglas/doc.git","ssh_url":"git@github.com:dunglas/doc.git","clone_url":"https://github.com/dunglas/doc.git","svn_url":"https://github.com/dunglas/doc","homepage":"https://api-platform.com/doc/","size":4345,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":2,"open_issues":0,"watchers":1,"default_branch":"1.0"}},"base":{"label":"api-platform:2.2","ref":"2.2","sha":"0734d66551b75c195b9ba45337fdca492e68feb3","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","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},"private":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":"2018-06-29T13:29:44Z","pushed_at":"2018-06-29T14:46:17Z","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":8269,"stargazers_count":51,"watchers_count":51,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":204,"mirror_url":null,"archived":false,"open_issues_count":36,"license":null,"forks":204,"open_issues":36,"watchers":51,"default_branch":"2.2"}},"_links":{"self":{"href":"https://api.github.com/repos/api-platform/docs/pulls/518"},"html":{"href":"https://github.com/api-platform/docs/pull/518"},"issue":{"href":"https://api.github.com/repos/api-platform/docs/issues/518"},"comments":{"href":"https://api.github.com/repos/api-platform/docs/issues/518/comments"},"review_comments":{"href":"https://api.github.com/repos/api-platform/docs/pulls/518/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/518/commits"},"statuses":{"href":"https://api.github.com/repos/api-platform/docs/statuses/8d463ee8843353cea415b636b7d148cf7b381315"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"alanpoulain"}}