<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed Jun 19 21:19:25 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-1465/DDC-1465.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-1465] Fetching partial objects doesn&apos;t work if HINT_FORCE_PARTIAL_LOAD is not explicitly used</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1465</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Using the DQL &quot;partial&quot; keyword is not enough to get a partial entity as a result.&lt;br/&gt;
The DQL hint HINT_FORCE_PARTIAL_LOAD must be used as well.&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;$q = $em-&amp;gt;createQuery(&apos;SELECT partial r.{id,comment} FROM Entities\Rating r WHERE r.id=3&apos;);
$r = $q-&amp;gt;getResult() /* HYDRATE_OBJECT is the &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; hydration mode */
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Here, $r contains the full Entity, a SELECT * has been sent&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;$q = $em-&amp;gt;createQuery(&apos;SELECT partial r.{id,comment} FROM Entities\Rating r WHERE r.id=3&apos;);
$q-&amp;gt;setHint(Doctrine\ORM\Query::HINT_FORCE_PARTIAL_LOAD, 1);

$r = $q-&amp;gt;getResult() /* HYDRATE_OBJECT is the &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; hydration mode */
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Here, $r contains only the selected fields, hence a true partial Entity&lt;/p&gt;</description>
                <environment></environment>
            <key id="13141">DDC-1465</key>
            <summary>Fetching partial objects doesn&apos;t work if HINT_FORCE_PARTIAL_LOAD is not explicitly used</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jpauli">Julien Pauli</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 Nov 2011 11:08:02 +0000</created>
                <updated>Fri, 11 Nov 2011 09:28:12 +0000</updated>
                                    <version>2.1.2</version>
                                                <component>DQL</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                            <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                <outwardlinks description="duplicates">
                            <issuelink>
            <issuekey id="11442">DDC-624</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>