{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/6327","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/6327/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/6327/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/6327/events","html_url":"https://github.com/cakephp/cakephp/issues/6327","id":68109402,"number":6327,"title":"Rule to prevent deletion of records with associated data","user":{"login":"efanzini","id":2932320,"avatar_url":"https://avatars.githubusercontent.com/u/2932320?v=3","gravatar_id":"","url":"https://api.github.com/users/efanzini","html_url":"https://github.com/efanzini","followers_url":"https://api.github.com/users/efanzini/followers","following_url":"https://api.github.com/users/efanzini/following{/other_user}","gists_url":"https://api.github.com/users/efanzini/gists{/gist_id}","starred_url":"https://api.github.com/users/efanzini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efanzini/subscriptions","organizations_url":"https://api.github.com/users/efanzini/orgs","repos_url":"https://api.github.com/users/efanzini/repos","events_url":"https://api.github.com/users/efanzini/events{/privacy}","received_events_url":"https://api.github.com/users/efanzini/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/Enhancement","name":"Enhancement","color":"bfe5bf"},{"url":"https://api.github.com/repos/cakephp/cakephp/labels/ORM","name":"ORM","color":"ffffff"},{"url":"https://api.github.com/repos/cakephp/cakephp/labels/validation","name":"validation","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/31","html_url":"https://github.com/cakephp/cakephp/milestones/3.1.0","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/31/labels","id":919718,"number":31,"title":"3.1.0","description":"Backwards compatible with 3.0.x. Will require PHP 5.5\r\n\r\n### Specific issues\r\n\r\n* Adding the exception trace to the error view data. #6000 \r\n* Changed the translate behavior to support translation engines. #5958 \r\n* Database connection prefixes, or table prefixes.","creator":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"open_issues":50,"closed_issues":32,"state":"open","created_at":"2015-01-02T15:38:07Z","updated_at":"2015-04-13T17:17:21Z","due_on":"2015-07-26T04:00:00Z","closed_at":null},"comments":5,"created_at":"2015-04-13T14:19:34Z","updated_at":"2015-04-14T14:51:02Z","closed_at":null,"body":"It would be nice to have a built-in rule to prevent deletion of records with associated data, especially when working with dbs that doesn't support foreign key costraints (SQLite < 3.6)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/92888890","html_url":"https://github.com/cakephp/cakephp/issues/6327#issuecomment-92888890","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/6327","id":92888890,"user":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T14:51:02Z","updated_at":"2015-04-14T14:51:02Z","body":"I'm with @markstory, using another option is a better idea."}}