<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Tue Jun 18 04:47:26 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-2230/DDC-2230.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-2230] Changes from DDC-1690 trigger a bug in entity merging</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2230</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Following the changes for &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1690&quot; title=&quot;Notify policy listeners are not attached to entities with Notify policy&quot;&gt;&lt;del&gt;DDC-1690&lt;/del&gt;&lt;/a&gt;, I encountered a serious bug in how EntityManager::merge(...) functions for entities that use NOTIFY change tracking. It&apos;s related to interaction between lazy loading and calls to addPropertyChangedListener().&lt;/p&gt;

&lt;p&gt;Scenario:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;EntityA has a One-To-One, lazy-load association to EntityB&lt;/li&gt;
	&lt;li&gt;EntityB implements NotifyPropertyChanged and uses change tracking policy &quot;NOTIFY&quot;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Steps to reproduce:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;$instanceA = $em-&amp;gt;find(&apos;EntityA&apos;, $id)&lt;/li&gt;
	&lt;li&gt;$em-&amp;gt;clear()&lt;/li&gt;
	&lt;li&gt;$instanceA = $em-&amp;gt;merge($instanceA)&lt;/li&gt;
	&lt;li&gt;$instanceA-&amp;gt;getB() will return a proxy for B that is marked as initialized by contains no data&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Workaround: Mark EntityB::addPropertyChangedListener(...) as &apos;final&apos;, so it doesn&apos;t get proxied and lazy loading is not triggered.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14368">DDC-2230</key>
            <summary>Changes from DDC-1690 trigger a bug in entity merging</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="pschwisow">Patrick Schwisow</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Jan 2013 21:52:10 +0000</created>
                <updated>Tue, 26 Feb 2013 08:28:01 +0000</updated>
                    <resolved>Tue, 26 Feb 2013 08:28:01 +0000</resolved>
                            <version>2.3.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="19268" author="pschwisow" created="Wed, 9 Jan 2013 22:58:52 +0000"  >&lt;p&gt;Also, the returned proxy from $instanceA-&amp;gt;getB() is in the entityStates array but not in the identity map&lt;/p&gt;</comment>
                    <comment id="19368" author="ocramius" created="Wed, 23 Jan 2013 21:16:08 +0000"  >&lt;p&gt;Looks like this one is related to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1734&quot; title=&quot;Uninitialized proxies cannot be serialized properly&quot;&gt;&lt;del&gt;DDC-1734&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19674" author="ocramius" created="Sat, 23 Feb 2013 00:47:51 +0000"  >&lt;p&gt;I implemented a fix at &lt;a href=&quot;https://github.com/Ocramius/doctrine2/compare/hotfix;DDC-2230&quot; class=&quot;external-link&quot;&gt;https://github.com/Ocramius/doctrine2/compare/hotfix;DDC-2230&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Please let me know if that branch works for you: I will open a PR tomorrow.&lt;/p&gt;</comment>
                    <comment id="19678" author="beberlei" created="Sat, 23 Feb 2013 18:35:11 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-589&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/589&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/589&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19687" author="beberlei" created="Tue, 26 Feb 2013 05:59:08 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-589&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/589&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/589&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>