{"action":"created","comment":{"url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/pulls/comments/28472907","id":28472907,"diff_hunk":"@@ -42,7 +42,20 @@ class UsersTable extends Table\n     ...\n ```\n \n-3. Your soft deletable model database table should have a field called `deleted` of type DateTime with NULL as default value.\n+3. Your soft deletable model database table should have a field called `deleted` of type DateTime with NULL as default value. If you want to customise this field you can declare the field in your Table class.\n+\n+```php\n+// in src/Model/Table/UsersTable.php\n+...\n+use SoftDelete\\Model\\Table\\SoftDeleteTrait;\n+\n+class UsersTable extends Table\n+{\n+    use SoftDeleteTrait;\n+    \n+    public $softDeleteField = 'deleted_date';","path":"README.md","position":16,"original_position":16,"commit_id":"66e75bd1ae9249126daaaf5d5fb4577dd8a2a07c","original_commit_id":"66e75bd1ae9249126daaaf5d5fb4577dd8a2a07c","user":{"login":"PGBI","id":6191583,"avatar_url":"https://avatars.githubusercontent.com/u/6191583?v=3","gravatar_id":"","url":"https://api.github.com/users/PGBI","html_url":"https://github.com/PGBI","followers_url":"https://api.github.com/users/PGBI/followers","following_url":"https://api.github.com/users/PGBI/following{/other_user}","gists_url":"https://api.github.com/users/PGBI/gists{/gist_id}","starred_url":"https://api.github.com/users/PGBI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PGBI/subscriptions","organizations_url":"https://api.github.com/users/PGBI/orgs","repos_url":"https://api.github.com/users/PGBI/repos","events_url":"https://api.github.com/users/PGBI/events{/privacy}","received_events_url":"https://api.github.com/users/PGBI/received_events","type":"User","site_admin":false},"body":"I think it's better if $softDeleteField is private.","created_at":"2015-04-15T23:24:32Z","updated_at":"2015-04-15T23:24:32Z","html_url":"https://github.com/PGBI/cakephp3-soft-delete/pull/2#discussion_r28472907","pull_request_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/pulls/comments/28472907"},"html":{"href":"https://github.com/PGBI/cakephp3-soft-delete/pull/2#discussion_r28472907"},"pull_request":{"href":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/pulls/2","id":33268496,"html_url":"https://github.com/PGBI/cakephp3-soft-delete/pull/2","diff_url":"https://github.com/PGBI/cakephp3-soft-delete/pull/2.diff","patch_url":"https://github.com/PGBI/cakephp3-soft-delete/pull/2.patch","issue_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/issues/2","number":2,"state":"open","locked":false,"title":"Customise field","user":{"login":"davidyell","id":49889,"avatar_url":"https://avatars.githubusercontent.com/u/49889?v=3","gravatar_id":"","url":"https://api.github.com/users/davidyell","html_url":"https://github.com/davidyell","followers_url":"https://api.github.com/users/davidyell/followers","following_url":"https://api.github.com/users/davidyell/following{/other_user}","gists_url":"https://api.github.com/users/davidyell/gists{/gist_id}","starred_url":"https://api.github.com/users/davidyell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidyell/subscriptions","organizations_url":"https://api.github.com/users/davidyell/orgs","repos_url":"https://api.github.com/users/davidyell/repos","events_url":"https://api.github.com/users/davidyell/events{/privacy}","received_events_url":"https://api.github.com/users/davidyell/received_events","type":"User","site_admin":false},"body":"I am upgrading a Cake2 application which used the CakeDC/Utils plugin SoftDelete behaviour, which means that my fields are not named correctly. Rather than update a field in every table of my application, I've just changed the code to allow the field to be declared in the Table.","created_at":"2015-04-14T15:23:33Z","updated_at":"2015-04-15T23:24:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50f0480abdcad18e39b1126b0731bed30139ffaa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/pulls/2/commits","review_comments_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/pulls/2/comments","review_comment_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/issues/2/comments","statuses_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/statuses/66e75bd1ae9249126daaaf5d5fb4577dd8a2a07c","head":{"label":"davidyell:customise-field","ref":"customise-field","sha":"66e75bd1ae9249126daaaf5d5fb4577dd8a2a07c","user":{"login":"davidyell","id":49889,"avatar_url":"https://avatars.githubusercontent.com/u/49889?v=3","gravatar_id":"","url":"https://api.github.com/users/davidyell","html_url":"https://github.com/davidyell","followers_url":"https://api.github.com/users/davidyell/followers","following_url":"https://api.github.com/users/davidyell/following{/other_user}","gists_url":"https://api.github.com/users/davidyell/gists{/gist_id}","starred_url":"https://api.github.com/users/davidyell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidyell/subscriptions","organizations_url":"https://api.github.com/users/davidyell/orgs","repos_url":"https://api.github.com/users/davidyell/repos","events_url":"https://api.github.com/users/davidyell/events{/privacy}","received_events_url":"https://api.github.com/users/davidyell/received_events","type":"User","site_admin":false},"repo":{"id":33939066,"name":"cakephp3-soft-delete","full_name":"davidyell/cakephp3-soft-delete","owner":{"login":"davidyell","id":49889,"avatar_url":"https://avatars.githubusercontent.com/u/49889?v=3","gravatar_id":"","url":"https://api.github.com/users/davidyell","html_url":"https://github.com/davidyell","followers_url":"https://api.github.com/users/davidyell/followers","following_url":"https://api.github.com/users/davidyell/following{/other_user}","gists_url":"https://api.github.com/users/davidyell/gists{/gist_id}","starred_url":"https://api.github.com/users/davidyell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidyell/subscriptions","organizations_url":"https://api.github.com/users/davidyell/orgs","repos_url":"https://api.github.com/users/davidyell/repos","events_url":"https://api.github.com/users/davidyell/events{/privacy}","received_events_url":"https://api.github.com/users/davidyell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davidyell/cakephp3-soft-delete","description":"","fork":true,"url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete","forks_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/forks","keys_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/teams","hooks_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/hooks","issue_events_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/issues/events{/number}","events_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/events","assignees_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/assignees{/user}","branches_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/branches{/branch}","tags_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/tags","blobs_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/statuses/{sha}","languages_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/languages","stargazers_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/stargazers","contributors_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/contributors","subscribers_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/subscribers","subscription_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/subscription","commits_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/issues/comments{/number}","contents_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/contents/{+path}","compare_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/merges","archive_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/downloads","issues_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/issues{/number}","pulls_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/pulls{/number}","milestones_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/milestones{/number}","notifications_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/labels{/name}","releases_url":"https://api.github.com/repos/davidyell/cakephp3-soft-delete/releases{/id}","created_at":"2015-04-14T15:09:03Z","updated_at":"2015-04-14T15:09:04Z","pushed_at":"2015-04-15T09:15:16Z","git_url":"git://github.com/davidyell/cakephp3-soft-delete.git","ssh_url":"git@github.com:davidyell/cakephp3-soft-delete.git","clone_url":"https://github.com/davidyell/cakephp3-soft-delete.git","svn_url":"https://github.com/davidyell/cakephp3-soft-delete","homepage":null,"size":128,"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":"PGBI:master","ref":"master","sha":"f3f9689bcf72dd51b4a0280db6c98344143c01b0","user":{"login":"PGBI","id":6191583,"avatar_url":"https://avatars.githubusercontent.com/u/6191583?v=3","gravatar_id":"","url":"https://api.github.com/users/PGBI","html_url":"https://github.com/PGBI","followers_url":"https://api.github.com/users/PGBI/followers","following_url":"https://api.github.com/users/PGBI/following{/other_user}","gists_url":"https://api.github.com/users/PGBI/gists{/gist_id}","starred_url":"https://api.github.com/users/PGBI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PGBI/subscriptions","organizations_url":"https://api.github.com/users/PGBI/orgs","repos_url":"https://api.github.com/users/PGBI/repos","events_url":"https://api.github.com/users/PGBI/events{/privacy}","received_events_url":"https://api.github.com/users/PGBI/received_events","type":"User","site_admin":false},"repo":{"id":30133698,"name":"cakephp3-soft-delete","full_name":"PGBI/cakephp3-soft-delete","owner":{"login":"PGBI","id":6191583,"avatar_url":"https://avatars.githubusercontent.com/u/6191583?v=3","gravatar_id":"","url":"https://api.github.com/users/PGBI","html_url":"https://github.com/PGBI","followers_url":"https://api.github.com/users/PGBI/followers","following_url":"https://api.github.com/users/PGBI/following{/other_user}","gists_url":"https://api.github.com/users/PGBI/gists{/gist_id}","starred_url":"https://api.github.com/users/PGBI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PGBI/subscriptions","organizations_url":"https://api.github.com/users/PGBI/orgs","repos_url":"https://api.github.com/users/PGBI/repos","events_url":"https://api.github.com/users/PGBI/events{/privacy}","received_events_url":"https://api.github.com/users/PGBI/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PGBI/cakephp3-soft-delete","description":"","fork":false,"url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete","forks_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/forks","keys_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/teams","hooks_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/hooks","issue_events_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/issues/events{/number}","events_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/events","assignees_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/assignees{/user}","branches_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/branches{/branch}","tags_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/tags","blobs_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/git/refs{/sha}","trees_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/statuses/{sha}","languages_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/languages","stargazers_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/stargazers","contributors_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/contributors","subscribers_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/subscribers","subscription_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/subscription","commits_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/commits{/sha}","git_commits_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/git/commits{/sha}","comments_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/comments{/number}","issue_comment_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/issues/comments{/number}","contents_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/contents/{+path}","compare_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/merges","archive_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/downloads","issues_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/issues{/number}","pulls_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/pulls{/number}","milestones_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/milestones{/number}","notifications_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/labels{/name}","releases_url":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/releases{/id}","created_at":"2015-02-01T02:20:49Z","updated_at":"2015-04-15T09:04:35Z","pushed_at":"2015-04-15T09:15:16Z","git_url":"git://github.com/PGBI/cakephp3-soft-delete.git","ssh_url":"git@github.com:PGBI/cakephp3-soft-delete.git","clone_url":"https://github.com/PGBI/cakephp3-soft-delete.git","svn_url":"https://github.com/PGBI/cakephp3-soft-delete","homepage":null,"size":392,"stargazers_count":9,"watchers_count":9,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/pulls/2"},"html":{"href":"https://github.com/PGBI/cakephp3-soft-delete/pull/2"},"issue":{"href":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/issues/2"},"comments":{"href":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/PGBI/cakephp3-soft-delete/statuses/66e75bd1ae9249126daaaf5d5fb4577dd8a2a07c"}}}}