{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsng7.hatenablog.jp%2Fentry%2F2013%2F12%2F19%2F183057\" title=\"CakePHP\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306efield\u306e\u5024\u3092\u6f14\u7b97\u3057\u3066\u66f4\u65b0\u3059\u308b\u3002 - \u8179\u304c\u6e1b\u3063\u3066\u306f\u306a\u3093\u3068\u3084\u3089\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","author_url":"https://blog.hatena.ne.jp/sng7/","url":"https://sng7.hatenablog.jp/entry/2013/12/19/183057","published":"2013-12-19 18:30:57","title":"CakePHP\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306efield\u306e\u5024\u3092\u6f14\u7b97\u3057\u3066\u66f4\u65b0\u3059\u308b\u3002","type":"rich","image_url":null,"categories":["CakePHP"],"blog_url":"https://sng7.hatenablog.jp/","provider_name":"Hatena Blog","description":"\u304a\u3044\u3063\u3059\u3002 CakePHP\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306efield\u306e\u5024\u3092\u5909\u66f4\u3059\u308b\u306e\u306b\u3001updateAll\uff08\u516c\u5f0fAPI\uff09\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002 \u4f8b\u3048\u3070\u3001users\u30c6\u30fc\u30d6\u30eb\u3067\u767b\u9332\u3055\u308c\u305fbirthday\u3063\u3066\u3044\u3046filed\u304c\u4eca\u65e5\u306e\u65e5\u4ed8\u3068\u4e00\u81f4\u3057\u3066\u305f\u6642\u306bage\u3068\u3044\u3046field\u306b\uff11\u52a0\u7b97\u3059\u308b\u3068\u3057\u307e\u3059\u3002 <?php public function toshitotta() { $today = date(\"Y-m-d\") $this->User->updateAll( array('User.age' => 'User.age + 1'), array('User.birthday =' => $today) ); \u3063\u3066\u306a\u611f\u3058\u3067\u3059\u3002\u2026","blog_title":"\u8179\u304c\u6e1b\u3063\u3066\u306f\u306a\u3093\u3068\u3084\u3089","version":"1.0","provider_url":"https://hatena.blog","author_name":"sng7","width":"100%"}