<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: CakePHP Models &#8211; multiple columns to the same table</title>
	<atom:link href="http://nsslive.net/2009/07/02/cakephp-models-multiple-columns-to-the-same-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://nsslive.net/2009/07/02/cakephp-models-multiple-columns-to-the-same-table/</link>
	<description>code &#039;n chicken</description>
	<lastBuildDate>Mon, 23 Nov 2009 15:34:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dr. Hannibal Lecter</title>
		<link>http://nsslive.net/2009/07/02/cakephp-models-multiple-columns-to-the-same-table/comment-page-1/#comment-137</link>
		<dc:creator>dr. Hannibal Lecter</dc:creator>
		<pubDate>Mon, 06 Jul 2009 05:13:50 +0000</pubDate>
		<guid isPermaLink="false">http://nsslive.net/?p=200#comment-137</guid>
		<description>Ah yes, you&#039;re right. I&#039;m probably thinking of hasMany.</description>
		<content:encoded><![CDATA[<p>Ah yes, you&#8217;re right. I&#8217;m probably thinking of hasMany.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nabeel</title>
		<link>http://nsslive.net/2009/07/02/cakephp-models-multiple-columns-to-the-same-table/comment-page-1/#comment-136</link>
		<dc:creator>Nabeel</dc:creator>
		<pubDate>Sun, 05 Jul 2009 16:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://nsslive.net/?p=200#comment-136</guid>
		<description>Nope, because the foreign key on the airports table is airport_id, not ICAO. It&#039;s looking up a different column on the join so you have to specify.</description>
		<content:encoded><![CDATA[<p>Nope, because the foreign key on the airports table is airport_id, not ICAO. It&#8217;s looking up a different column on the join so you have to specify.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dr. Hannibal Lecter</title>
		<link>http://nsslive.net/2009/07/02/cakephp-models-multiple-columns-to-the-same-table/comment-page-1/#comment-135</link>
		<dc:creator>dr. Hannibal Lecter</dc:creator>
		<pubDate>Sun, 05 Jul 2009 15:50:34 +0000</pubDate>
		<guid isPermaLink="false">http://nsslive.net/?p=200#comment-135</guid>
		<description>Hm.. isn&#039;t setting the foreignKey property enough?

i.e.

public $belongsTo = array(
       &#039;DepartureAirport&#039; =&gt; array(
           &#039;className&#039; =&gt; &#039;Airport&#039;,
           &#039;foreignKey&#039; =&gt; &#039;Schedule.departure_icao&#039;,
           &#039;fields&#039; =&gt; &#039;&#039;,
           &#039;order&#039; =&gt; &#039;&#039;
       ),</description>
		<content:encoded><![CDATA[<p>Hm.. isn&#8217;t setting the foreignKey property enough?</p>
<p>i.e.</p>
<p>public $belongsTo = array(<br />
       &#8216;DepartureAirport&#8217; =&gt; array(<br />
           &#8216;className&#8217; =&gt; &#8216;Airport&#8217;,<br />
           &#8216;foreignKey&#8217; =&gt; &#8216;Schedule.departure_icao&#8217;,<br />
           &#8216;fields&#8217; =&gt; &#8221;,<br />
           &#8216;order&#8217; =&gt; &#8221;<br />
       ),</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CakePHP Models – multiple columns to the same table &#124; nabeel shahzad &#124; CheapAirportParking</title>
		<link>http://nsslive.net/2009/07/02/cakephp-models-multiple-columns-to-the-same-table/comment-page-1/#comment-134</link>
		<dc:creator>CakePHP Models – multiple columns to the same table &#124; nabeel shahzad &#124; CheapAirportParking</dc:creator>
		<pubDate>Thu, 02 Jul 2009 18:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://nsslive.net/?p=200#comment-134</guid>
		<description>[...] See the original post: CakePHP Models – multiple columns to the same table &#124; nabeel shahzad [...]</description>
		<content:encoded><![CDATA[<p>[...] See the original post: CakePHP Models – multiple columns to the same table | nabeel shahzad [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->