{"action":"created","issue":{"url":"https://api.github.com/repos/CircleAround/gbs/issues/15","labels_url":"https://api.github.com/repos/CircleAround/gbs/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/CircleAround/gbs/issues/15/comments","events_url":"https://api.github.com/repos/CircleAround/gbs/issues/15/events","html_url":"https://github.com/CircleAround/gbs/issues/15","id":107688238,"number":15,"title":"Commentのバリデーション","user":{"login":"ms2sato","id":627817,"avatar_url":"https://avatars.githubusercontent.com/u/627817?v=3","gravatar_id":"","url":"https://api.github.com/users/ms2sato","html_url":"https://github.com/ms2sato","followers_url":"https://api.github.com/users/ms2sato/followers","following_url":"https://api.github.com/users/ms2sato/following{/other_user}","gists_url":"https://api.github.com/users/ms2sato/gists{/gist_id}","starred_url":"https://api.github.com/users/ms2sato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ms2sato/subscriptions","organizations_url":"https://api.github.com/users/ms2sato/orgs","repos_url":"https://api.github.com/users/ms2sato/repos","events_url":"https://api.github.com/users/ms2sato/events{/privacy}","received_events_url":"https://api.github.com/users/ms2sato/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CircleAround/gbs/labels/Doing","name":"Doing","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"Skk395","id":11716196,"avatar_url":"https://avatars.githubusercontent.com/u/11716196?v=3","gravatar_id":"","url":"https://api.github.com/users/Skk395","html_url":"https://github.com/Skk395","followers_url":"https://api.github.com/users/Skk395/followers","following_url":"https://api.github.com/users/Skk395/following{/other_user}","gists_url":"https://api.github.com/users/Skk395/gists{/gist_id}","starred_url":"https://api.github.com/users/Skk395/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skk395/subscriptions","organizations_url":"https://api.github.com/users/Skk395/orgs","repos_url":"https://api.github.com/users/Skk395/repos","events_url":"https://api.github.com/users/Skk395/events{/privacy}","received_events_url":"https://api.github.com/users/Skk395/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-09-22T10:43:44Z","updated_at":"2015-10-18T11:00:33Z","closed_at":null,"body":"CakePHPでDB設定からサポートしてくれているとは思うのですが、モデルのバリデーションを入れたいです。\r\n\r\n基本的にはnot_null制約ばかりですが、入れましょう。`/comments`から新規作成と更新をした時に問題なく制約されていればOKです。（テストの環境が整ったら別途UnitテストIssueを作ります）。\r\n\r\nER図はこちら\r\nhttps://cacoo.com/diagrams/v7ra1xlfADSpyyac/edit\r\n\r\nhttp://book.cakephp.org/3.0/ja/core-libraries/validation.html\r\n公式のドキュメントはこちら\r\n\r\n下記はどうやって入れるかの参考にはなるでしょう。\r\nhttp://w.builwing.info/2015/05/03/cakephp3-0%E3%81%AE%E3%83%96%E3%83%AD%E3%82%B0%E3%83%81%E3%83%A5%E3%83%BC%E3%83%88%E3%83%AA%E3%82%A2%E3%83%AB/\r\n\r\n迷ったら質問下さいー。"},"comment":{"url":"https://api.github.com/repos/CircleAround/gbs/issues/comments/149002061","html_url":"https://github.com/CircleAround/gbs/issues/15#issuecomment-149002061","issue_url":"https://api.github.com/repos/CircleAround/gbs/issues/15","id":149002061,"user":{"login":"Skk395","id":11716196,"avatar_url":"https://avatars.githubusercontent.com/u/11716196?v=3","gravatar_id":"","url":"https://api.github.com/users/Skk395","html_url":"https://github.com/Skk395","followers_url":"https://api.github.com/users/Skk395/followers","following_url":"https://api.github.com/users/Skk395/following{/other_user}","gists_url":"https://api.github.com/users/Skk395/gists{/gist_id}","starred_url":"https://api.github.com/users/Skk395/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skk395/subscriptions","organizations_url":"https://api.github.com/users/Skk395/orgs","repos_url":"https://api.github.com/users/Skk395/repos","events_url":"https://api.github.com/users/Skk395/events{/privacy}","received_events_url":"https://api.github.com/users/Skk395/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T11:00:33Z","updated_at":"2015-10-18T11:00:33Z","body":"http://blog.xao.jp/blog/cakephp/memo-of-preparing-for-migration-to-cakephp3/\r\n\r\nScaffold 廃止されているみたいです\r\n"}}