<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>phytoyasu</author_name>
  <author_url>https://blog.hatena.ne.jp/phytoyasu/</author_url>
  <blog_title>phytoyasuのブログ</blog_title>
  <blog_url>https://phytoyasu.hatenablog.com/</blog_url>
  <categories>
    <anon>CakePHP</anon>
  </categories>
  <description>リクエストデータのエンティティへの変換 getData()で取得したリクエストデータをnewEntity()に渡し、エンティティに変換。 &lt;?php $entity = $articles-&gt;newEntity($this-&gt;request-&gt;getData()); ?&gt; 複数のエンティティを変換する場合、newEntities()を用いる。 &lt;?php // リクエストデータ [ [ 'title' =&gt; '一番目の投稿', 'published' =&gt; 1 ], [ 'title' =&gt; '二番目の投稿', 'published' =&gt; 1 ], ]; $entity = $article…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fphytoyasu.hatenablog.com%2Fentry%2F2022%2F01%2F08%2F164734&quot; title=&quot;データの保存 ~リクエストデータからアソシエーションを保存する~ - phytoyasuのブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-01-08 16:47:34</published>
  <title>データの保存 ~リクエストデータからアソシエーションを保存する~</title>
  <type>rich</type>
  <url>https://phytoyasu.hatenablog.com/entry/2022/01/08/164734</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
