{"action":"created","comment":{"url":"https://api.github.com/repos/cakephp/docs/pulls/comments/84420993","pull_request_review_id":5200900,"id":84420993,"diff_hunk":"@@ -8,13 +8,56 @@ Deleting Data\n \n .. php:method:: delete(Entity $entity, $options = [])\n \n+読み込んだエンティティは、テーブル本来の削除メソッドを呼びだすことによって削除することが出来ます::\n+\n+    // コントローラーの中\n+    $entity = $this->Articles->get(2);\n+    $result = $this->Articles->delete($entity);\n+\n+エンティティ削除時には、いくつかのことが起こります:\n+\n+1. :ref:`削除ルール <application-rules>` が適用されます。 ルールのチェックに失敗した場合、削除は中止されます。\n+2. ``Model.beforeDelete`` イベントが起動されます。このイベントが停止した場合、削除は失敗し、イベントの戻り値が返されます。\n+3. エンティティが削除されます。\n+4. 全ての依存関係先が削除されます。依存関係先がエンティティとして削除されるとき、追加のイベントが起動されます。\n+5. BelongsToMany アソシエーション用の全ての結合テーブルのレコードが削除されます。\n+5. 全ての結合テーブルのレコードが削除されます。","path":"ja/orm/deleting-data.rst","position":null,"original_position":25,"commit_id":"e7a97fc5faf9f83bc111f739e655c6dc993463ab","original_commit_id":"f339a58856a0d3cf1050a17c03ad940ce3836a19","user":{"login":"boarnasia","id":20717328,"avatar_url":"https://avatars.githubusercontent.com/u/20717328?v=3","gravatar_id":"","url":"https://api.github.com/users/boarnasia","html_url":"https://github.com/boarnasia","followers_url":"https://api.github.com/users/boarnasia/followers","following_url":"https://api.github.com/users/boarnasia/following{/other_user}","gists_url":"https://api.github.com/users/boarnasia/gists{/gist_id}","starred_url":"https://api.github.com/users/boarnasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boarnasia/subscriptions","organizations_url":"https://api.github.com/users/boarnasia/orgs","repos_url":"https://api.github.com/users/boarnasia/repos","events_url":"https://api.github.com/users/boarnasia/events{/privacy}","received_events_url":"https://api.github.com/users/boarnasia/received_events","type":"User","site_admin":false},"body":"I've fixed it.","created_at":"2016-10-21T05:31:54Z","updated_at":"2016-10-21T05:31:54Z","html_url":"https://github.com/cakephp/docs/pull/4393#discussion_r84420993","pull_request_url":"https://api.github.com/repos/cakephp/docs/pulls/4393","_links":{"self":{"href":"https://api.github.com/repos/cakephp/docs/pulls/comments/84420993"},"html":{"href":"https://github.com/cakephp/docs/pull/4393#discussion_r84420993"},"pull_request":{"href":"https://api.github.com/repos/cakephp/docs/pulls/4393"}}},"pull_request":{"url":"https://api.github.com/repos/cakephp/docs/pulls/4393","id":89192141,"html_url":"https://github.com/cakephp/docs/pull/4393","diff_url":"https://github.com/cakephp/docs/pull/4393.diff","patch_url":"https://github.com/cakephp/docs/pull/4393.patch","issue_url":"https://api.github.com/repos/cakephp/docs/issues/4393","number":4393,"state":"open","locked":false,"title":"[ja] translation orm/deleting-data.rst","user":{"login":"boarnasia","id":20717328,"avatar_url":"https://avatars.githubusercontent.com/u/20717328?v=3","gravatar_id":"","url":"https://api.github.com/users/boarnasia","html_url":"https://github.com/boarnasia","followers_url":"https://api.github.com/users/boarnasia/followers","following_url":"https://api.github.com/users/boarnasia/following{/other_user}","gists_url":"https://api.github.com/users/boarnasia/gists{/gist_id}","starred_url":"https://api.github.com/users/boarnasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boarnasia/subscriptions","organizations_url":"https://api.github.com/users/boarnasia/orgs","repos_url":"https://api.github.com/users/boarnasia/repos","events_url":"https://api.github.com/users/boarnasia/events{/privacy}","received_events_url":"https://api.github.com/users/boarnasia/received_events","type":"User","site_admin":false},"body":"Hi, there.\r\n\r\nI've translated orm/deleting-data.rst.","created_at":"2016-10-13T12:29:30Z","updated_at":"2016-10-21T05:31:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"342be6567e51ec47ff488ec85fb31c4a52662d74","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/cakephp/docs/milestones/1","html_url":"https://github.com/cakephp/docs/milestones/3.x","labels_url":"https://api.github.com/repos/cakephp/docs/milestones/1/labels","id":629438,"number":1,"title":"3.x","description":"","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":33,"closed_issues":1953,"state":"open","created_at":"2014-04-14T15:44:13Z","updated_at":"2016-10-20T02:10:59Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/cakephp/docs/pulls/4393/commits","review_comments_url":"https://api.github.com/repos/cakephp/docs/pulls/4393/comments","review_comment_url":"https://api.github.com/repos/cakephp/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cakephp/docs/issues/4393/comments","statuses_url":"https://api.github.com/repos/cakephp/docs/statuses/e7a97fc5faf9f83bc111f739e655c6dc993463ab","head":{"label":"boarnasia:3.0","ref":"3.0","sha":"e7a97fc5faf9f83bc111f739e655c6dc993463ab","user":{"login":"boarnasia","id":20717328,"avatar_url":"https://avatars.githubusercontent.com/u/20717328?v=3","gravatar_id":"","url":"https://api.github.com/users/boarnasia","html_url":"https://github.com/boarnasia","followers_url":"https://api.github.com/users/boarnasia/followers","following_url":"https://api.github.com/users/boarnasia/following{/other_user}","gists_url":"https://api.github.com/users/boarnasia/gists{/gist_id}","starred_url":"https://api.github.com/users/boarnasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boarnasia/subscriptions","organizations_url":"https://api.github.com/users/boarnasia/orgs","repos_url":"https://api.github.com/users/boarnasia/repos","events_url":"https://api.github.com/users/boarnasia/events{/privacy}","received_events_url":"https://api.github.com/users/boarnasia/received_events","type":"User","site_admin":false},"repo":{"id":64468207,"name":"docs","full_name":"boarnasia/docs","owner":{"login":"boarnasia","id":20717328,"avatar_url":"https://avatars.githubusercontent.com/u/20717328?v=3","gravatar_id":"","url":"https://api.github.com/users/boarnasia","html_url":"https://github.com/boarnasia","followers_url":"https://api.github.com/users/boarnasia/followers","following_url":"https://api.github.com/users/boarnasia/following{/other_user}","gists_url":"https://api.github.com/users/boarnasia/gists{/gist_id}","starred_url":"https://api.github.com/users/boarnasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boarnasia/subscriptions","organizations_url":"https://api.github.com/users/boarnasia/orgs","repos_url":"https://api.github.com/users/boarnasia/repos","events_url":"https://api.github.com/users/boarnasia/events{/privacy}","received_events_url":"https://api.github.com/users/boarnasia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/boarnasia/docs","description":"CakePHP CookBook","fork":true,"url":"https://api.github.com/repos/boarnasia/docs","forks_url":"https://api.github.com/repos/boarnasia/docs/forks","keys_url":"https://api.github.com/repos/boarnasia/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boarnasia/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boarnasia/docs/teams","hooks_url":"https://api.github.com/repos/boarnasia/docs/hooks","issue_events_url":"https://api.github.com/repos/boarnasia/docs/issues/events{/number}","events_url":"https://api.github.com/repos/boarnasia/docs/events","assignees_url":"https://api.github.com/repos/boarnasia/docs/assignees{/user}","branches_url":"https://api.github.com/repos/boarnasia/docs/branches{/branch}","tags_url":"https://api.github.com/repos/boarnasia/docs/tags","blobs_url":"https://api.github.com/repos/boarnasia/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boarnasia/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boarnasia/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/boarnasia/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boarnasia/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/boarnasia/docs/languages","stargazers_url":"https://api.github.com/repos/boarnasia/docs/stargazers","contributors_url":"https://api.github.com/repos/boarnasia/docs/contributors","subscribers_url":"https://api.github.com/repos/boarnasia/docs/subscribers","subscription_url":"https://api.github.com/repos/boarnasia/docs/subscription","commits_url":"https://api.github.com/repos/boarnasia/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/boarnasia/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/boarnasia/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/boarnasia/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/boarnasia/docs/contents/{+path}","compare_url":"https://api.github.com/repos/boarnasia/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boarnasia/docs/merges","archive_url":"https://api.github.com/repos/boarnasia/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boarnasia/docs/downloads","issues_url":"https://api.github.com/repos/boarnasia/docs/issues{/number}","pulls_url":"https://api.github.com/repos/boarnasia/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/boarnasia/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/boarnasia/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boarnasia/docs/labels{/name}","releases_url":"https://api.github.com/repos/boarnasia/docs/releases{/id}","deployments_url":"https://api.github.com/repos/boarnasia/docs/deployments","created_at":"2016-07-29T09:23:10Z","updated_at":"2016-07-29T09:23:14Z","pushed_at":"2016-10-21T05:29:58Z","git_url":"git://github.com/boarnasia/docs.git","ssh_url":"git@github.com:boarnasia/docs.git","clone_url":"https://github.com/boarnasia/docs.git","svn_url":"https://github.com/boarnasia/docs","homepage":"http://book.cakephp.org","size":43922,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"cakephp:3.0","ref":"3.0","sha":"7552a8f717b23235bff42dde74a3d44ed9139e7b","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"repo":{"id":1514950,"name":"docs","full_name":"cakephp/docs","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cakephp/docs","description":"CakePHP CookBook","fork":false,"url":"https://api.github.com/repos/cakephp/docs","forks_url":"https://api.github.com/repos/cakephp/docs/forks","keys_url":"https://api.github.com/repos/cakephp/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/docs/teams","hooks_url":"https://api.github.com/repos/cakephp/docs/hooks","issue_events_url":"https://api.github.com/repos/cakephp/docs/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/docs/events","assignees_url":"https://api.github.com/repos/cakephp/docs/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/docs/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/docs/tags","blobs_url":"https://api.github.com/repos/cakephp/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/docs/languages","stargazers_url":"https://api.github.com/repos/cakephp/docs/stargazers","contributors_url":"https://api.github.com/repos/cakephp/docs/contributors","subscribers_url":"https://api.github.com/repos/cakephp/docs/subscribers","subscription_url":"https://api.github.com/repos/cakephp/docs/subscription","commits_url":"https://api.github.com/repos/cakephp/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/docs/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/docs/merges","archive_url":"https://api.github.com/repos/cakephp/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/docs/downloads","issues_url":"https://api.github.com/repos/cakephp/docs/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/docs/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/docs/releases{/id}","deployments_url":"https://api.github.com/repos/cakephp/docs/deployments","created_at":"2011-03-23T04:54:13Z","updated_at":"2016-10-14T03:04:59Z","pushed_at":"2016-10-21T05:30:00Z","git_url":"git://github.com/cakephp/docs.git","ssh_url":"git@github.com:cakephp/docs.git","clone_url":"https://github.com/cakephp/docs.git","svn_url":"https://github.com/cakephp/docs","homepage":"http://book.cakephp.org","size":52654,"stargazers_count":540,"watchers_count":540,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2185,"mirror_url":null,"open_issues_count":46,"forks":2185,"open_issues":46,"watchers":540,"default_branch":"3.0"}},"_links":{"self":{"href":"https://api.github.com/repos/cakephp/docs/pulls/4393"},"html":{"href":"https://github.com/cakephp/docs/pull/4393"},"issue":{"href":"https://api.github.com/repos/cakephp/docs/issues/4393"},"comments":{"href":"https://api.github.com/repos/cakephp/docs/issues/4393/comments"},"review_comments":{"href":"https://api.github.com/repos/cakephp/docs/pulls/4393/comments"},"review_comment":{"href":"https://api.github.com/repos/cakephp/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cakephp/docs/pulls/4393/commits"},"statuses":{"href":"https://api.github.com/repos/cakephp/docs/statuses/e7a97fc5faf9f83bc111f739e655c6dc993463ab"}}}}
{"actor":{"display_login":"boarnasia"}}