{"id":27395,"date":"2017-07-20T13:22:11","date_gmt":"2017-07-20T04:22:11","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=27395"},"modified":"2024-05-06T11:43:58","modified_gmt":"2024-05-06T02:43:58","slug":"%e3%80%90cakephp%e5%85%a5%e9%96%80%e3%80%91querybuilder%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%82%92%e3%82%8f%e3%81%8b%e3%82%8a%e3%82%84%e3%81%99%e3%81%8f%e8%a7%a3%e8%aa%ac%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/27395","title":{"rendered":"\u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01"},"content":{"rendered":"<p>CakePHP\u306b\u306fSQL\u306e\u547d\u4ee4\u6587\u3092\u30e1\u30bd\u30c3\u30c9\u3067\u5b9f\u884c\u3067\u304d\u308b<span style=\"color: #339966;\"><strong>\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc(QueryBuilder)<\/strong><\/span>\u3068\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u30fb\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc(QueryBuilder)\u3068\u306f<br \/>\n\u30fb\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/strong><\/span><\/p>\n<p>\u3068\u3044\u3046\u57fa\u672c\u7684\u306a\u5185\u5bb9\u304b\u3089\u3001<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u30fb\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc\u3067\u30e1\u30bd\u30c3\u30c9\u30c1\u30a7\u30fc\u30f3\u3092\u3059\u308b\u65b9\u6cd5<br \/>\n\u30fb\u6307\u5b9a\u3057\u305f\u884c\u3060\u3051\u53d6\u5f97\u3059\u308b\u65b9\u6cd5<br \/>\n\u30fb\u8907\u6570\u30c7\u30fc\u30bf\u3092\u66f4\u65b0\u3059\u308b\u65b9\u6cd5<\/strong><\/span><\/p>\n<p>\u306a\u3069\u306e\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc\u3067SQL\u306e\u64cd\u4f5c\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\uff01<\/p>\n<h2>\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc(QueryBuilder)\u3068\u306f<\/h2>\n<p><span style=\"color: #339966;\"><strong>\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc(QueryBuilder)<\/strong><\/span>\u3068\u306f\u3001<span style=\"color: #ff0000;\"><strong>SQL\u306e\u547d\u4ee4\u6587\uff08\u30af\u30a8\u30ea\u30fc\uff09\u3092\u4f5c\u6210\u3057\u3066\u5b9f\u884c<\/strong><\/span>\u3059\u308b\u305f\u3081\u306e\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p>\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc\u3092\u4f7f\u7528\u3059\u308c\u3070\u3001SQL\u306e\u30af\u30a8\u30ea\u30fc\u3092\u4f7f\u308f\u305a\u306b<span style=\"color: #0000ff;\"><strong>\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3060\u3051\u3067\u8907\u96d1\u306aSQL\u306e\u547d\u4ee4\u6587\u3092\u884c\u3046\u3053\u3068\u304c\u53ef\u80fd<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc\u306b\u3088\u308bQuery\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001<span style=\"color: #0000ff;\"><strong>Table\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089find()\u30e1\u30bd\u30c3\u30c9\u3092\u6307\u5b9a<\/strong><\/span>\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >$articles = TableRegistry::get('Articles');\r\n$query = $articles-&gt;find();<\/pre>\n<h2>\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc(QueryBuilder)\u306e\u4f7f\u3044\u65b9<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001\u5b9f\u969b\u306b\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c6\u30fc\u30d6\u30eb\u3092\u53c2\u7167\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4e8b\u524d\u6e96\u5099\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >CREATE TABLE fruits (\r\n    id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,\r\n    fruits VARCHAR(32),\r\n    value INT\r\n);\r\n<\/pre>\n<p>\u7d9a\u3044\u3066\u3001INSERT\u6587\u3067\u30c7\u30fc\u30bf\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >INSERT INTO fruits (fruits, value) VALUES ('&quot;apple&quot;', 100);\r\nINSERT INTO fruits (fruits, value) VALUES ('&quot;orange&quot;', 80);\r\nINSERT INTO fruits (fruits, value) VALUES ('&quot;melon&quot;', 500);\r\nINSERT INTO fruits (fruits, value) VALUES ('&quot;pineapple&quot;', 700);<\/pre>\n<p>\u6b21\u306b<span style=\"color: #339966;\"><strong>bake<\/strong><\/span>\u3067<span style=\"color: #339966;\"><strong>model<\/strong><\/span>\u3068<span style=\"color: #339966;\"><strong>controller<\/strong><\/span>\u306e\u96db\u5f62\u3092\u81ea\u52d5\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><strong>model\u306e\u4f5c\u6210<\/strong><\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >bin\/cake bake model fruits<\/pre>\n<p><strong>controller\u306e\u4f5c\u6210<\/strong><\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >bin\/cake bake controller fruits<\/pre>\n<p>bake\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u306d\u3002<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/26423\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image2-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010CakePHP\u5165\u9580\u3011bake\u306e\u4f7f\u3044\u65b9<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<p>\u4f5c\u6210\u3055\u308c\u305f<strong>\u300cCake\/src\/Controller\/FruitsController.php\u300d<\/strong>\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \" >\r\n&lt;?php\r\nnamespace App\\Controller;\r\n\r\nuse App\\Controller\\AppController;\r\nuse Cake\\ORM\\TableRegistry;\r\n\r\nclass FruitsController extends AppController\r\n{\r\n    public function index()\r\n    {\r\n        \/\/\u30c6\u30fc\u30d6\u30eb\u3092\u53d6\u5f97\r\n        $query = TableRegistry::get('fruits')-&gt;find();\r\n\r\n        \/\/\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\r\n        foreach ($query as $article) {\r\n          debug($article-&gt;fruits);\r\n        }\r\n\r\n        $this-&gt;set('fruits', $this-&gt;Fruits-&gt;find('all'));\r\n    }\r\n}\r\n<\/pre>\n<p>\u6b21\u306bindex.ctp\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><strong>Cake\/src\/Template\/index.ctp<\/strong><\/p>\n<pre class=\"lang:php decode:true \" >&lt;h1&gt;Fruits&lt;\/h1&gt;\r\n&lt;table&gt;\r\n    &lt;tr&gt;\r\n        &lt;th&gt;Id&lt;\/th&gt;\r\n        &lt;th&gt;fruits&lt;\/th&gt;\r\n        &lt;th&gt;value&lt;\/th&gt;\r\n    &lt;\/tr&gt;\r\n\r\n    &lt;?php foreach ($fruits as $item): ?&gt;\r\n    &lt;tr&gt;\r\n        &lt;td&gt;&lt;?= $item-&gt;id ?&gt;&lt;\/td&gt;\r\n        &lt;td&gt;&lt;?= $item-&gt;fruits ?&gt;&lt;\/td&gt;\r\n        &lt;td&gt;&lt;?= $item-&gt;value ?&gt;&lt;\/td&gt;\r\n        &lt;\/td&gt;\r\n    &lt;\/tr&gt;\r\n    &lt;?php endforeach; ?&gt;\r\n&lt;\/table&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >\/src\/Controller\/FruitsController.php (line 16)\r\n'&quot;apple&quot;'\r\n\/src\/Controller\/FruitsController.php (line 16)\r\n'&quot;orange&quot;'\r\n\/src\/Controller\/FruitsController.php (line 16)\r\n'&quot;melon&quot;'\r\n\/src\/Controller\/FruitsController.php (line 16)\r\n'&quot;pineapple&quot;'<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-07-18-20.33.45.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-07-18 20.33.45\" width=\"505\" height=\"238\" class=\"aligncenter size-full wp-image-27401\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-07-18-20.33.45.png 505w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-07-18-20.33.45-150x71.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-07-18-20.33.45-300x141.png 300w\" sizes=\"(max-width: 505px) 100vw, 505px\" \/><\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001$query\u306b\u4f5c\u6210\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u53d6\u5f97\u3057\u3001<span style=\"color: #0000ff;\"><strong>\u30c6\u30fc\u30d6\u30eb\u306e\u30c7\u30fc\u30bf\u3092foreach\u6587\u30671\u3064\u305a\u3064\u53d6\u5f97<\/strong><\/span>\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c6\u30fc\u30d6\u30eb\u306e\u64cd\u4f5c\u3092\u884c\u3046\u3068\u304d\u306f<span style=\"color: #339966;\"><strong>TableRegistry<\/strong><\/span>\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>TableRegistry\u306a\u3069\u306e\u30c6\u30fc\u30d6\u30eb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f<span style=\"color: #339966;\"><strong>\u300cuse Cake\\ORM\\TableRegistry;\u300d<\/strong><\/span>\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30e1\u30bd\u30c3\u30c9\u30c1\u30a7\u30fc\u30f3\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>Query\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u547c\u51fa\u3057\u6642\u306b<span style=\"color: #339966;\"><strong>\u30e1\u30bd\u30c3\u30c9\u3092\u30c1\u30a7\u30fc\u30f3<\/strong><\/span>\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30e1\u30bd\u30c3\u30c9\u30c1\u30a7\u30fc\u30f3\u3068\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u8ffd\u52a0\u3057\u305f\u3044\u6a5f\u80fd\u3092\u30e1\u30bd\u30c3\u30c9\u3067\u3064\u306a\u3052\u3066\u3044\u304f\u3053\u3068\u3067\u5b9f\u73fe\u3059\u308b\u6a5f\u80fd<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306bQuery\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066\u3001\u30e1\u30bd\u30c3\u30c9\u30c1\u30a7\u30fc\u30f3\u3092\u3059\u308b\u65b9\u6cd5\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \" >\/\/\u30c6\u30fc\u30d6\u30eb\u3092\u53d6\u5f97\r\n$fruitsTable = TableRegistry::get('fruits');\r\n\r\n\/\/id\u304c1\u3088\u308a\u5927\u304d\u3044\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\r\n$query = $fruitsTable\r\n      -&gt;find()\r\n      -&gt;where(['id &gt;' =&gt; 1])\r\n      -&gt;all();\r\n\r\nforeach ($query as $article) {\r\n      debug($article-&gt;id);\r\n}<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >\/src\/Controller\/FruitsController.php (line 31)\r\n(int) 2\r\n\/src\/Controller\/FruitsController.php (line 31)\r\n(int) 3\r\n\/src\/Controller\/FruitsController.php (line 31)\r\n(int) 4<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001\u30e1\u30bd\u30c3\u30c9\u30c1\u30a7\u30fc\u30f3\u3067\u30c6\u30fc\u30d6\u30eb\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3057\u3001\u3055\u3089\u306b<span style=\"color: #339966;\"><strong>where()<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3067id\u304c1\u4ee5\u4e0a\u306e\u30c7\u30fc\u30bf\u3092<span style=\"color: #339966;\"><strong>all()<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3067\u5168\u3066\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<span style=\"color: #339966;\"><strong>first()<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308c\u3070\u3001<span style=\"color: #0000ff;\"><strong>\u30af\u30a8\u30ea\u30fc\u306e\u6700\u521d\u306e\u7d50\u679c\u3092\u53d6\u5f97<\/strong><\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \" >\r\n\/\/\u30c6\u30fc\u30d6\u30eb\u3092\u53d6\u5f97\r\n$fruitsTable = TableRegistry::get('fruits');\r\n\r\n\/\/id\u304c2\u306e\u884c\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\r\n$query = $fruitsTable\r\n      -&gt;find()\r\n      -&gt;where(['id' =&gt; 2])\r\n      -&gt;first();\r\n\r\ndebug($query-&gt;fruits);\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >\/src\/Controller\/FruitsController.php (line 44)\r\n'&quot;orange&quot;'<\/pre>\n<h2>\u30c7\u30fc\u30bf\u3092\u66f4\u65b0\u3059\u308b<\/h2>\n<p>\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc\u3092\u4f7f\u7528\u3059\u308c\u3070\u3001\u30c6\u30fc\u30d6\u30eb\u306b<span style=\"color: #ff0000;\"><strong>\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u3066\u3001\u66f4\u65b0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001\u8907\u6570\u306e\u5024\u3092\u8ffd\u52a0\u3057\u3066\u30c6\u30fc\u30d6\u30eb\u3092\u66f4\u65b0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \" >\r\n\/\/ \u8ffd\u52a0\u3059\u308b\u30c7\u30fc\u30bf\u3092\u8a2d\u5b9a\r\n$fruitsdata = [\r\n[\r\n      'fruits' =&gt; 'strawberry',\r\n      'value' =&gt; 350\r\n],\r\n[\r\n      'fruits' =&gt; 'kiwi fruit',\r\n      'value' =&gt; 100\r\n],\r\n];\r\n\r\n\/\/\u30c6\u30fc\u30d6\u30eb\u3092\u53d6\u5f97\r\n$fruitsTable = TableRegistry::get('fruits');\r\n\r\n\/\/\u30c6\u30fc\u30d6\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b\r\n$query = $fruitsTable-&gt;query();\r\n$query-&gt;insert(['fruits', 'value']);\r\n\r\nforeach ($fruitsdata as $item) {\r\n      $query-&gt;values($item);\r\n }\r\n\r\n$query-&gt;execute();\r\n\r\n$this-&gt;set('fruits', $this-&gt;Fruits-&gt;find('all'));\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/kekka.png\" alt=\"kekka\" width=\"500\" height=\"300\" class=\"aligncenter size-full wp-image-27397\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/kekka.png 500w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/kekka-150x90.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/kekka-300x180.png 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u9023\u60f3\u914d\u5217\u3067\u8ffd\u52a0\u3059\u308b\u30c7\u30fc\u30bf\u3092\u4f5c\u6210<\/strong><\/span>\u3057\u3066\u304a\u304d\u3001\u884c\u3092\u8ffd\u52a0\u3059\u308b<span style=\"color: #339966;\"><strong>insert()<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u884c\u6570\u5206\u3092\u56de\u3057\u3066<span style=\"color: #339966;\"><strong>values()<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u30671\u3064\u305a\u3064\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001SQL\u306e\u547d\u4ee4\u6587\u3092\u30e1\u30bd\u30c3\u30c9\u3067\u5b9f\u884c\u3067\u304d\u308b<span style=\"color: #339966;\"><strong>\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc(QueryBuilder)<\/strong><\/span>\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc\u3092\u4f7f\u7528\u3059\u308c\u3070\u3001<span style=\"color: #ff0000;\"><strong>SQL\u306e\u8907\u96d1\u306a\u547d\u4ee4\u6587\u3067\u3082\u30e1\u30bd\u30c3\u30c9\u3067\u7c21\u5358\u306b\u5b9f\u884c<\/strong><\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>PHP\u3067\u306f<span style=\"color: #0000ff;\"><strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f7f\u7528\u3059\u308b\u6a5f\u4f1a\u304c\u591a\u3044\u306e\u3067\u3001\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc\u306b\u3064\u3044\u3066\u306f\u305c\u3072\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/strong><\/span><\/p>\n<p>\u3082\u3057\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc\u306e\u4f7f\u3044\u65b9\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u3089\u3001\u3053\u306e\u8a18\u4e8b\u3092\u601d\u3044\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CakePHP\u306b\u306fSQL\u306e\u547d\u4ee4\u6587\u3092\u30e1\u30bd\u30c3\u30c9\u3067\u5b9f\u884c\u3067\u304d\u308b\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc(QueryBuilder)\u3068\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001 \u30fb\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc(QueryBuilder)\u3068\u306f \u30fb\u30af\u30a8\u30ea\u30fc\u30d3\u30eb\u30c0\u30fc\u306e\u57fa\u672c\u7684\u306a\u4f7f [&hellip;]<\/p>\n","protected":false},"author":16433,"featured_media":27396,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2348],"tags":[],"class_list":["post-27395","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-study"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/27395\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/27395\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:published_time\" content=\"2017-07-20T04:22:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:43:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-31.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27395#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27395\"},\"author\":{\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\"},\"headline\":\"\u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01\",\"datePublished\":\"2017-07-20T04:22:11+00:00\",\"dateModified\":\"2024-05-06T02:43:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27395\"},\"wordCount\":63,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27395#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/image-31.jpg\",\"articleSection\":[\"PHP\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27395\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27395\",\"name\":\"\u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27395#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27395#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/image-31.jpg\",\"datePublished\":\"2017-07-20T04:22:11+00:00\",\"dateModified\":\"2024-05-06T02:43:58+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27395#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27395\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27395#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/image-31.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/image-31.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27395#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\",\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\"},\"description\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-tech\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/27395","og_locale":"ja_JP","og_type":"article","og_title":"\u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/27395","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_published_time":"2017-07-20T04:22:11+00:00","article_modified_time":"2024-05-06T02:43:58+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-31.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/27395#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/27395"},"author":{"name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095"},"headline":"\u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01","datePublished":"2017-07-20T04:22:11+00:00","dateModified":"2024-05-06T02:43:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/27395"},"wordCount":63,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/27395#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-31.jpg","articleSection":["PHP\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/27395","url":"https:\/\/www.sejuku.net\/blog\/27395","name":"\u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/27395#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/27395#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-31.jpg","datePublished":"2017-07-20T04:22:11+00:00","dateModified":"2024-05-06T02:43:58+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/27395#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/27395"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/27395#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-31.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-31.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/27395#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010CakePHP\u5165\u9580\u3011QueryBuilder\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095","name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","caption":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8"},"description":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002","url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-tech"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/27395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/16433"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=27395"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/27395\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/27396"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=27395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=27395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=27395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}