<?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>Commentaires sur : Tips : Symfony 1.3/1.4 orderBy des relations</title>
	<atom:link href="http://www.lexik.fr/blog/symfony/symfony/tips-symfony-1-31-4-orderby-des-relations-1026/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lexik.fr/blog/symfony/symfony/tips-symfony-1-31-4-orderby-des-relations-1026</link>
	<description>Blog sur le développement Web PHP</description>
	<lastBuildDate>Sun, 25 Jul 2010 16:15:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Par : ipatate</title>
		<link>http://www.lexik.fr/blog/symfony/symfony/tips-symfony-1-31-4-orderby-des-relations-1026/comment-page-1#comment-6855</link>
		<dc:creator>ipatate</dc:creator>
		<pubDate>Thu, 01 Apr 2010 13:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.lexik.fr/blog/symfony/?p=1026#comment-6855</guid>
		<description>nickel la method construct, pour obtenir l&#039;order dans les select !!</description>
		<content:encoded><![CDATA[<p>nickel la method construct, pour obtenir l&#8217;order dans les select !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Axan</title>
		<link>http://www.lexik.fr/blog/symfony/symfony/tips-symfony-1-31-4-orderby-des-relations-1026/comment-page-1#comment-5877</link>
		<dc:creator>Axan</dc:creator>
		<pubDate>Fri, 26 Feb 2010 04:05:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.lexik.fr/blog/symfony/?p=1026#comment-5877</guid>
		<description>Celà ne fonctionne pas (chez moi du moins), le champ &#039;orderBy&#039; n&#039;est pas pris en compte à la génération depuis le YML.
En revanche j&#039;ai trouvé un autre moyen de faire:
Surcharger la méthode &quot;construct()&quot; de la classe xxxTable
comme ceci
[code]
function construct()
{
  setOption(&#039;orderBy&#039;, &#039;leChamp DESC&#039;);
}
[/code]

Il faut bien surcharger construct() et non __construct() !</description>
		<content:encoded><![CDATA[<p>Celà ne fonctionne pas (chez moi du moins), le champ &#8216;orderBy&#8217; n&#8217;est pas pris en compte à la génération depuis le YML.<br />
En revanche j&#8217;ai trouvé un autre moyen de faire:<br />
Surcharger la méthode &quot;construct()&quot; de la classe xxxTable<br />
comme ceci<br />
[code]<br />
function construct()<br />
{<br />
  setOption('orderBy', 'leChamp DESC');<br />
}<br />
[/code]</p>
<p>Il faut bien surcharger construct() et non __construct() !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : CpnForTehWin</title>
		<link>http://www.lexik.fr/blog/symfony/symfony/tips-symfony-1-31-4-orderby-des-relations-1026/comment-page-1#comment-5227</link>
		<dc:creator>CpnForTehWin</dc:creator>
		<pubDate>Fri, 15 Jan 2010 17:51:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.lexik.fr/blog/symfony/?p=1026#comment-5227</guid>
		<description>Merci pour cette petite astuce !</description>
		<content:encoded><![CDATA[<p>Merci pour cette petite astuce !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
