<?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"
	>
<channel>
	<title>Comments for Blackfin Software</title>
	<atom:link href="http://www.blackfinsoftware.com/wordpress/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blackfinsoftware.com/wordpress</link>
	<description>miscellaneous technical thoughts</description>
	<pubDate>Thu, 11 Mar 2010 20:17:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>Comment on Automating __toString in Symfony by tcowin</title>
		<link>http://www.blackfinsoftware.com/wordpress/2009/02/automating-__tostring-in-symfony/#comment-645</link>
		<dc:creator>tcowin</dc:creator>
		<pubDate>Fri, 13 Mar 2009 17:21:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.blackfinsoftware.com/wordpress/?p=64#comment-645</guid>
		<description>A bigger problem that this does not address is the ability to order the columns of the displayed html table from the list action. Symfony automatically provides this ability to any native columns, including the actual foreign key 'id' references - before you implement a partial or utilize my solution above. When you do use my solution, you'll find that the foreign key columns are sortable, but based upon the id and not the textual representation that we're getting from the &lt;code&gt;__toString&lt;/code&gt; method. This has long been a problem, and is one that should be able to be solved without a tremendous amount of effort. I know there are certain efforts underway to provide a plugin that would handle this. To rely upon the power of mysql to sort the table rows and paginate for you, you really have to have the actual text in a table (or view). So - one way I could envision this working is that if we dynamically create a view in mysql that would assemble the actual column contents from the various referenced tables, and then present our html table in the list action based upon that view, instead of the table.</description>
		<content:encoded><![CDATA[<p>A bigger problem that this does not address is the ability to order the columns of the displayed html table from the list action. Symfony automatically provides this ability to any native columns, including the actual foreign key &#8216;id&#8217; references - before you implement a partial or utilize my solution above. When you do use my solution, you&#8217;ll find that the foreign key columns are sortable, but based upon the id and not the textual representation that we&#8217;re getting from the <code>__toString</code> method. This has long been a problem, and is one that should be able to be solved without a tremendous amount of effort. I know there are certain efforts underway to provide a plugin that would handle this. To rely upon the power of mysql to sort the table rows and paginate for you, you really have to have the actual text in a table (or view). So - one way I could envision this working is that if we dynamically create a view in mysql that would assemble the actual column contents from the various referenced tables, and then present our html table in the list action based upon that view, instead of the table.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
