{"id":27329,"date":"2017-07-18T19:38:18","date_gmt":"2017-07-18T10:38:18","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=27329"},"modified":"2024-05-06T11:43:56","modified_gmt":"2024-05-06T02:43:56","slug":"%e3%80%90cakephp%e5%85%a5%e9%96%80%e3%80%91save%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e4%bf%9d%e5%ad%98%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/27329","title":{"rendered":"\u3010CakePHP\u5165\u9580\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>CakePHP\u306b\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5185\u5bb9\u3092\u7de8\u96c6\u3057\u305f\u308a\u3001\u8ffd\u52a0\u3057\u305f\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\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>\u30fbsave\u3068\u306f\uff1f<br \/>\n\u30fbsave\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<br \/>\n\u30fb\u8ffd\u52a0\u3057\u305f\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5<br \/>\n\u30fb\u66f4\u65b0\u3057\u305f\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5<\/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\u8907\u6570\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\uff08saveall\u306e\u4ee3\u66ff\uff09<\/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\u306fsave\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\uff01<\/p>\n<h2>save\u3068\u306f<\/h2>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u3067\u8aad\u307f\u8fbc\u3093\u3060\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5185\u5bb9\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3001\u524a\u9664\u3057\u305f\u3042\u3068\u306b<span style=\"color: #0000ff;\"><strong>\u5909\u66f4\u5185\u5bb9\u3092\u4fdd\u5b58<\/strong><\/span>\u3059\u308b\u306b\u306f\u3001<span style=\"color: #339966;\"><strong>save<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>save\u30e1\u30bd\u30c3\u30c9\u306f\u53d6\u5f97\u3057\u305f<span style=\"color: #0000ff;\"><strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9<\/strong><\/span>\u306b\u5bfe\u3057\u3066\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >$fruitsTable = TableRegistry::getTableLocator()-&gt;get('fruits');\r\n$newfruits = $fruitsTable-&gt;newEntity();\r\n\r\n\u30c6\u30fc\u30d6\u30eb\u66f4\u65b0\u51e6\u7406\u30fb\u30fb\u30fb\r\n\r\n$fruitsTable->save($newfruits);<\/pre>\n<h2>save\u306e\u4f7f\u3044\u65b9<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001\u5b9f\u969b\u306bsave\u306e\u4f7f\u3044\u65b9\u3092\u898b\u3066\u3044\u304d\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    name VARCHAR(32),\r\n    value INT\r\n);\r\n<\/pre>\n<p>\u7d9a\u3044\u3066\u3001<span style=\"color: #339966;\"><strong>INSERT<\/strong><\/span>\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 (name, value) VALUES ('&quot;apple&quot;', 100);\r\nINSERT INTO fruits (name, value) VALUES ('&quot;orange&quot;', 80);\r\nINSERT INTO fruits (name, value) VALUES ('&quot;melon&quot;', 500);<\/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<p>Cake\/src\/Controller\/FruitsController.php<\/p>\n<pre class=\"lang:php decode:true \" >\r\n&lt;?php\r\nnamespace AppController;\r\n\r\nuse AppControllerAppController;\r\nuse CakeEventEvent;\r\nuse CakeORMTableRegistry;\r\n\r\nclass FruitsController extends AppController\r\n{\r\n\r\n    function beforeFilter(Event $event) {\r\n        \/\/\u30c6\u30fc\u30d6\u30eb\u3092\u53d6\u5f97\r\n        $fruitsTable = TableRegistry::getTableLocator()-&gt;get('fruits');\r\n        $newfruits = $fruitsTable-&gt;newEntity();\r\n\r\n        $newfruits-&gt;name = 'pineapple';\r\n        $newfruits-&gt;value = '450';\r\n\r\n        \/\/\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\r\n        if ($fruitsTable-&gt;save($newfruits)) {\r\n            $id = $newfruits-&gt;id;\r\n        }\r\n    }\r\n\r\n    public function index()\r\n    {\r\n        $this-&gt;set('fruits', $this-&gt;Fruits-&gt;find('all'));\r\n    }\r\n}\r\n<\/pre>\n<p>\u3053\u3053\u3067\u306f\u3001\u5171\u901a\u51e6\u7406\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u30e1\u30bd\u30c3\u30c9<span style=\"color: #339966;\"><strong>beforeFilter<\/strong><\/span>\u3067\u30c6\u30fc\u30d6\u30eb\u306e\u8ffd\u52a0\u53ca\u3073save\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u4fdd\u5b58\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>beforeFilter\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001<span style=\"color: #339966;\"><strong>\u300cuse CakeEventEvent;\u300d<\/strong><\/span>\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<p>beforeFilter\u30e1\u30bd\u30c3\u30c9\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u3082\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\uff01<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/27127\" 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\/image-21-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010CakePHP\u5165\u9580\u3011\u5171\u901a\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5(beforefilter)<\/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>\u307e\u305f\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u64cd\u4f5c\u3092\u884c\u3046\u3068\u304d\u306f<span style=\"color: #339966;\"><strong>TableRegistry<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u3066<span style=\"color: #0000ff;\"><strong>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53d6\u5f97<\/strong><\/span>\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 CakeORMTableRegistry;\u300d<\/strong><\/span>\u3092\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b<strong>index.ctp<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>Cake\/src\/Template\/Fruits\/index.ctp<\/p>\n<pre class=\"lang:php decode:true \" >\r\n&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;name&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;name ?&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;\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<div id=\"attachment_86052\" style=\"width: 707px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-86052\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/c7d7c51c8b584e37b678e902fd2ef5cf.jpg\" alt=\"\" width=\"697\" height=\"233\" class=\"size-full wp-image-86052\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/c7d7c51c8b584e37b678e902fd2ef5cf.jpg 697w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/c7d7c51c8b584e37b678e902fd2ef5cf-150x50.jpg 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/c7d7c51c8b584e37b678e902fd2ef5cf-300x100.jpg 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/c7d7c51c8b584e37b678e902fd2ef5cf-640x214.jpg 640w\" sizes=\"(max-width: 697px) 100vw, 697px\" \/><p id=\"caption-attachment-86052\" class=\"wp-caption-text\">\u30d5\u30eb\u30fc\u30c4\u30c6\u30fc\u30d6\u30eb\u306e\u51fa\u529b<\/p><\/div>\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001FruitsController\u3067\u8ffd\u52a0\u3057\u305fpineapple\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\uff01<\/p>\n<p>\u3053\u306e\u3088\u3046\u306bsave\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308c\u3070\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u3067<span style=\"color: #ff0000;\"><strong>\u30c6\u30fc\u30d6\u30eb\u306e\u7de8\u96c6\u3084\u4fdd\u5b58\u3068\u3044\u3063\u305f\u64cd\u4f5c\u304c\u53ef\u80fd<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30c7\u30fc\u30bf\u306e\u66f4\u65b0<\/h3>\n<p>\u30c6\u30fc\u30d6\u30eb\u306e\u5185\u5bb9\u3092\u66f4\u65b0\u3059\u308b\u3068\u304d\u306f\u3001\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u5bfe\u3057\u3066\u3001<span style=\"color: #339966;\"><strong>get<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3067<span style=\"color: #0000ff;\"><strong>id\u3092\u6307\u5b9a\u3057<\/strong><\/span>\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3067\u306fid\uff1a2\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001<span style=\"color: #0000ff;\"><strong>\u5185\u5bb9\u3092\u66f4\u65b0\u3057\u3066save\u30e1\u30bd\u30c3\u30c9\u3067\u4fdd\u5b58<\/strong><\/span>\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \" >\r\n$fruitsTable = TableRegistry::getTableLocator()-&gt;get('fruits');\r\n$newfruits = $fruitsTable-&gt;get(2);\r\n\r\n$newfruits-&gt;name = 'strawberry';\r\n$fruitsTable-&gt;save($newfruits);\r\n<\/pre>\n<h2>\u8907\u6570\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>\u8907\u6570\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u4fdd\u5b58\u3059\u308b\u306b\u306fCakePHP2.x\u7cfb\u307e\u3067\u306f<span style=\"color: #339966;\"><strong>saveall<\/strong><\/span>\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001CakePHP3\u3067\u306fORM\u306e\u5909\u66f4\u306b\u4f34\u3044saveall\u304c\u5229\u7528\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ee3\u308f\u308a\u306b\u8907\u6570\u306e\u30ec\u30b3\u30fc\u30c9\uff08\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff09\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001<span style=\"color: #0000ff;\"><strong>saveMany<\/strong><\/span>\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306bsaveMany\u3092\u4f7f\u7528\u3057\u3066\u3001\u8907\u6570\u30ec\u30b3\u30fc\u30c9\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \" >\r\n\/\/ \u30c7\u30fc\u30bf\u3092\u8907\u6570\u8ffd\u52a0\u3059\u308b\r\n$fruitsdata = [\r\n[\r\n      'fruits' =&gt; 'pineapple',\r\n      'value' =&gt; 450\r\n],\r\n[\r\n      'fruits' =&gt; 'strawberry',\r\n      'value' =&gt; 500\r\n],\r\n];\r\n\r\n$fruitsTable = TableRegistry::getTableLocator()-&gt;get('fruits');\r\n$entities = $fruitsTable-&gt;newEntities($fruitsdata);\r\n$result = $fruitsTable-&gt;saveMany($entities);\r\n<\/pre>\n<p>CakePHP2\u7cfb\u306b\u6163\u308c\u89aa\u3057\u3093\u3067\u3044\u308b\u65b9\u306fORM\u306e\u5909\u66f4\u3067\u304b\u306a\u308a\u611f\u899a\u304c\u5909\u308f\u308b\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u3046\u3044\u3063\u305f\u65b9\u306f\u516c\u5f0f\u306e\u65b0ORM\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u30ac\u30a4\u30c9\u3092\u8aad\u3080\u3053\u3068\u3067\u77e5\u8b58\u3092\u66f4\u65b0\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u53c2\u7167\uff1a<a href=\"https:\/\/book.cakephp.org\/3.0\/ja\/appendices\/orm-migration.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u65b0ORM\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u30ac\u30a4\u30c9<\/a><\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001save\u3092\u4f7f\u7528\u3057\u3066\u8ffd\u52a0\u3084\u66f4\u65b0\u3057\u305f\u30c7\u30fc\u30bf\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3057\u305f\u308a\u3001\u8907\u6570\u30ec\u30b3\u30fc\u30c9\u3092\u767b\u9332\u3059\u308bsaveall\u306e\u4ee3\u66ff\u624b\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<br \/>\n<span style=\"color: #ff0000;\"><strong><br \/>\nsave\u3092\u4f7f\u7528\u3059\u308c\u3070\u7de8\u96c6\u3001\u8ffd\u52a0\u3057\u305f\u30c7\u30fc\u30bf\u3092\u7c21\u5358\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u3082\u3057save\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\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5185\u5bb9\u3092\u7de8\u96c6\u3057\u305f\u308a\u3001\u8ffd\u52a0\u3057\u305f\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001 \u30fbsave\u3068\u306f\uff1f \u30fbsave\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9 \u30fb\u8ffd\u52a0\u3057\u305f\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5 \u30fb\u66f4\u65b0\u3057\u305f\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5 \u3068 [&hellip;]<\/p>\n","protected":false},"author":16433,"featured_media":27353,"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":[38],"class_list":["post-27329","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-study","tag-php"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010CakePHP\u5165\u9580\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5 | \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\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5 \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\/27329\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010CakePHP\u5165\u9580\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5 | \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\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5 \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\/27329\" \/>\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-18T10:38:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:43:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-23.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\\\/27329#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27329\"},\"author\":{\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\"},\"headline\":\"\u3010CakePHP\u5165\u9580\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\",\"datePublished\":\"2017-07-18T10:38:18+00:00\",\"dateModified\":\"2024-05-06T02:43:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27329\"},\"wordCount\":93,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27329#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/image-23.jpg\",\"keywords\":[\"PHP\"],\"articleSection\":[\"PHP\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27329\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27329\",\"name\":\"\u3010CakePHP\u5165\u9580\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27329#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27329#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/image-23.jpg\",\"datePublished\":\"2017-07-18T10:38:18+00:00\",\"dateModified\":\"2024-05-06T02:43:56+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5 \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\\\/27329#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27329\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27329#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/image-23.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/image-23.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/27329#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010CakePHP\u5165\u9580\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\"}]},{\"@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\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5 \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\/27329","og_locale":"ja_JP","og_type":"article","og_title":"\u3010CakePHP\u5165\u9580\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5 \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\/27329","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_published_time":"2017-07-18T10:38:18+00:00","article_modified_time":"2024-05-06T02:43:56+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-23.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\/27329#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/27329"},"author":{"name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095"},"headline":"\u3010CakePHP\u5165\u9580\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5","datePublished":"2017-07-18T10:38:18+00:00","dateModified":"2024-05-06T02:43:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/27329"},"wordCount":93,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/27329#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-23.jpg","keywords":["PHP"],"articleSection":["PHP\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/27329","url":"https:\/\/www.sejuku.net\/blog\/27329","name":"\u3010CakePHP\u5165\u9580\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/27329#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/27329#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-23.jpg","datePublished":"2017-07-18T10:38:18+00:00","dateModified":"2024-05-06T02:43:56+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5 \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\/27329#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/27329"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/27329#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-23.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-23.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/27329#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010CakePHP\u5165\u9580\u3011save\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5"}]},{"@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\/27329","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=27329"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/27329\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/27353"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=27329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=27329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=27329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}