<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sat May 25 06:19:37 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/DDC-2046/DDC-2046.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>[DDC-2046] QueryBuilder allows joining with the same alias multiple times</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2046</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Currently, QueryBuilder allows assembling broken DQL like&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;SELECT u FROM User u JOIN u.posts p JOIN u.logs p&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;or&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;SELECT u FROM User u JOIN u.posts u&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It may be interesting if we either replace DQL parts by associating them to their alias. &lt;/p&gt;

&lt;p&gt;Another solution, since &lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=asm89&quot; class=&quot;user-hover&quot; rel=&quot;asm89&quot;&gt;Alexander&lt;/a&gt; noted that it is a dumb string builder, is to throw exceptions early to disallow broken DQL generation (such as in the second case).&lt;/p&gt;

&lt;p&gt;It may also be useful to allow giving insights about the currently existing joined aliases.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function hasJoinedAlias($alias);&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14073">DDC-2046</key>
            <summary>QueryBuilder allows joining with the same alias multiple times</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="ocramius">Marco Pivetta</reporter>
                        <labels>
                    </labels>
                <created>Thu, 27 Sep 2012 12:22:47 +0000</created>
                <updated>Wed, 23 Jan 2013 21:07:08 +0000</updated>
                    <resolved>Wed, 23 Jan 2013 21:07:08 +0000</resolved>
                                                            <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18736" author="ocramius" created="Thu, 27 Sep 2012 12:25:31 +0000"  >&lt;p&gt;Attaching failing test case&lt;/p&gt;</comment>
                    <comment id="19366" author="ocramius" created="Wed, 23 Jan 2013 21:07:08 +0000"  >&lt;p&gt;The query builder should not worry about validity of produced DQL&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11328" name="DDC2046Test.php" size="895" author="ocramius" created="Thu, 27 Sep 2012 12:25:31 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>