<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed Jun 19 05:14: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-2034/DDC-2034.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-2034] getPartialReference returns partial entities for non existent entities</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2034</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&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;
$variant = $em-&amp;gt;getPartialReference(&apos;Entity\Variant&apos;, -1);
echo $variant-&amp;gt;getVariantId();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;prints -1. Is it an expected behavior or a bug? Shouldn&apos;t a check be made to prevent creating new instances for ids that do not exist?&lt;/p&gt;</description>
                <environment></environment>
            <key id="14045">DDC-2034</key>
            <summary>getPartialReference returns partial entities for non existent entities</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="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="deatheriam">Oleg Namaka</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Sep 2012 19:30:32 +0000</created>
                <updated>Fri, 5 Oct 2012 21:27:19 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 21:27:19 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18666" author="stof" created="Mon, 17 Sep 2012 19:45:01 +0000"  >&lt;p&gt;Well, the purpose of &lt;tt&gt;getPartialReference&lt;/tt&gt; is to return a reference without querying the database. So it cannot know if the id exists.&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/EntityManager.php#L481&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/EntityManager.php#L481&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18680" author="deatheriam" created="Wed, 19 Sep 2012 03:55:30 +0000"  >&lt;p&gt;Ok, in that case a user is responsible for providing a valid id. But what is a use case for such an entity? Can someone give me a real example?&lt;/p&gt;</comment>
                    <comment id="18787" author="beberlei" created="Fri, 5 Oct 2012 21:27:10 +0000"  >&lt;p&gt;the use case was partially removed by proxy objects now being capable of returning the id without querying. &lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>