{"id":2176,"date":"2015-09-03T20:05:18","date_gmt":"2015-09-03T11:05:18","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=2176"},"modified":"2015-09-03T20:05:18","modified_gmt":"2015-09-03T11:05:18","slug":"cakephp-%e5%ae%9f%e8%a1%8c%e3%81%95%e3%82%8c%e3%81%9fsql%e3%82%92%e5%87%ba%e5%8a%9b%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2015\/09\/03\/cakephp-%e5%ae%9f%e8%a1%8c%e3%81%95%e3%82%8c%e3%81%9fsql%e3%82%92%e5%87%ba%e5%8a%9b%e3%81%99%e3%82%8b\/","title":{"rendered":"CakePHP \u5b9f\u884c\u3055\u308c\u305fSQL\u3092\u51fa\u529b\u3059\u308b"},"content":{"rendered":"<p>\u3069\u3061\u3089\u304b\u3068\u3044\u3046\u3068\u753b\u9762\u304c\u3067\u306a\u3044CakePHP\u306eBatch\u306b\u304a\u3051\u308b\u30c6\u30af\u30cb\u30c3\u30af\u3002<\/p>\n<p>CakePHP\u3067\u306f\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u308c\u3070\u3001Web\u753b\u9762\u306b\u306f\u5b9f\u884c\u3055\u308c\u305fSQL\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>\u30d0\u30c3\u30c1\u306e\u3068\u304d\u306f\u3069\u3093\u306aSQL\u304c\u5b9f\u884c\u3055\u308c\u305f\u306e\u304b\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d\u306f\u5b9f\u884c\u76f4\u5f8c\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3059\u308b\u3068SQL\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>[PHP]<br \/>\nprint_r($this->\u30e2\u30c7\u30eb\u540d->getDataSource()->getLog());<br \/>\n[\/PHP]<\/p>\n<p>\u30ad\u30fc\u306equery\u3092\u898b\u308c\u3070\u3088\u3044\u3002<br \/>\n\u8907\u6570\u5b9f\u884c\u3055\u308c\u305f\u5834\u5408\u306f\u914d\u5217\u3068\u306a\u3063\u3066\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3061\u3089\u304b\u3068\u3044\u3046\u3068\u753b\u9762\u304c\u3067\u306a\u3044CakePHP\u306eBatch\u306b\u304a\u3051\u308b\u30c6\u30af\u30cb\u30c3\u30af\u3002 Ca &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2015\/09\/03\/cakephp-%e5%ae%9f%e8%a1%8c%e3%81%95%e3%82%8c%e3%81%9fsql%e3%82%92%e5%87%ba%e5%8a%9b%e3%81%99%e3%82%8b\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[116,16],"tags":[420,439],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2176"}],"collection":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/comments?post=2176"}],"version-history":[{"count":1,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2176\/revisions"}],"predecessor-version":[{"id":2177,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2176\/revisions\/2177"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=2176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=2176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=2176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}