<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed May 22 14:53: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-2159/DDC-2159.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-2159] [GH-519] Bug in UnitOfWork::executeDeletions when at least two entities have to b...</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2159</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 maryo:&lt;/p&gt;

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

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

&lt;p&gt;Bug in UnitOfWork::executeDeletions.&lt;/p&gt;

&lt;p&gt;There is a foreach on line 1012 and dispatchEvent on line 1038.&lt;br/&gt;
When at least two entities have to be deleted and a listener listening to postRemove event is attached to them and there is also EntityManager::flush in that listener.&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;EntityManager::remove&lt;/li&gt;
	&lt;li&gt;EntityManager::remove&lt;/li&gt;
	&lt;li&gt;EntityManager::flush&lt;/li&gt;
	&lt;li&gt;UnitOfWork::commit&lt;/li&gt;
	&lt;li&gt;UnitOfWork::executeDeletions&lt;/li&gt;
	&lt;li&gt;BasicEntityPersister::delete // FOR THE FIRST REMOVED ENTITY&lt;br/&gt;
                ... &lt;/li&gt;
	&lt;li&gt;EventManager::dispatchEvent&lt;/li&gt;
	&lt;li&gt;PostRemoveListener::postRemove&lt;/li&gt;
	&lt;li&gt;EntityManager::flush&lt;/li&gt;
	&lt;li&gt;UnitOfWork::commit&lt;/li&gt;
	&lt;li&gt;UnitOfWork::executeDeletions&lt;/li&gt;
	&lt;li&gt;BasicEntityPersister::delete // FOR THE SECOND REMOVED ENTITY&lt;/li&gt;
	&lt;li&gt;BasicEntityPersister::delete // FOR THE SECOND REMOVED ENTITY AGAIN because that foreach operates with array &quot;copies&quot; and that unset on line 1020 in UnitOfWork doesnt affact to the array copy&lt;/li&gt;
	&lt;li&gt;UnitOfWork::getEntityIdentifier // line 2735 - NOTICE, because the entity is already deleted from the array&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Tests passed (those tests which are not skipped in my environment).&lt;/p&gt;

&lt;p&gt;PHPUnit 3.7.9 by Sebastian Bergmann.&lt;/p&gt;

&lt;p&gt;Configuration read from D:\Www\doctrine2\phpunit.xml.dist&lt;/p&gt;

&lt;p&gt;.....................SSSSSS..................................   61 / 1783 (  3%)&lt;br/&gt;
.............................................................  122 / 1783 (  6%)&lt;br/&gt;
......S.....SSSS.............................................  183 / 1783 ( 10%)&lt;br/&gt;
......................................................SS.....  244 / 1783 ( 13%)&lt;br/&gt;
.............................................................  305 / 1783 ( 17%)&lt;br/&gt;
.............................................................  366 / 1783 ( 20%)&lt;br/&gt;
......S......................................................  427 / 1783 ( 23%)&lt;br/&gt;
.............................................................  488 / 1783 ( 27%)&lt;br/&gt;
....................SSSSSSSSSSSSS...........S................  549 / 1783 ( 30%)&lt;br/&gt;
...........S...S...........S............................S....  610 / 1783 ( 34%)&lt;br/&gt;
.............................................................  671 / 1783 ( 37%)&lt;br/&gt;
..............................................SS.............  732 / 1783 ( 41%)&lt;br/&gt;
....................S........................................  793 / 1783 ( 44%)&lt;br/&gt;
.............................................................  854 / 1783 ( 47%)&lt;br/&gt;
.............................................................  915 / 1783 ( 51%)&lt;br/&gt;
.............................................................  976 / 1783 ( 54%)&lt;br/&gt;
...........................................................S. 1037 / 1783 ( 58%)&lt;br/&gt;
........................................S.................... 1098 / 1783 ( 61%)&lt;br/&gt;
............................................................. 1159 / 1783 ( 65%)&lt;br/&gt;
............................................................. 1220 / 1783 ( 68%)&lt;br/&gt;
............................................................. 1281 / 1783 ( 71%)&lt;br/&gt;
............................................................. 1342 / 1783 ( 75%)&lt;br/&gt;
............................................................. 1403 / 1783 ( 78%)&lt;br/&gt;
............................................................. 1464 / 1783 ( 82%)&lt;br/&gt;
............................................................. 1525 / 1783 ( 85%)&lt;br/&gt;
............................................................. 1586 / 1783 ( 88%)&lt;br/&gt;
............................................................. 1647 / 1783 ( 92%)&lt;br/&gt;
................S.............S.............................. 1708 / 1783 ( 95%)&lt;br/&gt;
.....................................................&lt;/p&gt;

&lt;p&gt;Time: 14 seconds, Memory: 97.75Mb&lt;/p&gt;

&lt;p&gt;OK, but incomplete or skipped tests!&lt;br/&gt;
Tests: 1761, Assertions: 5932, Skipped: 39.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14251">DDC-2159</key>
            <summary>[GH-519] Bug in UnitOfWork::executeDeletions when at least two entities have to b...</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Nov 2012 12:29:23 +0000</created>
                <updated>Wed, 21 Nov 2012 15:23:29 +0000</updated>
                    <resolved>Wed, 21 Nov 2012 15:23:27 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19018" author="beberlei" created="Wed, 21 Nov 2012 15:23:29 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-519&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/519&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/519&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>