<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gothedistance</author_name>
  <author_url>https://blog.hatena.ne.jp/gothedistance/</author_url>
  <blog_title>Life is Really Short, Have Your Life!!</blog_title>
  <blog_url>https://aroundthedistance.hatenadiary.jp/</blog_url>
  <categories>
    <anon>CakePHP</anon>
  </categories>
  <description>Deepなアソシエーションを組もうとするとバインドされないことが多くて困ってる。 注文明細は商品にBelong、商品は仕入先とカテゴリBelongしてるとする。 &lt;?php $注文明細-&gt;contain(array('商品'=&gt;array('仕入先','カテゴリ')); 商品までは取れるのだが、仕入先とカテゴリが全く無視されてしまう。A→Bまではいけるが、A→B→Cの「C」がバインドされない。B→CはAから見てHasManyだからB→CはHasManyでアソシエーション組めっていうのもなんかキモイ。 結構こういうDeepなJoin、つまり元となるモデルと直接Joinできるわけではなく数珠つなぎ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faroundthedistance.hatenadiary.jp%2Fentry%2F2013%2F07%2F05%2F133358&quot; title=&quot;CakePHP2.xのContainableの仕組みはよくわからない・・ - Life is Really Short, Have Your Life!!&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>2013-07-05 13:33:58</published>
  <title>CakePHP2.xのContainableの仕組みはよくわからない・・</title>
  <type>rich</type>
  <url>https://aroundthedistance.hatenadiary.jp/entry/2013/07/05/133358</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
