<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Tue May 21 11:48:36 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/si/jira.issueviews:issue-xml/DC-909/DC-909.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[DC-909] Add Some Info to Doctrine Query order by Method Documentation</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-909</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;This is very minor, but would have saved me a few minutes. On the Doctrine Query documentation page (V1 - &lt;a href=&quot;http://www.doctrine-project.org/projects/orm/1.2/docs/manual/dql-doctrine-query-language/en#order-by-clause&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/projects/orm/1.2/docs/manual/dql-doctrine-query-language/en#order-by-clause&lt;/a&gt;), it would be useful to note that multiple calls to Doctrine_Query::orderBy() do not stack, and that the later calls will over write the previous ones. I&apos;ll propose:&lt;/p&gt;

&lt;p&gt;To sort by multiple columns, you must specify them in one call to Doctrine_Query::orderBy(). If you call orderBy a second time, the column from the first call will not be included in the resulting query. &lt;/p&gt;

&lt;p&gt;&amp;lt;code&amp;gt;&lt;br/&gt;
//works as expected&lt;br/&gt;
//results in ORDER BY id ASC, userName DESC&lt;br/&gt;
$query-&amp;gt;orderBy(&apos;id ASC, userName DESC&apos;);&lt;/p&gt;

&lt;p&gt;//does not work as expected&lt;br/&gt;
//results in ORDER BY userName DESC&lt;br/&gt;
$query-&amp;gt;orderBy(&apos;id ASC&apos;)&lt;br/&gt;
            -&amp;gt;orderBy(&apos;userName DESC&apos;);&lt;br/&gt;
&amp;lt;/code&amp;gt;&lt;/p&gt;</description>
                <environment>n/a</environment>
            <key id="12051">DC-909</key>
            <summary>Add Some Info to Doctrine Query order by Method Documentation</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/trivial.png">Trivial</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="isac1984">Isaac Foster</reporter>
                        <labels>
                    </labels>
                <created>Mon, 1 Nov 2010 14:56:20 +0000</created>
                <updated>Mon, 1 Nov 2010 14:56:20 +0000</updated>
                                    <version>1.2.3</version>
                                                <component>Documentation</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>