{"id":10100,"date":"2022-12-20T12:57:43","date_gmt":"2022-12-20T03:57:43","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=10100"},"modified":"2022-12-20T12:59:00","modified_gmt":"2022-12-20T03:59:00","slug":"cakephp%e3%81%a7%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%81%ab%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%8c%e3%81%82%e3%82%8b%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=10100","title":{"rendered":"cakephp\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>cakephp\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n\n\n\n<p>cakephp\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u7279\u5b9a\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001php\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b\u4e00\u822c\u7684\u306a\u65b9\u6cd5\u3067\u3042\u308b<\/p>\n\n\n\n<p>property_exists<\/p>\n\n\n\n<p>\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\uff08\u5b58\u5728\u3057\u3066\u3044\u308b\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u3082false\u304c\u8fd4\u3063\u3066\u304f\u308b\uff09<\/p>\n\n\n\n<p>\u7406\u7531\u3068\u3057\u3066\u306f\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u305d\u306e\u3082\u306e\u3092\u53c2\u7167\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u4ed5\u69d8\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>cakephp\u3067\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306fTables\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001Tables Class\u306b\u3001\u8a72\u5f53\u306e\u30e2\u30c7\u30eb\u306b\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u95a2\u6570 hasFIeld()\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>$this-&gt;Model-&gt;hasField($fieldName)<\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u95a2\u6570\u3067\u3001\u8a72\u5f53\u306e\u30c6\u30fc\u30d6\u30eb\uff08\u30e2\u30c7\u30eb\uff09\u304c\u5bfe\u8c61\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u6301\u3064\u5834\u5408\u306b\u3001true\u3092\u3001\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u306b\u306ffalse\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>cakephp\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3067\u3059\u3002 cakephp\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u7279\u5b9a\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001php\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b\u4e00\u822c\u7684\u306a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[165,131],"tags":[],"class_list":["post-10100","post","type-post","status-publish","format-standard","hentry","category-cakephp","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/10100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10100"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/10100\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}