<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>同一組 DB table ，不同關係的設定方式</title>
<link>http://blog.roodo.com/thegiive/archives/2106403.html/</link>
<description><![CDATA[應該很多人有類似的想法吧？
今天兩個 tables ，他們的關聯不只一種

舉個例子：
User  這個 table 跟 Email 這個 table 是 1:m 的關係
email 這個欄位有 user_id -> 代表這個信的收信人是誰
還有 sender_user_id -> 代表這個信的寄件人是誰
今天如果使用 ActiveReocrd 的預設方式

  ]]>
	</description>
<language>zh-tw</language>
<generator>Roodo Blog System</generator>
<copyright>All Rights Reserved</copyright>
<atom:link href="http://blog.roodo.com/thegiive/archives/2106403-comment.xml" rel="self" type="application/rss+xml" />
<item>
	<title>回應：同一組 DB table ，不同關係的設定方式</title>
	<description><![CDATA[真有趣的方法，不知道這種作法在CakePHP能不能用，晚點來試試看好了..^_^..]]>
	</description>
	<link>http://blog.roodo.com/thegiive/archives/2106403.html</link>
	<guid>http://blog.roodo.com/thegiive/archives/2106403.html#comment-3013514</guid>
	<author>darkhero@gmail.com(ㄚ凱)</author>	<category>文章回應</category>
	<pubDate>Tue, 05 Sep 2006 11:43:40 +0800</pubDate>
</item>
</channel>
</rss>