{"action":"created","issue":{"url":"https://api.github.com/repos/redooor/redminportal/issues/41","labels_url":"https://api.github.com/repos/redooor/redminportal/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/redooor/redminportal/issues/41/comments","events_url":"https://api.github.com/repos/redooor/redminportal/issues/41/events","html_url":"https://github.com/redooor/redminportal/issues/41","id":53359064,"number":41,"title":"Errror when insert the first category","user":{"login":"duccanh0022","id":4942484,"avatar_url":"https://avatars.githubusercontent.com/u/4942484?v=3","gravatar_id":"","url":"https://api.github.com/users/duccanh0022","html_url":"https://github.com/duccanh0022","followers_url":"https://api.github.com/users/duccanh0022/followers","following_url":"https://api.github.com/users/duccanh0022/following{/other_user}","gists_url":"https://api.github.com/users/duccanh0022/gists{/gist_id}","starred_url":"https://api.github.com/users/duccanh0022/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duccanh0022/subscriptions","organizations_url":"https://api.github.com/users/duccanh0022/orgs","repos_url":"https://api.github.com/users/duccanh0022/repos","events_url":"https://api.github.com/users/duccanh0022/events{/privacy}","received_events_url":"https://api.github.com/users/duccanh0022/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/redooor/redminportal/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":{"login":"kongnir","id":1088896,"avatar_url":"https://avatars.githubusercontent.com/u/1088896?v=3","gravatar_id":"","url":"https://api.github.com/users/kongnir","html_url":"https://github.com/kongnir","followers_url":"https://api.github.com/users/kongnir/followers","following_url":"https://api.github.com/users/kongnir/following{/other_user}","gists_url":"https://api.github.com/users/kongnir/gists{/gist_id}","starred_url":"https://api.github.com/users/kongnir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kongnir/subscriptions","organizations_url":"https://api.github.com/users/kongnir/orgs","repos_url":"https://api.github.com/users/kongnir/repos","events_url":"https://api.github.com/users/kongnir/events{/privacy}","received_events_url":"https://api.github.com/users/kongnir/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-01-05T02:40:55Z","updated_at":"2015-01-05T06:19:25Z","closed_at":"2015-01-05T06:19:25Z","body":"Hi, I have a problem when i add new category at first time. Plz help me!\r\nThanks :*\r\n\r\nSQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`e-laravel_db`.`categories`, CONSTRAINT `categories_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`)) (SQL: insert into `categories` (`name`, `short_description`, `long_description`, `active`, `order`, `options`, `category_id`, `updated_at`, `created_at`) values (Sport, This is sport category, <p>hi, i canh....</p>, 1, 0, {\"name\":null,\"short_description\":null,\"long_description\":null}, 0, 2015-01-05 02:36:15, 2015-01-05 02:36:15))"},"comment":{"url":"https://api.github.com/repos/redooor/redminportal/issues/comments/68672214","html_url":"https://github.com/redooor/redminportal/issues/41#issuecomment-68672214","issue_url":"https://api.github.com/repos/redooor/redminportal/issues/41","id":68672214,"user":{"login":"duccanh0022","id":4942484,"avatar_url":"https://avatars.githubusercontent.com/u/4942484?v=3","gravatar_id":"","url":"https://api.github.com/users/duccanh0022","html_url":"https://github.com/duccanh0022","followers_url":"https://api.github.com/users/duccanh0022/followers","following_url":"https://api.github.com/users/duccanh0022/following{/other_user}","gists_url":"https://api.github.com/users/duccanh0022/gists{/gist_id}","starred_url":"https://api.github.com/users/duccanh0022/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duccanh0022/subscriptions","organizations_url":"https://api.github.com/users/duccanh0022/orgs","repos_url":"https://api.github.com/users/duccanh0022/repos","events_url":"https://api.github.com/users/duccanh0022/events{/privacy}","received_events_url":"https://api.github.com/users/duccanh0022/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T06:19:25Z","updated_at":"2015-01-05T06:19:25Z","body":"Thanks, my problem resolved :+1: "}}