<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sat May 25 07:50:04 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/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+10032+AND+labels+%3D+unitofwork&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+10032+AND+labels+%3D+unitofwork</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="7" total="7"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DDC-2338] Entity with composite foreign keys identifiers should be persisted after related entities without exception</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2338</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I&apos;ve seen that when you create an entity with a composite foreign key as identifier it cannot be flushed until the related entities are already flushed to the database and not just persisted.&lt;/p&gt;

&lt;p&gt;It would be nice to let the user flush all the entities together and just INSERT first the related entities to get the ID and then use that to INSERT the entity with composite foreign keys.&lt;/p&gt;

&lt;p&gt;I&apos;m going to create a pull request with the failing test.&lt;/p&gt;</description>
                <environment>Mac OSX 10.8, php 5.4.11, doctrine git master version</environment>
            <key id="14674">DDC-2338</key>
            <summary>Entity with composite foreign keys identifiers should be persisted after related entities without exception</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="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="alex88">Alessandro Tagliapietra</reporter>
                        <labels>
                        <label>orm</label>
                        <label>unitofwork</label>
                    </labels>
                <created>Thu, 7 Mar 2013 09:30:41 +0000</created>
                <updated>Thu, 7 Mar 2013 09:40:20 +0000</updated>
                                    <version>Git Master</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19817" author="alex88" created="Thu, 7 Mar 2013 09:40:20 +0000"  >&lt;p&gt;Created pull request &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/605&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/605&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2317] [UnitOfWork] Entity in identityMap but not present in entityIdentifiers</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2317</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I&apos;m using symfony 2.1.8 and sonata/admin-bundle&lt;br/&gt;
I have a quite complex entity mapping.&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;A Competence has many CompetenceAction (superclass)&lt;/li&gt;
	&lt;li&gt;CompetenceActionBuff is a subclass of CompetenceAction and has exactly one buff (selectable in the form by an &apos;entity&apos; field).&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;When i want to edit a Competence, i have the following error message about the Buff entity linked to the CompetenceActionBuff: &lt;br/&gt;
&quot;Entities passed to the choice field must be managed. &lt;span class=&quot;error&quot;&gt;&amp;#91;...&amp;#93;&lt;/span&gt;&quot;&lt;br/&gt;
The exception is raised in Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php at line 412&lt;/p&gt;

&lt;p&gt;I&apos;ve added some debug code in the EntityManager::contains() method and it shows that my entity is in the entityMap but his oid is not in the keys of entityIdentifiers making the call to UnitOfWork::isInIdentityMap() return false at line 1505.&lt;/p&gt;

&lt;p&gt;When submitting the form, there is no problems. All the entities are correctly created in the database. The exception is thrown only when i want to edit the Competence object. Saying that the Buff object is not managed when it was first loaded from the database... strange, no?&lt;/p&gt;

&lt;p&gt;Finally, i tried to comment the test &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;&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;em-&amp;gt;contains($entity)))&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; in EntityChoiceList::getIdentifierValues() and everything seemed to work properly.&lt;/p&gt;</description>
                <environment>php 5.4.11, MySQL 5.5, ubuntu 12.10</environment>
            <key id="14548">DDC-2317</key>
            <summary>[UnitOfWork] Entity in identityMap but not present in entityIdentifiers</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="rpiotaix">R&#233;mi Piotaix</reporter>
                        <labels>
                        <label>orm</label>
                        <label>unitofwork</label>
                    </labels>
                <created>Sun, 24 Feb 2013 19:57:11 +0000</created>
                <updated>Tue, 26 Feb 2013 08:35:23 +0000</updated>
                    <resolved>Tue, 26 Feb 2013 08:35:23 +0000</resolved>
                            <version>2.3.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19680" author="ocramius" created="Sun, 24 Feb 2013 20:18:47 +0000"  >&lt;p&gt;Can you please reproduce this in an insulated environment (without symfony forms involved)?&lt;/p&gt;</comment>
                    <comment id="19681" author="rpiotaix" created="Sun, 24 Feb 2013 21:02:10 +0000"  >&lt;p&gt;By doing this, all work properly, the exception is not thrown:&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;$competence = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getRepo(\Sistearth\JeuBundle\Entity\Competence\Competence::REPO)-&amp;gt;find(1);
$buff = $competence-&amp;gt;getActions()[0]-&amp;gt;getBuff();
      
$em = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getDoctrine()-&amp;gt;getEntityManager();
        
&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(!$em-&amp;gt;contains($buff))
    &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Exception(&lt;span class=&quot;code-quote&quot;&gt;&quot;Not in EntityManager&quot;&lt;/span&gt;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;but if i add this after:&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;$form = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;createForm(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Sistearth\JeuBundle\Form\Competence\CompetenceType(), $competence);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;then, the exception &quot;Entities passed to the choice field must be managed. Maybe persist them in the entity manager?&quot; is back.&lt;/p&gt;

&lt;p&gt;I&apos;ll try to do some others tests...&lt;/p&gt;</comment>
                    <comment id="19682" author="ocramius" created="Sun, 24 Feb 2013 21:23:35 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=rpiotaix&quot; class=&quot;user-hover&quot; rel=&quot;rpiotaix&quot;&gt;R&#233;mi Piotaix&lt;/a&gt; the problem is exactly the last bit &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; Doctrine has no forms, so you will have to create a small script that reproduces the problem without symfony, starting from:&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;php composer.phar require doctrine/orm:dev-master@dev&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="19683" author="rpiotaix" created="Sun, 24 Feb 2013 22:22:10 +0000"  >&lt;p&gt;Bug found!&lt;/p&gt;

&lt;p&gt;In the form type CompetenceActionBuffType, i marked the field buff 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;array(&apos;by_reference&quot;=&amp;gt;&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;. If by_reference is set to false, the modelData is cloned (here the Buff proxy) at line 349 in Form.php.&lt;br/&gt;
And, by cloning the object, the spl_object_hash of the clone is different from the original one&apos;s.&lt;/p&gt;

&lt;p&gt;Is this a symfony Form component bug or a doctrine one?&lt;/p&gt;</comment>
                    <comment id="19688" author="ocramius" created="Tue, 26 Feb 2013 08:35:23 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=rpiotaix&quot; class=&quot;user-hover&quot; rel=&quot;rpiotaix&quot;&gt;R&#233;mi Piotaix&lt;/a&gt; this is a problem of symfony forms, please report it on the symfony issue tracker (check if there&apos;s a similar open issue first) at &lt;a href=&quot;https://github.com/symfony/symfony/issues/&quot; class=&quot;external-link&quot;&gt;https://github.com/symfony/symfony/issues/&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11410" name="Buff.php" size="4078" author="rpiotaix" created="Sun, 24 Feb 2013 19:57:11 +0000" />
                    <attachment id="11411" name="Competence.php" size="10366" author="rpiotaix" created="Sun, 24 Feb 2013 19:57:11 +0000" />
                    <attachment id="11412" name="CompetenceAction.php" size="3658" author="rpiotaix" created="Sun, 24 Feb 2013 19:57:11 +0000" />
                    <attachment id="11413" name="CompetenceActionBuff.php" size="1004" author="rpiotaix" created="Sun, 24 Feb 2013 19:57:11 +0000" />
                    <attachment id="11414" name="CompetenceActionBuffType.php" size="1328" author="rpiotaix" created="Sun, 24 Feb 2013 22:23:35 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2306] Lazy loading associated entity&apos;s property causes identity loss when another association is set to fetch=&quot;EAGER&quot;</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2306</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;There appears to be a bug in UnitOfWork.php, introduced in &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/afee16e56bae9bfe93c96ef1398f077e534962a0#L9R2473&quot; class=&quot;external-link&quot;&gt;Merge pull request #406 from Ocramius/DCOM-96&lt;/a&gt;. The relevant section is lines 2479-2495.&lt;/p&gt;

&lt;p&gt;In the attached test sandbox, there are 4 entities. &lt;/p&gt;

&lt;p&gt;User and Address have a many-many relationship via UserAddress &amp;#8211; this more or less duplicates what I have in my actual application. There is another entity that both User and Address refer to in a one-to-many relationship &amp;#8211; Zone. &lt;/p&gt;

&lt;p&gt;When the Zone relationship on User and Address is set to fetch=&quot;LAZY&quot;, the problem is absent. When the relationship is set to fetch=&quot;EAGER&quot;, the problem manifests as such:&lt;/p&gt;

&lt;p&gt;When I load a User via $em-&amp;gt;find(), and then access properties on a related Address, the identity of the Address is lost. The same is true going in the other direction. I var_dump the Address before accessing its street property, and it shows up properly as an uninitialized proxy with just the id set. After I access the street property of the Address, var_dump shows the proxy is loaded and initialized, with all properties set &lt;em&gt;except&lt;/em&gt; the identity, which is now null.&lt;/p&gt;

&lt;p&gt;I stepped through the code using XDebug, and found that the referenced lines in UnitOfWork.php are setting the created Address entity&apos;s properties incorrectly, removing the identity from the generated entity. It seems to have something to do with the _hints parameter. &lt;/p&gt;

&lt;p&gt;I&apos;m not sure what the fix is, because I am not familiar enough with this part of the code and what it is intended to do. I assume that this is not intended behavior.&lt;/p&gt;

&lt;p&gt;I&apos;ve included my test case sandbox, which references ../../../../autoload.php to load Doctrine. This was tested against doctrine2/master as of today.&lt;/p&gt;</description>
                <environment>PHP 5.4 - IIS 7.0</environment>
            <key id="14506">DDC-2306</key>
            <summary>Lazy loading associated entity&apos;s property causes identity loss when another association is set to fetch=&quot;EAGER&quot;</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="wschalle">William Schaller</reporter>
                        <labels>
                        <label>orm</label>
                        <label>proxy</label>
                        <label>unitofwork</label>
                    </labels>
                <created>Wed, 20 Feb 2013 05:40:54 +0000</created>
                <updated>Tue, 26 Feb 2013 08:27:25 +0000</updated>
                    <resolved>Tue, 26 Feb 2013 08:27:25 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due>Fri, 22 Feb 2013 00:00:00 +0000</due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19573" author="ocramius" created="Thu, 21 Feb 2013 01:29:19 +0000"  >&lt;p&gt;I&apos;ve created a branch with a fix at &lt;a href=&quot;https://github.com/Ocramius/doctrine2/compare/hotfix;DDC-2306&quot; class=&quot;external-link&quot;&gt;https://github.com/Ocramius/doctrine2/compare/hotfix;DDC-2306&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Basically, what was happening here is a really nasty one: &lt;/p&gt;

&lt;p&gt;The UnitOfWork did consider the `Zone` entity as if it was a `User` entity (not comparing classnames, basically). Since the identifier was also the same in this case, the two entities were compared as if the newly loaded `Zone` had to replace the existing `User` proxy.&lt;/p&gt;

&lt;p&gt;Thus, the proxy was marked as un-managed and trashed (and so the identifier was also nulled).&lt;/p&gt;

&lt;p&gt;Please pull the branch and give it a try. I&apos;ll re-read it tomorrow and then open a PR.&lt;/p&gt;</comment>
                    <comment id="19574" author="wschalle" created="Thu, 21 Feb 2013 04:10:27 +0000"  >&lt;p&gt;This fixes the problem for the test case and for my app. Excellent speedy fix, thanks &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    <comment id="19575" author="beberlei" created="Thu, 21 Feb 2013 08:36:52 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-585&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/585&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/585&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19685" author="beberlei" created="Tue, 26 Feb 2013 05:55:52 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-585&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/585&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/585&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11379" name="sandbox-uow-issue.zip" size="11305" author="wschalle" created="Wed, 20 Feb 2013 05:40:54 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2219] computeChangeSets array_merging for associationMappings problem ?</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2219</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Is this normal that when i call &quot;$changeset = $unitOfWork-&amp;gt;getEntityChangeSet($myObject);&quot;, it only return changes of root Object, all changes in sub collection (OneToMany) are less (not merging in the changeset) ?&lt;/p&gt;

&lt;p&gt;Is there an issue for that?&lt;/p&gt;</description>
                <environment></environment>
            <key id="14343">DDC-2219</key>
            <summary>computeChangeSets array_merging for associationMappings problem ?</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</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="yohann.poli">yohann.poli</reporter>
                        <labels>
                        <label>unitofwork</label>
                    </labels>
                <created>Wed, 2 Jan 2013 15:42:17 +0000</created>
                <updated>Mon, 7 Jan 2013 08:52:53 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19207" author="ocramius" created="Wed, 2 Jan 2013 15:44:23 +0000"  >&lt;p&gt;Changesets of collections are computed separately from those of entities.&lt;/p&gt;</comment>
                    <comment id="19208" author="yohann.poli" created="Wed, 2 Jan 2013 16:34:33 +0000"  >&lt;p&gt;Have to call the compute method for each collection of the entity ?&lt;/p&gt;</comment>
                    <comment id="19221" author="beberlei" created="Sun, 6 Jan 2013 09:05:34 +0000"  >&lt;p&gt;Yes you have to, but this kind of operation seems weird. What are you trying to achieve.&lt;/p&gt;</comment>
                    <comment id="19243" author="yohann.poli" created="Mon, 7 Jan 2013 08:52:53 +0000"  >&lt;p&gt;I manage a complex entity who have a collection entity (each entity in this collection have another collection entity) attributes and i need to now if the flush method has &quot;really&quot; execute an update.&lt;/p&gt;

&lt;p&gt;For example if the level 3 entity is update, i have to know in the root entity all changes apply in child...&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2179] Transactions should sent in group not chunked</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2179</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In UnitOfWork::commit() it seems that a transaction is done like this:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;will send separate queries for transaction start&lt;/li&gt;
	&lt;li&gt;compute the queries/send them to the db driver&lt;/li&gt;
	&lt;li&gt;execute the commit statement&lt;/li&gt;
	&lt;li&gt;optionally execute rollback&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;The question would be, should my webserver have some issues with resources, wouldn&apos;t this part of the code be a pain for the DB?&lt;/p&gt;

&lt;p&gt;I don&apos;t know how mysql, for example, handles sending the transaction in chunks  as opposed to sending it in 2/3 statements ( begin + ops and commit / + revert in case of failure) or in mySQL,l the transaction is evaluated on COMMIT statement only?&lt;/p&gt;

&lt;p&gt;If my assumption about how MySQL works, locking everything as soon as the statement is on the server, then shouldn&apos;t Doctrine use a internal buffer for sending transactions to the DB driver in order to avoid all sorts of problems that appear in high concurency scenarios?&lt;/p&gt;


&lt;p&gt;Best regards.&lt;/p&gt;</description>
                <environment>MySQL 5.5 / Percona</environment>
            <key id="14282">DDC-2179</key>
            <summary>Transactions should sent in group not chunked</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="dlsniper">Florin Patan</reporter>
                        <labels>
                        <label>unitofwork</label>
                    </labels>
                <created>Thu, 29 Nov 2012 22:16:37 +0000</created>
                <updated>Fri, 30 Nov 2012 14:31:16 +0000</updated>
                    <resolved>Fri, 30 Nov 2012 14:28:10 +0000</resolved>
                            <version>2.2</version>
                <version>2.3</version>
                <version>Git Master</version>
                                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19080" author="ocramius" created="Fri, 30 Nov 2012 13:21:29 +0000"  >&lt;p&gt;Invalid IMO. This is an over-complication that (in such high load scenarios) is handled by clustering/load balancing. Not a problem of the ORM, since smashing all statements together will just make it impossible to trap any problems.&lt;/p&gt;</comment>
                    <comment id="19082" author="ocramius" created="Fri, 30 Nov 2012 14:28:10 +0000"  >&lt;p&gt;This performance improvement has been discussed directly on IRC.&lt;/p&gt;

&lt;p&gt;The original problem is related to deadlocks and small transactions, which is not anyway solved by this issue.&lt;/p&gt;

&lt;p&gt;Otherwise, this improvement requires a PoC that shows that it is possible to have exceptions still showing the query that caused the failure.&lt;/p&gt;</comment>
                    <comment id="19083" author="ocramius" created="Fri, 30 Nov 2012 14:31:16 +0000"  >&lt;p&gt;Sorry, was unclear. I basically mean that any approach squashing the queries into a single chunk sent to the DB should also allow us to get computed insert IDs and eventual exceptions should bubble up with the query that caused them.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2176] Illegal offset type in isset or empty in UnitOfWork</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2176</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Steps to reproduce the problem?&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;A custom DBAL type, that extends a scalar build-in type e.g. &lt;tt&gt;DBAL\Types\StringType&lt;/tt&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&lt;tt&gt;convertToPHPValue&lt;/tt&gt; of custom DBAL type returns an instance of a class (implements &lt;tt&gt;__toString&lt;/tt&gt; method)&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Custom DBAL type is used as primary key in an entity&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;initially persist entity and flush entity manager&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;modify entity (keep same primary key) and persist entity again causes:&lt;br/&gt;
&lt;font color=&quot;red&quot;&gt;&lt;br/&gt;
Warning: Illegal offset type in isset or empty in &lt;tt&gt;vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php&lt;/tt&gt; line 2407&lt;/font&gt;&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;I guess the solution in &lt;tt&gt;Doctrine\ORM\Internal\Hydration&lt;/tt&gt; namespace by explicit converting result of &lt;tt&gt;convertToPHPValue&lt;/tt&gt; if result is not a scalar value.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14279">DDC-2176</key>
            <summary>Illegal offset type in isset or empty in UnitOfWork</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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="3">Duplicate</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="godzilla80">Yves Berkholz</reporter>
                        <labels>
                        <label>unitofwork</label>
                    </labels>
                <created>Wed, 28 Nov 2012 07:48:17 +0000</created>
                <updated>Wed, 1 May 2013 21:20:26 +0000</updated>
                    <resolved>Wed, 1 May 2013 21:20:26 +0000</resolved>
                            <version>2.3</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19389" author="ocramius" created="Wed, 23 Jan 2013 22:47:17 +0000"  >&lt;p&gt;This one will introduce way too much overhead. We don&apos;t really support identifiers that are custom object types.&lt;/p&gt;

&lt;p&gt;What is the exact version of the ORM? I couldn&apos;t spot anything at line 2407.&lt;/p&gt;</comment>
                    <comment id="19396" author="godzilla80" created="Thu, 24 Jan 2013 08:10:37 +0000"  >&lt;p&gt;I use a dev branch and updated the version since creation of the report, hence the line number changed to 2466.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;UnitOfWork.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
} &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
	$entity = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;newInstance($class);
	$oid    = spl_object_hash($entity);

	$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;entityIdentifiers[$oid]  = $id;
	$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;entityStates[$oid]       = self::STATE_MANAGED;
	$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;originalEntityData[$oid] = $data;

	$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;identityMap[$class-&amp;gt;rootEntityName][$idHash] = $entity; &lt;span class=&quot;code-comment&quot;&gt;// &amp;lt;- 2466
&lt;/span&gt;
	&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($entity &lt;span class=&quot;code-keyword&quot;&gt;instanceof&lt;/span&gt; NotifyPropertyChanged) {
		$entity-&amp;gt;addPropertyChangedListener($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;);
	}

	$overrideLocalValues = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;Ok, I understand the overhead problem. I only tried to create a custom enum type that is represented by a class.&lt;br/&gt;
But i solved this by converting the value within the getter/setter of entity class.&lt;br/&gt;
It would have been nice to do this in the DBAL type, but it works that way.&lt;br/&gt;
Therefore, you might close the report or move it on a far future version &quot;wishlist&quot;. &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;br/&gt;
Anyway, thank for your time.&lt;/p&gt;

&lt;p&gt;Nevertheless the information you requested:&lt;br/&gt;
Composer: doctrine/orm &lt;span class=&quot;error&quot;&gt;&amp;#91;2.3.x-dev fdd0af3&amp;#93;&lt;/span&gt; &lt;br/&gt;
git reference: &lt;a href=&quot;https://github.com/doctrine/doctrine2/archive/fdd0af34e6fced967b8751bc3e4792c11ef86d57.zip&quot; class=&quot;external-link&quot;&gt;fdd0af34e6fced967b8751bc3e4792c11ef86d57&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Additionally, exception trace might help&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; 
() at D:/projects/{projectname}/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:2466
 Symfony/Component/HttpKernel/Debug/ErrorHandler-&amp;gt;handle() at D:/projects/{projectname}/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:2466
 Doctrine/ORM/UnitOfWork-&amp;gt;createEntity() at D:/projects/{projectname}/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:135
 Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator-&amp;gt;hydrateRowData() at D:/projects/{projectname}/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:50
 Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator-&amp;gt;hydrateAllData() at D:/projects/{projectname}/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php:111
 Doctrine/ORM/Internal/Hydration/AbstractHydrator-&amp;gt;hydrateAll() at D:/projects/{projectname}/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:678
 Doctrine/ORM/Persisters/BasicEntityPersister-&amp;gt;load() at D:/projects/{projectname}/vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:171
 Doctrine/ORM/EntityRepository-&amp;gt;findOneBy() at D:/projects/{projectname}/vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:211
 Doctrine/ORM/EntityRepository-&amp;gt;__call() at D:/projects/{projectname}/vendor/{customvendor}/lib-doctrine/src/{VendorNs}/Lib/Doctrine/DataFixtures/AbstractBaseFixture.php:123
 {VendorNs}/Lib/Doctrine/ORM/Repository/BaseLookupRepository-&amp;gt;findOneById() at D:/projects/{projectname}/vendor/{customvendor}/lib-doctrine/src/{VendorNs}/Lib/Doctrine/DataFixtures/AbstractBaseFixture.php:123
 {VendorNs}/Lib/Doctrine/DataFixtures/AbstractBaseFixture-&amp;gt;findPersistedEntity() at D:/projects/{projectname}/src/ProjectVendor/Bundle/DataFixturesBundle/Classes/ORM/LookupFixture.php:38
 {ProjectNs}/Bundle/DataFixturesBundle/Classes/ORM/LookupFixture-&amp;gt;lookupentityDefaultBuilder() at D:/projects/{projectname}/src/ProjectVendor/Bundle/DataFixturesBundle/DataFixtures/ORM/Main/User/LookupData.php:59
 {ProjectNs}/Bundle/DataFixturesBundle/DataFixtures/ORM/Main/User/LookupData-&amp;gt;onlinestatusBuild() at n/a:n/a
 call_user_func() at D:/projects/{projectname}/src/ProjectVendor/Bundle/DataFixturesBundle/Classes/ORM/LookupFixture.php:78
 {ProjectNs}/Bundle/DataFixturesBundle/Classes/ORM/LookupFixture-&amp;gt;lookupentityDefaultLoader() at D:/projects/{projectname}/src/ProjectVendor/Bundle/DataFixturesBundle/DataFixtures/ORM/Main/User/LookupData.php:42
 {ProjectNs}/Bundle/DataFixturesBundle/DataFixtures/ORM/Main/User/LookupData-&amp;gt;load() at D:/projects/{projectname}/vendor/doctrine/data-fixtures/lib/Doctrine/Common/DataFixtures/Executor/AbstractExecutor.php:120
 Doctrine/Common/DataFixtures/Executor/AbstractExecutor-&amp;gt;load() at D:/projects/{projectname}/vendor/doctrine/data-fixtures/lib/Doctrine/Common/DataFixtures/Executor/ORMExecutor.php:83
 Doctrine/Common/DataFixtures/Executor/ORMExecutor-&amp;gt;Doctrine/Common/DataFixtures/Executor/{closure}() at n/a:n/a
 call_user_func() at D:/projects/{projectname}/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:223
 Doctrine/ORM/EntityManager-&amp;gt;transactional() at D:/projects/{projectname}/var/cache/apps/web/local/jms_diextra/doctrine/EntityManager_50ffafed6b09f.php:31
 EntityManager50ffafed6b09f_546a8d27f194334ee012bfe64f629947b07e4919/__CG__/Doctrine/ORM/EntityManager-&amp;gt;transactional() at D:/projects/{projectname}/vendor/doctrine/data-fixtures/lib/Doctrine/Common/DataFixtures/Executor/ORMExecutor.php:85
 Doctrine/Common/DataFixtures/Executor/ORMExecutor-&amp;gt;execute() at D:/projects/{projectname}/vendor/doctrine/doctrine-fixtures-bundle/Doctrine/Bundle/FixturesBundle/Command/LoadDataFixturesDoctrineCommand.php:106
 Doctrine/Bundle/FixturesBundle/Command/LoadDataFixturesDoctrineCommand-&amp;gt;execute() at D:/projects/{projectname}/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:238
 Symfony/Component/Console/Command/Command-&amp;gt;run() at D:/projects/{projectname}/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:192
 Symfony/Component/Console/Application-&amp;gt;doRun() at D:/projects/{projectname}/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:78
 Symfony/Bundle/FrameworkBundle/Console/Application-&amp;gt;doRun() at D:/projects/{projectname}/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:105
 Symfony/Component/Console/Application-&amp;gt;run() at D:/projects/{projectname}/bin/console.php:17
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; </comment>
                    <comment id="20184" author="beberlei" created="Wed, 1 May 2013 21:20:02 +0000"  >&lt;p&gt;This works in this recent commit here, 0864ab8adac5c31d5ba97f0eb6792e5431a75b70. Should have worked before as well. Can you verify?&lt;/p&gt;</comment>
                    <comment id="20185" author="beberlei" created="Wed, 1 May 2013 21:20:26 +0000"  >&lt;p&gt;Related to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1998&quot; title=&quot;Problem when deleting with EntityManager-&amp;gt;remove($entity)&quot;&gt;&lt;del&gt;DDC-1998&lt;/del&gt;&lt;/a&gt;, tests this behavior&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2086] [GH-484] Prevented &quot;Undefined index&quot; notice when updating</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2086</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 jappie:&lt;/p&gt;

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

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

&lt;p&gt;While executing updates on an entity scheduled for update without a change-set, an &quot;Undefined index&quot; notice is raised.&lt;/p&gt;

&lt;p&gt;This issue will occur when you manually call &lt;tt&gt;$em()&amp;#45;&amp;gt;getUnitOfWork()&amp;#45;&amp;gt;scheduleForUpdate()&lt;/tt&gt; on an entity that hasn&apos;t changed. The entity will be included in &lt;tt&gt;UnitOfWork::$entityUpdates&lt;/tt&gt;, but because there are no changes, its oid will not be included in &lt;tt&gt;UnitOfWork::$entityChangeSets&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;I know I&apos;m misusing &lt;tt&gt;scheduleForUpdate()&lt;/tt&gt; a bit in this case, but the notice can easily be prevented with a &lt;tt&gt;!empty()&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment>OS X 10.8.2, PHP 5.3.17, Nginx 1.2.4 (php through FPM)</environment>
            <key id="14139">DDC-2086</key>
            <summary>[GH-484] Prevented &quot;Undefined index&quot; notice when updating</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/trivial.png">Trivial</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                        <label>unitofwork</label>
                    </labels>
                <created>Wed, 17 Oct 2012 20:03:13 +0000</created>
                <updated>Fri, 9 Nov 2012 21:10:25 +0000</updated>
                    <resolved>Thu, 25 Oct 2012 02:19:47 +0000</resolved>
                            <version>2.3</version>
                <version>Git Master</version>
                                <fixVersion>2.3.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18859" author="beberlei" created="Mon, 22 Oct 2012 01:35:44 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-484&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/484&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/484&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18883" author="fabio.bat.silva" created="Thu, 25 Oct 2012 02:19:47 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/cd7ef6e7a70d4ff4c25a85fdae71676aa6548ea6&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/cd7ef6e7a70d4ff4c25a85fdae71676aa6548ea6&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>