{"id":33,"date":"2008-02-12T11:02:15","date_gmt":"2008-02-12T02:02:15","guid":{"rendered":"http:\/\/www.eshima.info\/tech\/?p=32"},"modified":"2008-02-12T11:02:15","modified_gmt":"2008-02-12T02:02:15","slug":"generatelist%e3%81%af%e9%9d%9e%e6%8e%a8%e5%a5%a8%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/tech.eshima.info\/?p=33","title":{"rendered":"generatelist\u306f\u975e\u63a8\u5968\uff1f"},"content":{"rendered":"<p>cakePHP1.2\u3067\u3001pre-beta\u304b\u3089beta\u306b\u5909\u3048\u305f\u3068\u3053\u308d\u3001\u4e00\u90e8\u3067\u3002\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002generatelist\u3092\u4f7f\u3063\u3066\u3044\u305f\u90e8\u5206\u3067find(&#8216;list&#8217;, array())\u3092\u4f7f\u3048\u3068\u306e\u3053\u3068\u3002<br \/>\n\u305d\u306e\u307e\u307e\u5909\u3048\u305f\u3060\u3051\u3067\u306f\u52d5\u304b\u305a\u3001\u3069\u3046\u3084\u3063\u305f\u3089\u8868\u793a\u3059\u308b\u5024\u3068option\u30bf\u30b0\u306evalue\u3092\u51fa\u305b\u308b\u306e\u304b\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u3002\u8abf\u3079\u3066\u307f\u305f\u3089\u3001model\u306b\u8a2d\u5b9a\u3057\u3066\u3042\u308b\u3001var $primary_key\u3068var $displayField\u3092\u8868\u793a\u3059\u308b\u307f\u305f\u3044\u3002\u305d\u3093\u306a\u306e\u8a2d\u5b9a\u3057\u306a\u304f\u3066\u3082controller\u304b\u3089\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u305d\u3046\u306a\u3082\u3093\u3060\u3051\u3069\u307e\u3060\u308f\u304b\u3089\u305a\u3002<\/p>\n<p>(02\/15\u8ffd\u8a18)\u3000\u6559\u3048\u3066\u3082\u3089\u3063\u305f<\/p>\n<p>$hogeData = find(&#8216;all&#8217;, array());<\/p>\n<p>\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u5f8c\u3001<\/p>\n<p>$hogeData = Set::combine($hogeData, &#8216;{n}.hoge.id&#8217;, &#8216;{n}.hoge.name&#8217;);<br \/>\n\u3068\u3059\u308b\u3093\u3060\u305d\u3046\u306a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>cakePHP1.2\u3067\u3001pre-beta\u304b\u3089bet [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-cakephp"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"cakePHP1.2\u3067\u3001pre-beta\u304b\u3089beta\u306b\u5909\u3048\u305f\u3068\u3053\u308d\u3001\u4e00\u90e8\u3067\u3002\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002generateli\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"eshimatech\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/tech.eshima.info\/?p=33\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u6c5f\u5cf6\uff20\u30b7\u30b9\u30c6\u30e0\u958b\u767a | \u4e3b\u306b\u30a6\u30a7\u30d6\u95a2\u4fc2\u306e\u6280\u8853\u7684\u306a\u3053\u3068\u3092\u30e1\u30e2\u3057\u307e\u3059\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"generatelist\u306f\u975e\u63a8\u5968\uff1f | \u6c5f\u5cf6\uff20\u30b7\u30b9\u30c6\u30e0\u958b\u767a\" \/>\n\t\t<meta property=\"og:description\" content=\"cakePHP1.2\u3067\u3001pre-beta\u304b\u3089beta\u306b\u5909\u3048\u305f\u3068\u3053\u308d\u3001\u4e00\u90e8\u3067\u3002\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002generateli\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/tech.eshima.info\/?p=33\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2008-02-12T02:02:15+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2008-02-12T02:02:15+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"generatelist\u306f\u975e\u63a8\u5968\uff1f | \u6c5f\u5cf6\uff20\u30b7\u30b9\u30c6\u30e0\u958b\u767a\" \/>\n\t\t<meta name=\"twitter:description\" content=\"cakePHP1.2\u3067\u3001pre-beta\u304b\u3089beta\u306b\u5909\u3048\u305f\u3068\u3053\u308d\u3001\u4e00\u90e8\u3067\u3002\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002generateli\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?p=33#article\",\"name\":\"generatelist\\u306f\\u975e\\u63a8\\u5968\\uff1f | \\u6c5f\\u5cf6\\uff20\\u30b7\\u30b9\\u30c6\\u30e0\\u958b\\u767a\",\"headline\":\"generatelist\\u306f\\u975e\\u63a8\\u5968\\uff1f\",\"author\":{\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/#organization\"},\"datePublished\":\"2008-02-12T11:02:15+09:00\",\"dateModified\":\"2008-02-12T11:02:15+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?p=33#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?p=33#webpage\"},\"articleSection\":\"CakePHP\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?p=33#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.eshima.info#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/tech.eshima.info\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?cat=10#listItem\",\"name\":\"CakePHP\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?cat=10#listItem\",\"position\":2,\"name\":\"CakePHP\",\"item\":\"https:\\\/\\\/tech.eshima.info\\\/?cat=10\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?p=33#listItem\",\"name\":\"generatelist\\u306f\\u975e\\u63a8\\u5968\\uff1f\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.eshima.info#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?p=33#listItem\",\"position\":3,\"name\":\"generatelist\\u306f\\u975e\\u63a8\\u5968\\uff1f\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?cat=10#listItem\",\"name\":\"CakePHP\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/#organization\",\"name\":\"\\u6c5f\\u5cf6\\uff20\\u30b7\\u30b9\\u30c6\\u30e0\\u958b\\u767a\",\"description\":\"\\u4e3b\\u306b\\u30a6\\u30a7\\u30d6\\u95a2\\u4fc2\\u306e\\u6280\\u8853\\u7684\\u306a\\u3053\\u3068\\u3092\\u30e1\\u30e2\\u3057\\u307e\\u3059\",\"url\":\"https:\\\/\\\/tech.eshima.info\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?author=2#author\",\"url\":\"https:\\\/\\\/tech.eshima.info\\\/?author=2\",\"name\":\"eshimatech\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?p=33#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c4bfd517fbe2f3f44baf3808cbdf41276452eade0b100b1c2b5c1128c4d65324?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"eshimatech\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?p=33#webpage\",\"url\":\"https:\\\/\\\/tech.eshima.info\\\/?p=33\",\"name\":\"generatelist\\u306f\\u975e\\u63a8\\u5968\\uff1f | \\u6c5f\\u5cf6\\uff20\\u30b7\\u30b9\\u30c6\\u30e0\\u958b\\u767a\",\"description\":\"cakePHP1.2\\u3067\\u3001pre-beta\\u304b\\u3089beta\\u306b\\u5909\\u3048\\u305f\\u3068\\u3053\\u308d\\u3001\\u4e00\\u90e8\\u3067\\u3002\\u30a8\\u30e9\\u30fc\\u304c\\u51fa\\u305f\\u3002generateli\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?p=33#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/?author=2#author\"},\"datePublished\":\"2008-02-12T11:02:15+09:00\",\"dateModified\":\"2008-02-12T11:02:15+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/#website\",\"url\":\"https:\\\/\\\/tech.eshima.info\\\/\",\"name\":\"\\u6c5f\\u5cf6\\uff20\\u30b7\\u30b9\\u30c6\\u30e0\\u958b\\u767a\",\"description\":\"\\u4e3b\\u306b\\u30a6\\u30a7\\u30d6\\u95a2\\u4fc2\\u306e\\u6280\\u8853\\u7684\\u306a\\u3053\\u3068\\u3092\\u30e1\\u30e2\\u3057\\u307e\\u3059\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/tech.eshima.info\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"generatelist\u306f\u975e\u63a8\u5968\uff1f | \u6c5f\u5cf6\uff20\u30b7\u30b9\u30c6\u30e0\u958b\u767a","description":"cakePHP1.2\u3067\u3001pre-beta\u304b\u3089beta\u306b\u5909\u3048\u305f\u3068\u3053\u308d\u3001\u4e00\u90e8\u3067\u3002\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002generateli","canonical_url":"https:\/\/tech.eshima.info\/?p=33","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tech.eshima.info\/?p=33#article","name":"generatelist\u306f\u975e\u63a8\u5968\uff1f | \u6c5f\u5cf6\uff20\u30b7\u30b9\u30c6\u30e0\u958b\u767a","headline":"generatelist\u306f\u975e\u63a8\u5968\uff1f","author":{"@id":"https:\/\/tech.eshima.info\/?author=2#author"},"publisher":{"@id":"https:\/\/tech.eshima.info\/#organization"},"datePublished":"2008-02-12T11:02:15+09:00","dateModified":"2008-02-12T11:02:15+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/tech.eshima.info\/?p=33#webpage"},"isPartOf":{"@id":"https:\/\/tech.eshima.info\/?p=33#webpage"},"articleSection":"CakePHP"},{"@type":"BreadcrumbList","@id":"https:\/\/tech.eshima.info\/?p=33#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/tech.eshima.info#listItem","position":1,"name":"Home","item":"https:\/\/tech.eshima.info","nextItem":{"@type":"ListItem","@id":"https:\/\/tech.eshima.info\/?cat=10#listItem","name":"CakePHP"}},{"@type":"ListItem","@id":"https:\/\/tech.eshima.info\/?cat=10#listItem","position":2,"name":"CakePHP","item":"https:\/\/tech.eshima.info\/?cat=10","nextItem":{"@type":"ListItem","@id":"https:\/\/tech.eshima.info\/?p=33#listItem","name":"generatelist\u306f\u975e\u63a8\u5968\uff1f"},"previousItem":{"@type":"ListItem","@id":"https:\/\/tech.eshima.info#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/tech.eshima.info\/?p=33#listItem","position":3,"name":"generatelist\u306f\u975e\u63a8\u5968\uff1f","previousItem":{"@type":"ListItem","@id":"https:\/\/tech.eshima.info\/?cat=10#listItem","name":"CakePHP"}}]},{"@type":"Organization","@id":"https:\/\/tech.eshima.info\/#organization","name":"\u6c5f\u5cf6\uff20\u30b7\u30b9\u30c6\u30e0\u958b\u767a","description":"\u4e3b\u306b\u30a6\u30a7\u30d6\u95a2\u4fc2\u306e\u6280\u8853\u7684\u306a\u3053\u3068\u3092\u30e1\u30e2\u3057\u307e\u3059","url":"https:\/\/tech.eshima.info\/"},{"@type":"Person","@id":"https:\/\/tech.eshima.info\/?author=2#author","url":"https:\/\/tech.eshima.info\/?author=2","name":"eshimatech","image":{"@type":"ImageObject","@id":"https:\/\/tech.eshima.info\/?p=33#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/c4bfd517fbe2f3f44baf3808cbdf41276452eade0b100b1c2b5c1128c4d65324?s=96&d=mm&r=g","width":96,"height":96,"caption":"eshimatech"}},{"@type":"WebPage","@id":"https:\/\/tech.eshima.info\/?p=33#webpage","url":"https:\/\/tech.eshima.info\/?p=33","name":"generatelist\u306f\u975e\u63a8\u5968\uff1f | \u6c5f\u5cf6\uff20\u30b7\u30b9\u30c6\u30e0\u958b\u767a","description":"cakePHP1.2\u3067\u3001pre-beta\u304b\u3089beta\u306b\u5909\u3048\u305f\u3068\u3053\u308d\u3001\u4e00\u90e8\u3067\u3002\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002generateli","inLanguage":"ja","isPartOf":{"@id":"https:\/\/tech.eshima.info\/#website"},"breadcrumb":{"@id":"https:\/\/tech.eshima.info\/?p=33#breadcrumblist"},"author":{"@id":"https:\/\/tech.eshima.info\/?author=2#author"},"creator":{"@id":"https:\/\/tech.eshima.info\/?author=2#author"},"datePublished":"2008-02-12T11:02:15+09:00","dateModified":"2008-02-12T11:02:15+09:00"},{"@type":"WebSite","@id":"https:\/\/tech.eshima.info\/#website","url":"https:\/\/tech.eshima.info\/","name":"\u6c5f\u5cf6\uff20\u30b7\u30b9\u30c6\u30e0\u958b\u767a","description":"\u4e3b\u306b\u30a6\u30a7\u30d6\u95a2\u4fc2\u306e\u6280\u8853\u7684\u306a\u3053\u3068\u3092\u30e1\u30e2\u3057\u307e\u3059","inLanguage":"ja","publisher":{"@id":"https:\/\/tech.eshima.info\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"\u6c5f\u5cf6\uff20\u30b7\u30b9\u30c6\u30e0\u958b\u767a | \u4e3b\u306b\u30a6\u30a7\u30d6\u95a2\u4fc2\u306e\u6280\u8853\u7684\u306a\u3053\u3068\u3092\u30e1\u30e2\u3057\u307e\u3059","og:type":"article","og:title":"generatelist\u306f\u975e\u63a8\u5968\uff1f | \u6c5f\u5cf6\uff20\u30b7\u30b9\u30c6\u30e0\u958b\u767a","og:description":"cakePHP1.2\u3067\u3001pre-beta\u304b\u3089beta\u306b\u5909\u3048\u305f\u3068\u3053\u308d\u3001\u4e00\u90e8\u3067\u3002\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002generateli","og:url":"https:\/\/tech.eshima.info\/?p=33","article:published_time":"2008-02-12T02:02:15+00:00","article:modified_time":"2008-02-12T02:02:15+00:00","twitter:card":"summary","twitter:title":"generatelist\u306f\u975e\u63a8\u5968\uff1f | \u6c5f\u5cf6\uff20\u30b7\u30b9\u30c6\u30e0\u958b\u767a","twitter:description":"cakePHP1.2\u3067\u3001pre-beta\u304b\u3089beta\u306b\u5909\u3048\u305f\u3068\u3053\u308d\u3001\u4e00\u90e8\u3067\u3002\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002generateli"},"aioseo_meta_data":{"post_id":"33","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 03:54:56","updated":"2025-06-04 05:10:27","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tech.eshima.info\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tech.eshima.info\/?cat=10\" title=\"CakePHP\">CakePHP<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tgeneratelist\u306f\u975e\u63a8\u5968\uff1f\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/tech.eshima.info"},{"label":"CakePHP","link":"https:\/\/tech.eshima.info\/?cat=10"},{"label":"generatelist\u306f\u975e\u63a8\u5968\uff1f","link":"https:\/\/tech.eshima.info\/?p=33"}],"_links":{"self":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=33"}],"version-history":[{"count":0,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions"}],"wp:attachment":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}