<?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: Short:  Order Result Sets by an Array</title>
	<atom:link href="http://brentertainment.com/2010/07/20/short-order-result-sets-by-an-array/feed/" rel="self" type="application/rss+xml" />
	<link>http://brentertainment.com/2010/07/20/short-order-result-sets-by-an-array/</link>
	<description>Welcome to the Brenternet</description>
	<lastBuildDate>Tue, 07 Jun 2011 16:22:01 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brent Shaffer</title>
		<link>http://brentertainment.com/2010/07/20/short-order-result-sets-by-an-array/comment-page-1/#comment-182</link>
		<dc:creator>Brent Shaffer</dc:creator>
		<pubDate>Fri, 21 Jan 2011 00:59:51 +0000</pubDate>
		<guid isPermaLink="false">http://brentertainment.com/?p=383#comment-182</guid>
		<description>That will work, although it&#039;s better to use the setAttribute function on the Doctrine_Manager object.
This should be added via the configureDoctrine method in your ProjectConfiguration class.  The full code looks something like this:

&lt;pre&gt;  /**
    * Configure the Doctrine engine
    */
  public function configureDoctrine(Doctrine_Manager $manager)
  {
    $manager-&gt;setAttribute(Doctrine_Core::ATTR_QUERY_CLASS, &#039;Doctrine_Query_Extra&#039;);
  }&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>That will work, although it&#8217;s better to use the setAttribute function on the Doctrine_Manager object.<br />
This should be added via the configureDoctrine method in your ProjectConfiguration class.  The full code looks something like this:</p>
<pre>  /**
    * Configure the Doctrine engine
    */
  public function configureDoctrine(Doctrine_Manager $manager)
  {
    $manager->setAttribute(Doctrine_Core::ATTR_QUERY_CLASS, 'Doctrine_Query_Extra');
  }</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Moorhouse</title>
		<link>http://brentertainment.com/2010/07/20/short-order-result-sets-by-an-array/comment-page-1/#comment-180</link>
		<dc:creator>Phil Moorhouse</dc:creator>
		<pubDate>Wed, 05 Jan 2011 16:50:03 +0000</pubDate>
		<guid isPermaLink="false">http://brentertainment.com/?p=383#comment-180</guid>
		<description>Just a quick note for anyone who wasn&#039;t clear how to get the correct query object; this works for me:

Download the linked code from github, save it as:
Doctrine_Query_Extra.class.php
somewhere under your /lib dir

then in your Table class:
$q = Doctrine_Query_Extra::create(null, &#039;Doctrine_Query_Extra&#039;);

Hope that helps :)</description>
		<content:encoded><![CDATA[<p>Just a quick note for anyone who wasn&#8217;t clear how to get the correct query object; this works for me:</p>
<p>Download the linked code from github, save it as:<br />
Doctrine_Query_Extra.class.php<br />
somewhere under your /lib dir</p>
<p>then in your Table class:<br />
$q = Doctrine_Query_Extra::create(null, &#8216;Doctrine_Query_Extra&#8217;);</p>
<p>Hope that helps <img src='http://brentertainment.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brent Shaffer</title>
		<link>http://brentertainment.com/2010/07/20/short-order-result-sets-by-an-array/comment-page-1/#comment-138</link>
		<dc:creator>Brent Shaffer</dc:creator>
		<pubDate>Tue, 20 Jul 2010 19:08:31 +0000</pubDate>
		<guid isPermaLink="false">http://brentertainment.com/?p=383#comment-138</guid>
		<description>Thank you for posting this.  For SQLite, if you ever needed this functionality it would be faster to sort on the PHP level, using an array sort method like the one below:

http://gist.github.com/483357</description>
		<content:encoded><![CDATA[<p>Thank you for posting this.  For SQLite, if you ever needed this functionality it would be faster to sort on the PHP level, using an array sort method like the one below:</p>
<p><a href="http://gist.github.com/483357" rel="nofollow">http://gist.github.com/483357</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DuoSRX</title>
		<link>http://brentertainment.com/2010/07/20/short-order-result-sets-by-an-array/comment-page-1/#comment-137</link>
		<dc:creator>DuoSRX</dc:creator>
		<pubDate>Tue, 20 Jul 2010 19:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://brentertainment.com/?p=383#comment-137</guid>
		<description>Sadly it doesn&#039;t work with SQLite.
I stumbled upon this because my unit tests use an in-memory SQLite database and failed each time I tried to use order by field.
http://stackoverflow.com/questions/3091800/order-by-field-with-sqlite</description>
		<content:encoded><![CDATA[<p>Sadly it doesn&#8217;t work with SQLite.<br />
I stumbled upon this because my unit tests use an in-memory SQLite database and failed each time I tried to use order by field.<br />
<a href="http://stackoverflow.com/questions/3091800/order-by-field-with-sqlite" rel="nofollow">http://stackoverflow.com/questions/3091800/order-by-field-with-sqlite</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

