<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tjtjtjofthedead</author_name>
  <author_url>https://blog.hatena.ne.jp/tjtjtjofthedead/</author_url>
  <blog_title>tjtjtjのメモ</blog_title>
  <blog_url>https://tjtjtj.hatenablog.com/</blog_url>
  <categories>
    <anon>php</anon>
    <anon>yii</anon>
  </categories>
  <description>YiiFrameworkのCManyManyRelationは中間テーブルへのアクセス手段を用意してくれません。なので、中間テーブルに属性を持たせたいときはHasManyとBelongsToを使うのが、今のところエレガントな解決方法のようです。 http://www.yiiframework.com/wiki/285/accessing-data-in-a-join-table-with-the-related-models/#c6007 http://www.yiiframework.com/wiki/285/accessing-data-in-a-join-table-with-the-r…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftjtjtj.hatenablog.com%2Fentry%2F2012%2F10%2F23%2F231643&quot; title=&quot;Yiiで中間テーブルに属性を持たせたいときはHasMany, BelongsToを使う - tjtjtjのメモ&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>2012-10-23 23:16:43</published>
  <title>Yiiで中間テーブルに属性を持たせたいときはHasMany, BelongsToを使う</title>
  <type>rich</type>
  <url>https://tjtjtj.hatenablog.com/entry/2012/10/23/231643</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
