<?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: single table inheritance pattern in symfony using propel</title>
	<atom:link href="http://toni.uebernickel.info/development/single-table-inheritance-pattern-in-symfony-using-propel/feed/" rel="self" type="application/rss+xml" />
	<link>http://toni.uebernickel.info/development/single-table-inheritance-pattern-in-symfony-using-propel/</link>
	<description>a small part of my life</description>
	<lastBuildDate>Sat, 22 May 2010 14:45:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-beta-2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: havvg</title>
		<link>http://toni.uebernickel.info/development/single-table-inheritance-pattern-in-symfony-using-propel/comment-page-1/#comment-493</link>
		<dc:creator>havvg</dc:creator>
		<pubDate>Wed, 20 Jan 2010 09:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://toni.uebernickel.info/?p=623#comment-493</guid>
		<description>Thanks for the advice, Derek. I wasn&#039;t aware of such a feature provided by propel. This makes may posting out of date :-)

The solution about the type is great, imho!</description>
		<content:encoded><![CDATA[<p>Thanks for the advice, Derek. I wasn&#8217;t aware of such a feature provided by propel. This makes may posting out of date :-)</p>
<p>The solution about the type is great, imho!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Martin</title>
		<link>http://toni.uebernickel.info/development/single-table-inheritance-pattern-in-symfony-using-propel/comment-page-1/#comment-492</link>
		<dc:creator>Derek Martin</dc:creator>
		<pubDate>Tue, 19 Jan 2010 20:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://toni.uebernickel.info/?p=623#comment-492</guid>
		<description>I think you misunderstand Propel&#039;s single table inheritance feature. Above, you are not doing single table inheritance. If you do a query using CommentPeer, it will also return rows that are Entries. If you do a query using EntryPeer, it will also return rows that are Comments. This is incorrect. Propel&#039;s STI feature says you must add a column to use as a &quot;classkey&quot;, and define this in the schema.xml file. For example 1=Entry, 2=Comment. Then when you $comment-&gt;save() it will automatically do: $comment-&gt;setClassKey(2); first. Also, your technique requires creating a table called Comment, and then abandoning it. Propel&#039;s STI feature doesn&#039;t require that step. It can automatically generate the Comment classes for you, from the Entry table. Check out the docs here: http://propel.phpdb.org/trac/wiki/Users/Documentation/1.3/Inheritance</description>
		<content:encoded><![CDATA[<p>I think you misunderstand Propel&#8217;s single table inheritance feature. Above, you are not doing single table inheritance. If you do a query using CommentPeer, it will also return rows that are Entries. If you do a query using EntryPeer, it will also return rows that are Comments. This is incorrect. Propel&#8217;s STI feature says you must add a column to use as a &#8220;classkey&#8221;, and define this in the schema.xml file. For example 1=Entry, 2=Comment. Then when you $comment-&gt;save() it will automatically do: $comment-&gt;setClassKey(2); first. Also, your technique requires creating a table called Comment, and then abandoning it. Propel&#8217;s STI feature doesn&#8217;t require that step. It can automatically generate the Comment classes for you, from the Entry table. Check out the docs here: <a href="http://propel.phpdb.org/trac/wiki/Users/Documentation/1.3/Inheritance" rel="nofollow">http://propel.phpdb.org/trac/wiki/Users/Documentation/1.3/Inheritance</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
