{"action":"created","issue":{"url":"https://api.github.com/repos/NetCommons3/NetCommons3/issues/119","labels_url":"https://api.github.com/repos/NetCommons3/NetCommons3/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/NetCommons3/NetCommons3/issues/119/comments","events_url":"https://api.github.com/repos/NetCommons3/NetCommons3/issues/119/events","html_url":"https://github.com/NetCommons3/NetCommons3/issues/119","id":128714287,"number":119,"title":"コンテンツコメントのエラー処理","user":{"login":"kteraguchi","id":3079266,"avatar_url":"https://avatars.githubusercontent.com/u/3079266?v=3","gravatar_id":"","url":"https://api.github.com/users/kteraguchi","html_url":"https://github.com/kteraguchi","followers_url":"https://api.github.com/users/kteraguchi/followers","following_url":"https://api.github.com/users/kteraguchi/following{/other_user}","gists_url":"https://api.github.com/users/kteraguchi/gists{/gist_id}","starred_url":"https://api.github.com/users/kteraguchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kteraguchi/subscriptions","organizations_url":"https://api.github.com/users/kteraguchi/orgs","repos_url":"https://api.github.com/users/kteraguchi/repos","events_url":"https://api.github.com/users/kteraguchi/events{/privacy}","received_events_url":"https://api.github.com/users/kteraguchi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NetCommons3/NetCommons3/labels/00Inbox","name":"00Inbox","color":"bfdadc"},{"url":"https://api.github.com/repos/NetCommons3/NetCommons3/labels/zz%20ContentComments","name":"zz ContentComments","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-26T03:36:29Z","updated_at":"2016-01-26T06:26:06Z","closed_at":null,"body":"https://github.com/NetCommons3/ContentComments/blob/4670d7b0cdc43e6e46a98719b2a11908a835b6e0/Controller/Component/ContentCommentsComponent.php#L92-L94\r\n\r\nのループ処理がちょっとわからないです。\r\n\r\nhttps://github.com/NetCommons3/ContentComments/blob/4670d7b0cdc43e6e46a98719b2a11908a835b6e0/Controller/Component/ContentCommentsComponent.php#L181\r\n\r\nでエラーをセットした結果\r\n```\r\narray(\r\n    'ContentComment' => array (\r\n        'field1' => array (\r\n            'Error message01'\r\n            'Error message02'\r\n        )\r\n        'field2' => array (\r\n            'Error message3'\r\n        )\r\n    )\r\n)\r\n```\r\nの様な配列になると思いますが、ループしているということはContentCommentのモデル以外もセットされるということでしょうか？"},"comment":{"url":"https://api.github.com/repos/NetCommons3/NetCommons3/issues/comments/174852497","html_url":"https://github.com/NetCommons3/NetCommons3/issues/119#issuecomment-174852497","issue_url":"https://api.github.com/repos/NetCommons3/NetCommons3/issues/119","id":174852497,"user":{"login":"akagane99","id":2756509,"avatar_url":"https://avatars.githubusercontent.com/u/2756509?v=3","gravatar_id":"","url":"https://api.github.com/users/akagane99","html_url":"https://github.com/akagane99","followers_url":"https://api.github.com/users/akagane99/followers","following_url":"https://api.github.com/users/akagane99/following{/other_user}","gists_url":"https://api.github.com/users/akagane99/gists{/gist_id}","starred_url":"https://api.github.com/users/akagane99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akagane99/subscriptions","organizations_url":"https://api.github.com/users/akagane99/orgs","repos_url":"https://api.github.com/users/akagane99/repos","events_url":"https://api.github.com/users/akagane99/events{/privacy}","received_events_url":"https://api.github.com/users/akagane99/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T06:26:06Z","updated_at":"2016-01-26T06:26:06Z","body":"> https://github.com/NetCommons3/ContentComments/blob/4670d7b0cdc43e6e46a98719b2a11908a835b6e0/Controller/Component/ContentCommentsComponent.php#L181\r\n\r\nで`$this->_controller->ContentComment->validationErrors`をセットしているので、ループさせています。\r\n特に他意はないです。\r\n\r\n> の様な配列になると思いますが、ループしているということはContentCommentのモデル以外もセットされるということでしょうか？\r\n\r\nNOです。\r\n"}}