<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu May 23 03:21:14 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-2322/DDC-2322.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-2322] [GH-592] Added ability to specify INDEX BY when creating a QueryBuilder from a Repository</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2322</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of cmenning:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/592&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/592&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This is a handy shortcut when using indexed results.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14641">DDC-2322</key>
            <summary>[GH-592] Added ability to specify INDEX BY when creating a QueryBuilder from a Repository</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="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                        <label>QueryBuilder</label>
                        <label>Repository</label>
                    </labels>
                <created>Wed, 27 Feb 2013 19:14:58 +0000</created>
                <updated>Tue, 12 Mar 2013 19:45:17 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 18:44:24 +0000</resolved>
                            <version>2.2</version>
                <version>2.3</version>
                <version>Git Master</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19842" author="beberlei" created="Tue, 12 Mar 2013 18:44:17 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-592&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/592&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/592&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19843" author="cmenning" created="Tue, 12 Mar 2013 19:12:49 +0000"  >&lt;p&gt;I disagree with the reasoning behind closing this request.  In DoctrineBundle, &lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;getDoctrine()-&amp;gt;getEntityManager()&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; has been deprecated, which leaves you to use &lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;getDoctrine()-&amp;gt;getRepository($class)-&amp;gt;createQueryBuilder();&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Adding &lt;tt&gt;-&amp;gt;from()&lt;/tt&gt; at that point is redundant since it&apos;s already been specified inside the createQueryBuilder() call. It seems wasteful to not allow a passthru of the $indexBy argument during the initial call when it&apos;s already supported by the from() called inside createQueryBuilder().&lt;/p&gt;</comment>
                    <comment id="19844" author="ocramius" created="Tue, 12 Mar 2013 19:45:17 +0000"  >&lt;p&gt;The repository is already (probably) doing too much. A simpler approach with:&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;$qb = $em-&amp;gt;createQueryBuilder()-&amp;gt;select(&apos;e&apos;)-&amp;gt;from($repo-&amp;gt;getClassName(), &apos;e&apos;, &apos;e.stuff&apos;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Is no big deal in my opinion.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>