<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sat May 25 02:26:58 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+DDC+AND+fixVersion+%3D+%222.3.1%22&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+DDC+AND+fixVersion+%3D+%222.3.1%22</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="33" total="33"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DDC-2182] [GH-529] Options join columns</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2182</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 francisbesset:&lt;/p&gt;

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

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

&lt;p&gt;When a columns as the options with unsigned at true, this options is not passed to the joinColumn.&lt;br/&gt;
This PR fix this.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14288">DDC-2182</key>
            <summary>[GH-529] Options join columns</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 1 Dec 2012 20:16:58 +0000</created>
                <updated>Tue, 4 Dec 2012 21:00:27 +0000</updated>
                    <resolved>Tue, 4 Dec 2012 21:00:27 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2174] [GH-526] [DDC-2172] Fix EntityGenerator get literal type</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2174</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 FabioBatSilva:&lt;/p&gt;

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

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

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2172&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2172&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14277">DDC-2174</key>
            <summary>[GH-526] [DDC-2172] Fix EntityGenerator get literal type</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 27 Nov 2012 17:46:44 +0000</created>
                <updated>Tue, 27 Nov 2012 23:04:06 +0000</updated>
                    <resolved>Tue, 27 Nov 2012 20:40:37 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19069" author="beberlei" created="Tue, 27 Nov 2012 20:14:43 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-526&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/526&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/526&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19070" author="fabio.bat.silva" created="Tue, 27 Nov 2012 20:40:37 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/29f0b678cfb991e90af3eed023fb8c62ec8f7acf&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/29f0b678cfb991e90af3eed023fb8c62ec8f7acf&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2172] GENERATOR_TYPE_UUID missing in EntityGenerator.php</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2172</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Hey guys!&lt;/p&gt;

&lt;p&gt;In my model I used UUID as the generator strategy for my id:&lt;br/&gt;
@GeneratedValue(strategy=&quot;UUID&quot;)&lt;br/&gt;
It works for creating my UUID but when I add some changes to my model and run&lt;br/&gt;
orm:generate-entities --generate-annotations=&quot;true&quot; models/&lt;br/&gt;
it throws the following exception:&lt;br/&gt;
&quot;&lt;span class=&quot;error&quot;&gt;&amp;#91;InvalidArgumentException&amp;#93;&lt;/span&gt;           &lt;br/&gt;
  Invalid provided IdGeneratorType: 6 &quot;&lt;/p&gt;

&lt;p&gt;Looking at the EntityGenerator.php I saw that the UUID type is not (yet?) in there. When I add it to the function getIdGeneratorTypeString() everything works fine...&lt;br/&gt;
I&apos;m new to Doctrine so I&apos;m not sure if this is actually a bug, but it seems weird to me &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/wink.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;</description>
                <environment>Codeigniter 2</environment>
            <key id="14275">DDC-2172</key>
            <summary>GENERATOR_TYPE_UUID missing in EntityGenerator.php</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="paro22">Paul R</reporter>
                        <labels>
                    </labels>
                <created>Tue, 27 Nov 2012 01:08:41 +0000</created>
                <updated>Tue, 27 Nov 2012 23:04:23 +0000</updated>
                    <resolved>Tue, 27 Nov 2012 20:41:14 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19071" author="fabio.bat.silva" created="Tue, 27 Nov 2012 20:41:14 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/29f0b678cfb991e90af3eed023fb8c62ec8f7acf&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/29f0b678cfb991e90af3eed023fb8c62ec8f7acf&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2168] [GH-523] [DDC-2074] Bugfix regarding clearing cloned PersistentCollections</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2168</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 jankramer:&lt;/p&gt;

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

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

&lt;p&gt;When calling clear on a PC that has no owner (e.g. because it was cloned), it can&apos;t be deleted as there is no metadata available (that&apos;s essentially the exception mentioned in the ticket). In these cases, I think it shouldn&apos;t be scheduled for deletion, but please have a look as my knowledge of the ORM internals is limited.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14270">DDC-2168</key>
            <summary>[GH-523] [DDC-2074] Bugfix regarding clearing cloned PersistentCollections</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 25 Nov 2012 18:40:34 +0000</created>
                <updated>Sun, 25 Nov 2012 19:17:41 +0000</updated>
                    <resolved>Sun, 25 Nov 2012 19:17:41 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19060" author="beberlei" created="Sun, 25 Nov 2012 19:13:34 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-523&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/523&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/523&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2158] [GH-518] regression fix for left joins (double ON)</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2158</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 Fran6co:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14247">DDC-2158</key>
            <summary>[GH-518] regression fix for left joins (double ON)</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 20 Nov 2012 15:31:27 +0000</created>
                <updated>Sun, 25 Nov 2012 11:36:28 +0000</updated>
                    <resolved>Sun, 25 Nov 2012 11:36:28 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19045" author="beberlei" created="Sun, 25 Nov 2012 11:28:59 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-518&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/518&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/518&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2144] PersistentCollection Criteria IS NULL not behaving as expected</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2144</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When using the matching method of a persistentCollection with a Criteria that contains a call to isNull, the SQL generated contains &quot;field = null&quot; instead of &quot;field IS null&quot;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14224">DDC-2144</key>
            <summary>PersistentCollection Criteria IS NULL not behaving as expected</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="patxi1980">Aitor Suso</reporter>
                        <labels>
                    </labels>
                <created>Wed, 14 Nov 2012 16:50:30 +0000</created>
                <updated>Wed, 14 Nov 2012 16:56:46 +0000</updated>
                    <resolved>Wed, 14 Nov 2012 16:56:46 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18985" author="patxi1980" created="Wed, 14 Nov 2012 16:56:46 +0000"  >&lt;p&gt;Seen that the code is fixed in the 2.3 branch, but it isn&apos;t in the last stable release (2.3.0)&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2129] [GH-508] Fix and test for DDC-2073</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2129</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 mnapoli:&lt;/p&gt;

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

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

&lt;p&gt;Fix and test for &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2073&quot; title=&quot;PersistentCollection::matching() always returns empty collection, when passed criteria&amp;#39;s expression is created using ExpressionBuilder::isNull()&quot;&gt;&lt;del&gt;DDC-2073&lt;/del&gt;&lt;/a&gt;(&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2073&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2073&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Ticket extract:&lt;/p&gt;

&lt;p&gt;&amp;gt; PersistentCollection::matching() always returns empty collection, when passed criteria&apos;s expression is created using ExpressionBuilder::isNull()&lt;br/&gt;
&amp;gt; This happens because expression created by ExpressionBuilder::isNull() is wrongly translated to SQL using &apos;=&apos; operator instead of &apos;IS NULL&apos;.&lt;br/&gt;
&amp;gt; If the collection is already loaded, result is as expected.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14200">DDC-2129</key>
            <summary>[GH-508] Fix and test for DDC-2073</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 6 Nov 2012 14:07:51 +0000</created>
                <updated>Mon, 12 Nov 2012 14:07:17 +0000</updated>
                    <resolved>Mon, 12 Nov 2012 14:07:17 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18945" author="mnapoli" created="Tue, 6 Nov 2012 14:09:57 +0000"  >&lt;p&gt;Argh this issue should be closed, I apparently failed linking the pull request to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2073&quot; title=&quot;PersistentCollection::matching() always returns empty collection, when passed criteria&amp;#39;s expression is created using ExpressionBuilder::isNull()&quot;&gt;&lt;del&gt;DDC-2073&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18948" author="beberlei" created="Tue, 6 Nov 2012 22:52:41 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-508&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/508&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/508&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2126] [GH-505] Fix errors in JoinClassPathExpression and SqlWalker</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2126</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 BenMorel:&lt;/p&gt;

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

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

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Fixes a typo in a variable name in JoinClassPathExpression::dispatch()&lt;/li&gt;
	&lt;li&gt;Fixes an exception throw: QueryException::invalidPathExpression() expects a PathExpression, not a string&lt;/li&gt;
	&lt;li&gt;Removes two references to an undefined class AST\ArithmeticPrimary&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="14197">DDC-2126</key>
            <summary>[GH-505] Fix errors in JoinClassPathExpression and SqlWalker</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Nov 2012 22:50:43 +0000</created>
                <updated>Fri, 9 Nov 2012 20:27:00 +0000</updated>
                    <resolved>Tue, 6 Nov 2012 00:31:33 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18927" author="beberlei" created="Tue, 6 Nov 2012 00:13:04 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-505&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/505&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/505&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18938" author="fabio.bat.silva" created="Tue, 6 Nov 2012 00:31:33 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/6949a957826960e4cb8c4cf405a6c4528bbb2f84&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/6949a957826960e4cb8c4cf405a6c4528bbb2f84&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2123] [GH-502]  Fix for invalid &apos;double-ON&apos; SQL generation with entity inheritance type JOINED.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2123</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 gwis:&lt;/p&gt;

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

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

&lt;p&gt;In SqlWalker::walkJoin(), SqlWalker::walkRangeVariableDeclaration() can be&lt;br/&gt;
called which may produce an &apos;ON&apos; clause if the entity inheritance type is&lt;br/&gt;
JOINED. As walkJoin() may then produce another ON clause, this results in&lt;br/&gt;
invalid SQL (e.g. &apos;... ON foo = bar ON (baz = quux) ...&apos; when the inheritance&lt;br/&gt;
type is JOINED.&lt;/p&gt;

&lt;p&gt;This adds a test and a fix for the problem, by checking for an inheritance type&lt;br/&gt;
of JOINED in walkJoin() and using AND instead of ON in the appropriate place.&lt;/p&gt;

&lt;p&gt;It seems like this part of the code is begging to be refactored. This is my&lt;br/&gt;
first foray into Doctrine internals and can&apos;t see a way to do this without&lt;br/&gt;
stomping all over the rest of the code, but this section seems ripe for cleanup&lt;br/&gt;
by somebody who is familiar.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14194">DDC-2123</key>
            <summary>[GH-502]  Fix for invalid &apos;double-ON&apos; SQL generation with entity inheritance type JOINED.</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Nov 2012 09:41:16 +0000</created>
                <updated>Fri, 9 Nov 2012 21:25:07 +0000</updated>
                    <resolved>Tue, 6 Nov 2012 00:30:21 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18929" author="beberlei" created="Tue, 6 Nov 2012 00:15:51 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-502&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/502&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/502&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18937" author="fabio.bat.silva" created="Tue, 6 Nov 2012 00:30:21 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/7a895209e3d9912bcc44fc8e8635dd48164a4749&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/7a895209e3d9912bcc44fc8e8635dd48164a4749&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2122] [GH-501] Allow 0 id for Entity</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2122</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 jeremymarc:&lt;/p&gt;

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

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

&lt;p&gt;When using a 0 id, it&apos;s throwing InvalidArgumentException (Binding entities to query parameters only allowed for entities that have an identifier.)&#65533;&#65533;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14192">DDC-2122</key>
            <summary>[GH-501] Allow 0 id for Entity</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Nov 2012 01:41:28 +0000</created>
                <updated>Fri, 9 Nov 2012 20:42:20 +0000</updated>
                    <resolved>Mon, 5 Nov 2012 22:07:13 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18914" author="beberlei" created="Mon, 5 Nov 2012 03:23:04 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-501&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/501&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/501&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18918" author="fabio.bat.silva" created="Mon, 5 Nov 2012 22:07:13 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/ff80e99cc955c0842df9b376c7cd6506b2e41653&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/ff80e99cc955c0842df9b376c7cd6506b2e41653&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2121] EntityGenerator generates bad type hint (missing \)</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2121</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Having an Entity class with this property declaration :&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;
/**
 * @ORM\OneToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Plan&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;Dossier&quot;&lt;/span&gt;)
 * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Plan[]
 **/
&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $Plans;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Getter &amp;amp; Setter are generated this way :&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;
/**
 * Add Plans
 *
 * @param se\JpsBundle\Entity\Plan $plans
 * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; Dossier
 */
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function addPlan(\se\JpsBundle\Entity\Plan $plans)
{
  $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;Plans[] = $plans;
  &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Problem lies in the &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;
@param se\JpsBundle\Entity\Plan $plans
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Should be : &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;
\se\JpsBundle\Entity\Plan $plans
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Same thing for Doctrine Collection class.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14191">DDC-2121</key>
            <summary>EntityGenerator generates bad type hint (missing \)</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="1">Fixed</resolution>
                                <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="serard">St&#233;phane Erard</reporter>
                        <labels>
                    </labels>
                <created>Sun, 4 Nov 2012 20:03:35 +0000</created>
                <updated>Fri, 9 Nov 2012 19:58:53 +0000</updated>
                    <resolved>Tue, 6 Nov 2012 00:34:24 +0000</resolved>
                            <version>2.1</version>
                <version>2.2</version>
                <version>2.3</version>
                                <fixVersion>2.3.1</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18941" author="fabio.bat.silva" created="Tue, 6 Nov 2012 00:34:24 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/262c3eea6bd4313d34558ff434bf9b8ff34b7ab3&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/262c3eea6bd4313d34558ff434bf9b8ff34b7ab3&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2116] [GH-498] Improve DocBlock annotations of generated entities</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2116</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 lanthaler:&lt;/p&gt;

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

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

&lt;p&gt;Currently, the DocBlock annotations for member variables contain the variable name as description which is redundant and should be removed. Furthermore the class is annotated with the FQN instead of just the name. This makes automatically generated documentation quite ugly.&lt;/p&gt;

&lt;p&gt;These changes will result in entities that as follows&lt;/p&gt;

&lt;p&gt;```&lt;br/&gt;
/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;User&lt;br/&gt;
 *&lt;/li&gt;
	&lt;li&gt;@ORM\Table()&lt;/li&gt;
	&lt;li&gt;@ORM\Entity&lt;br/&gt;
 */&lt;br/&gt;
class User&lt;br/&gt;
{&lt;br/&gt;
    /**&lt;/li&gt;
	&lt;li&gt;@var string&lt;br/&gt;
     *&lt;/li&gt;
	&lt;li&gt;@ORM\Column(name=&quot;name&quot;, type=&quot;string&quot;, length=255)&lt;br/&gt;
     */&lt;br/&gt;
    private $name;&lt;br/&gt;
```&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;instead of this:&lt;/p&gt;

&lt;p&gt;```&lt;br/&gt;
/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Some\Completely\Random\Namespace\User    &amp;lt;--- FQN is not needed here&lt;br/&gt;
 *&lt;/li&gt;
	&lt;li&gt;@ORM\Table()&lt;/li&gt;
	&lt;li&gt;@ORM\Entity&lt;br/&gt;
 */&lt;br/&gt;
class User&lt;br/&gt;
{&lt;br/&gt;
    /**&lt;/li&gt;
	&lt;li&gt;@var string $name  &amp;lt;--- description is better left blank instead of using variable name&lt;br/&gt;
     *&lt;/li&gt;
	&lt;li&gt;@ORM\Column(name=&quot;name&quot;, type=&quot;string&quot;, length=255)&lt;br/&gt;
     */&lt;br/&gt;
    private $name;&lt;br/&gt;
```&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="14186">DDC-2116</key>
            <summary>[GH-498] Improve DocBlock annotations of generated 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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 2 Nov 2012 16:21:23 +0000</created>
                <updated>Fri, 9 Nov 2012 21:24:42 +0000</updated>
                    <resolved>Mon, 5 Nov 2012 22:08:00 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18909" author="lanthaler" created="Fri, 2 Nov 2012 20:45:05 +0000"  >&lt;p&gt;Just noticed that the message the doctrinebot posts on GitHub contains a typo: &quot;thank you for **&lt;b&gt;positing&lt;/b&gt;** this Pull Request&quot;. Don&apos;t know where to report this so I do it directly here &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="18910" author="beberlei" created="Sat, 3 Nov 2012 00:27:17 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-498&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/498&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/498&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18919" author="fabio.bat.silva" created="Mon, 5 Nov 2012 22:08:00 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/515847bece281fe6a04f49b9a65fd10102c44f80&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/515847bece281fe6a04f49b9a65fd10102c44f80&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2115] [GH-496] Testing for key existance in basicEntityPersister / getIndividualValue</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2115</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 arse:&lt;/p&gt;

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

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

&lt;p&gt;wrapping the setting of value with an array_key_exists to prevent a notice from being thrown&lt;/p&gt;</description>
                <environment></environment>
            <key id="14185">DDC-2115</key>
            <summary>[GH-496] Testing for key existance in basicEntityPersister / getIndividualValue</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 2 Nov 2012 00:02:49 +0000</created>
                <updated>Fri, 9 Nov 2012 20:54:38 +0000</updated>
                    <resolved>Tue, 6 Nov 2012 00:29:01 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18932" author="beberlei" created="Tue, 6 Nov 2012 00:20:31 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-496&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/496&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/496&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18935" author="fabio.bat.silva" created="Tue, 6 Nov 2012 00:29:01 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/57e5fa98733f7a4f507845c6ade41bc16859add7&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/57e5fa98733f7a4f507845c6ade41bc16859add7&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2113] SQLFilter incorrect results when WHERE clause contains OR expression</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2113</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When using an SQLFilter, if applied to a query that contains only OR expressions in the WHERE clause, the generated SQL is incorrect.&lt;/p&gt;


&lt;p&gt;Example:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;SQLFilter returns a constraint like &quot;{$tableAlias}.accountid={$accountId}&quot;&lt;/li&gt;
	&lt;li&gt;Query: &quot;SELECT u FROM User u WHERE u.fname=&apos;bob&apos; OR u.lname=&apos;bob&apos;&quot;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Resulting SQL:&lt;br/&gt;
&quot;SELECT u FROM User u WHERE u.fname=&apos;bob&apos; OR u.lname=&apos;bob&apos; AND u.accountid=2&quot;&lt;/p&gt;

&lt;p&gt;Expected:&lt;br/&gt;
&quot;SELECT u FROM User u WHERE (u.fname=&apos;bob&apos; OR u.lname=&apos;bob&apos;) AND u.accountid=2&quot;&lt;/p&gt;


&lt;p&gt;The problem is that the order of operations is wrong. I&apos;m getting users who aren&apos;t in account 2, making SQLFilter unreliable.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14183">DDC-2113</key>
            <summary>SQLFilter incorrect results when WHERE clause contains OR expression</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="vclayton">Vaughn Clayton</reporter>
                        <labels>
                    </labels>
                <created>Thu, 1 Nov 2012 21:25:52 +0000</created>
                <updated>Fri, 9 Nov 2012 20:57:58 +0000</updated>
                    <resolved>Mon, 5 Nov 2012 22:13:27 +0000</resolved>
                            <version>2.2.2</version>
                <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="18923" author="fabio.bat.silva" created="Mon, 5 Nov 2012 22:13:27 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/129d6efd8585458fd4bde2a3eb9a5cac374f54fe&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/129d6efd8585458fd4bde2a3eb9a5cac374f54fe&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2109] Duplicate joinTableColumns mapping for ManyToMany with resolve target entity</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2109</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I use the resolve target entity listener quite often for generic code. However I found an issue with ManyToMany relationships, when the target entity is modified by the listener.&lt;/p&gt;

&lt;p&gt;The problem is that the _validateAndCompleteManyToManyMapping in PersistentCollection duplicate the joinTableColumns, so this means that when creating an entity, Doctrine send twice the number of parameters, which of course fail.&lt;/p&gt;

&lt;p&gt;Here is a test that reproduce the problem.&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;public&lt;/span&gt; function testAssertTableColumnsAreNotAddedInManyToMany()
    {
        $evm = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;em-&amp;gt;getEventManager();
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;listener-&amp;gt;addResolveTargetEntity(
            &apos;Doctrine\Tests\ORM\Tools\ResolveTargetInterface&apos;,
            &apos;Doctrine\Tests\ORM\Tools\ResolveTargetEntity&apos;,
            array()
        );
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;listener-&amp;gt;addResolveTargetEntity(
            &apos;Doctrine\Tests\ORM\Tools\TargetInterface&apos;,
            &apos;Doctrine\Tests\ORM\Tools\TargetEntity&apos;,
            array()
        );
        $evm-&amp;gt;addEventListener(Events::loadClassMetadata, $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;listener);
        $cm = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;factory-&amp;gt;getMetadataFor(&apos;Doctrine\Tests\ORM\Tools\ResolveTargetEntity&apos;);
        $meta = $cm-&amp;gt;associationMappings[&apos;manyToMany&apos;];

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertSame(&apos;Doctrine\Tests\ORM\Tools\TargetEntity&apos;, $meta[&apos;targetEntity&apos;]);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertEquals(array(&apos;resolvetargetentity_id&apos;, &apos;targetinterface_id&apos;), $meta[&apos;joinTableColumns&apos;]);
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>OS X 10.8</environment>
            <key id="14177">DDC-2109</key>
            <summary>Duplicate joinTableColumns mapping for ManyToMany with resolve target entity</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="bakura">Micha&#235;l Gallego</reporter>
                        <labels>
                    </labels>
                <created>Wed, 31 Oct 2012 09:37:54 +0000</created>
                <updated>Mon, 12 Nov 2012 14:50:16 +0000</updated>
                    <resolved>Mon, 12 Nov 2012 14:50:16 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                    <attachment id="11339" name="ResolveTargetEntityListenerTest.php" size="4321" author="bakura" created="Wed, 31 Oct 2012 09:37:54 +0000" />
                </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>

<item>
            <title>[DDC-2082] [GH-481] check for false as a return value from get_parent_class(), not null</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2082</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 beejeebus:&lt;/p&gt;

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

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

&lt;p&gt;MappingException::identifierRequired() and MappingException::classIsNotAValidEntityOrMappedSuperClass() both check for null, when they should check for false from get_parent_class().&lt;/p&gt;</description>
                <environment></environment>
            <key id="14132">DDC-2082</key>
            <summary>[GH-481] check for false as a return value from get_parent_class(), not null</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Oct 2012 04:08:25 +0000</created>
                <updated>Fri, 9 Nov 2012 21:01:32 +0000</updated>
                    <resolved>Wed, 24 Oct 2012 22:13:08 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18863" author="beberlei" created="Mon, 22 Oct 2012 03:54:28 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-481&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/481&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/481&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18880" author="fabio.bat.silva" created="Wed, 24 Oct 2012 22:13:08 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/9d0b254407e6f8827e0f00aa4ed0fcefc6111aad&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/9d0b254407e6f8827e0f00aa4ed0fcefc6111aad&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2080] Entity&apos;s association changes after first call</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2080</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;i am using the latest version of doctrine: 2.3&lt;/p&gt;

&lt;p&gt;when you call a generated association function, the first time everything is fine:&lt;/p&gt;

&lt;p&gt;$authors = $book-&amp;gt;getBookToAuthors();&lt;br/&gt;
//$authors = array(5)&lt;br/&gt;
but the second time instead of returning the array of all associations it returns the last hydrated entity:&lt;/p&gt;

&lt;p&gt;$authors = $book-&amp;gt;getBookToAuthors();&lt;br/&gt;
//$authors = BookToAuthor entity&lt;br/&gt;
that happens even when there is nothing else happening:&lt;/p&gt;

&lt;p&gt;$authors = $book-&amp;gt;getBookToAuthors(); //will work&lt;br/&gt;
$authors = $book-&amp;gt;getBookToAuthors(); //won&apos;t work&lt;br/&gt;
the function of getBookToAuthors() is:&lt;/p&gt;

&lt;p&gt;public function getBookToAuthors()&lt;/p&gt;
{
    return $this-&amp;gt;bookToAuthors;
}
&lt;p&gt;and the mapping is as follows:&lt;/p&gt;

&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@var BookToAuthor[]&lt;br/&gt;
 *&lt;/li&gt;
	&lt;li&gt;@OneToMany(targetEntity=&quot;BookToAuthor&quot;, mappedBy=&quot;book&quot;, cascade=
{&quot;persist&quot;}
&lt;p&gt;)&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;@JoinColumn(name=&quot;id&quot;, referencedColumnName=&quot;book_id&quot;, onDelete=&quot;cascade&quot;)&lt;br/&gt;
 */&lt;br/&gt;
private $bookToAuthors;&lt;br/&gt;
please advise. i don&apos;t know what to do... &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/sad.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="14130">DDC-2080</key>
            <summary>Entity&apos;s association changes after first call</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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="iamkoby">Koby Soto</reporter>
                        <labels>
                    </labels>
                <created>Mon, 15 Oct 2012 14:55:51 +0000</created>
                <updated>Mon, 15 Oct 2012 15:02:55 +0000</updated>
                    <resolved>Mon, 15 Oct 2012 15:02:06 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18838" author="iamkoby" created="Mon, 15 Oct 2012 15:02:06 +0000"  >&lt;p&gt;sorry sorry sorry&lt;br/&gt;
it was a mistake in the association target side.&lt;/p&gt;

&lt;p&gt;the target had One-To-One association instead of Many-To-One&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2079] Error in build entities using yml with several inversedJoinColumns</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2079</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Hello guys, sorry for the bad English found the error during a necessity and would like to post the solution.&lt;/p&gt;

&lt;p&gt;Below is an example of my yml relationamento a many to many.&lt;/p&gt;

&lt;p&gt;manyToMany:&lt;br/&gt;
        centroCustos:&lt;br/&gt;
            targetEntity: Album\Entity\CentroCusto&lt;br/&gt;
            cascade: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;persist&amp;quot;, &amp;quot;merge&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
            inversedBy: unidades&lt;br/&gt;
            joinTable:&lt;br/&gt;
                name: unidade_centro_custo&lt;br/&gt;
                joinColumns:&lt;br/&gt;
                    idunidade:&lt;br/&gt;
                        referencedColumnName: idunidade&lt;br/&gt;
                        onDelete: cascade&lt;br/&gt;
                inverseJoinColumns:&lt;br/&gt;
                    idcentrocusto:&lt;br/&gt;
                        referencedColumnName: idcentrocusto&lt;br/&gt;
                    idpais:&lt;br/&gt;
                        referencedColumnName: idpais&lt;br/&gt;
                    idmundo:&lt;br/&gt;
                        referencedColumnName: idmundo                        &lt;br/&gt;
                        onDelete: cascade&lt;/p&gt;

&lt;p&gt;Well this example is generating this code.&lt;/p&gt;

&lt;p&gt;  /**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@var \Doctrine\Common\Collections\ArrayCollection&lt;br/&gt;
     *&lt;/li&gt;
	&lt;li&gt;@ORM\ManyToMany(targetEntity=&quot;Album\Entity\CentroCusto&quot;, inversedBy=&quot;unidades&quot;, cascade=
{&quot;persist&quot;,&quot;merge&quot;}
&lt;p&gt;)&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;@ORM\JoinTable(name=&quot;unidade_centro_custo&quot;,&lt;/li&gt;
	&lt;li&gt;joinColumns=
{
     *     @ORM\JoinColumn(name=&quot;idunidade&quot;, referencedColumnName=&quot;idunidade&quot;, onDelete=&quot;cascade&quot;)
     *   }
&lt;p&gt;,&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;inverseJoinColumns=
{
     *     @ORM\JoinColumn(name=&quot;idcentrocusto&quot;, referencedColumnName=&quot;idcentrocusto&quot;)
     *     @ORM\JoinColumn(name=&quot;idpais&quot;, referencedColumnName=&quot;idpais&quot;)
     *     @ORM\JoinColumn(name=&quot;idmundo&quot;, referencedColumnName=&quot;idmundo&quot;, onDelete=&quot;cascade&quot;)
     *   }&lt;/li&gt;
	&lt;li&gt;)&lt;br/&gt;
     */&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Notice that Doctrine 2 is not putting commas to separate JoinColumns.&lt;/p&gt;

&lt;p&gt;So looking at the source code I found the following code and put it solved my problem.&lt;/p&gt;

&lt;p&gt;The changes was performed in EntityGenerator.php line 1090.&lt;/p&gt;

&lt;p&gt;                $arrJoins = array();&lt;br/&gt;
                foreach ($associationMapping&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;joinTable&amp;#39;&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;joinColumns&amp;#39;&amp;#93;&lt;/span&gt; as $joinColumn) &lt;/p&gt;
{
                    $arrJoins[] = $this-&amp;gt;spaces . &apos; *     &apos; . $this-&amp;gt;generateJoinColumnAnnotation($joinColumn);
                }

&lt;p&gt;                $lines[] = implode(&quot;,&quot;. PHP_EOL, $arrJoins);&lt;br/&gt;
                $lines[] = $this-&amp;gt;spaces . &apos; *   },&apos;;&lt;br/&gt;
                $lines[] = $this-&amp;gt;spaces . &apos; *   inverseJoinColumns={&apos;;&lt;/p&gt;

&lt;p&gt;                $arrJoinsInverse = array();&lt;br/&gt;
                foreach ($associationMapping&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;joinTable&amp;#39;&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;inverseJoinColumns&amp;#39;&amp;#93;&lt;/span&gt; as $joinColumn) &lt;/p&gt;
{
                	
                	$arrJoinsInverse[] = $this-&amp;gt;spaces . &apos; *     &apos; . $this-&amp;gt;generateJoinColumnAnnotation($joinColumn);
                }

&lt;p&gt;                $lines[] = implode(&quot;,&quot;. PHP_EOL, $arrJoinsInverse);&lt;br/&gt;
                $lines[] = $this-&amp;gt;spaces . &apos; *   }&apos;;&lt;br/&gt;
                $lines[] = $this-&amp;gt;spaces . &apos; * )&apos;;              }&lt;/p&gt;

&lt;p&gt;I hope you understand what I&apos;m trying to say, for you do not know if this error occurred, but if there ocorrei is one possible solution.&lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;</description>
                <environment>windows 7/php 5.3/apache 2.2</environment>
            <key id="14129">DDC-2079</key>
            <summary>Error in build entities using yml with several inversedJoinColumns</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="coisa2004">Andr&#233; Ant&#244;nio Lemos de Moraes</reporter>
                        <labels>
                    </labels>
                <created>Mon, 15 Oct 2012 14:14:30 +0000</created>
                <updated>Fri, 9 Nov 2012 21:18:00 +0000</updated>
                    <resolved>Sun, 21 Oct 2012 03:17:46 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3.1</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18856" author="fabio.bat.silva" created="Sun, 21 Oct 2012 03:17:46 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/2c0feb2a46a7cf97dc2878e6214924c3ffdbce67&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/2c0feb2a46a7cf97dc2878e6214924c3ffdbce67&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2074] ManyToManyPersister not found in the chain configured namespaces</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2074</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The error is: &quot;The class &apos;Doctrine\ORM\Persisters\ManyToManyPersister&apos; was not found in the chain configured namespaces&quot;&lt;/p&gt;

&lt;p&gt;Replicate by making an entity which has a property which is self referencing; e.g. &lt;a href=&quot;http://docs.doctrine-project.org/en/latest/reference/association-mapping.html#many-to-many-self-referencing&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/en/latest/reference/association-mapping.html#many-to-many-self-referencing&lt;/a&gt; . &lt;/p&gt;

&lt;p&gt;For example an Album could be related to any other similar albums. An album entity would have a property &apos;relatedAlbums&apos; which is an ArrayCollection. Similarly, I could be working on a CMS where any piece of content could be related to any other in order to show a &quot;related content&quot; or &quot;related posts&quot; style list on a web page.&lt;/p&gt;

&lt;p&gt;Using Symfony 2.1 and a Symfony Form with FormBuilder make sure to use the &apos;by_reference&apos; =&amp;gt; false to call the setter for the property. In the setter for the property: &lt;a href=&quot;https://gist.github.com/3879169&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/3879169&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A similar question has been asked on StackOverflow: &lt;a href=&quot;http://stackoverflow.com/questions/12077084/doctrine2-manytomany-self-referencing&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/12077084/doctrine2-manytomany-self-referencing&lt;/a&gt;&lt;/p&gt;</description>
                <environment>Symfony 2.1</environment>
            <key id="14124">DDC-2074</key>
            <summary>ManyToManyPersister not found in the chain configured namespaces</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="bendihossan">Steffan Harries</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Oct 2012 13:08:51 +0000</created>
                <updated>Sun, 25 Nov 2012 20:10:52 +0000</updated>
                    <resolved>Sun, 25 Nov 2012 20:10:52 +0000</resolved>
                            <version>2.2.3</version>
                                <fixVersion>2.3.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="18831" author="beberlei" created="Fri, 12 Oct 2012 17:58:22 +0000"  >&lt;p&gt;I need a stacktrace for this error, i have no clue why this happens and where.&lt;/p&gt;</comment>
                    <comment id="18836" author="bendihossan" created="Mon, 15 Oct 2012 08:22:14 +0000"  >&lt;p&gt;Stack Trace:&lt;/p&gt;

&lt;p&gt;The class &apos;Doctrine\ORM\Persisters\ManyToManyPersister&apos; was not found in the chain configured namespaces Gedmo\Tree\Entity, Gedmo\Translatable\Entity, MyProject\Bundle\AdminBundle\Entity, MyProject\Bundle\Common\SiteBundle\Entity, MyProject\Bundle\Common\ContentBundle\Entity, FOS\UserBundle\Entity&lt;/p&gt;

&lt;p&gt;500 Internal Server Error - MappingException&lt;/p&gt;

&lt;p&gt;Stack Trace&lt;/p&gt;

&lt;p&gt;in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/MappingException.php at line 38   &lt;br/&gt;
     */&lt;br/&gt;
    public static function classNotFoundInNamespaces($className, $namespaces)&lt;/p&gt;
    {
        return new self(&quot;The class &apos;&quot; . $className . &quot;&apos; was not found in the &quot;.
            &quot;chain configured namespaces &quot; . implode(&quot;, &quot;, $namespaces));
    }
&lt;p&gt;at MappingException ::classNotFoundInNamespaces (&apos;Doctrine\ORM\Persisters\ManyToManyPersister&apos;, array(&apos;Gedmo\Tree\Entity&apos;, &apos;Gedmo\Translatable\Entity&apos;, &apos;MyProject\Bundle\AdminBundle\Entity&apos;, &apos;MyProject\Bundle\Common\SiteBundle\Entity&apos;, &apos;MyProject\Bundle\Common\ContentBundle\Entity&apos;, &apos;FOS\UserBundle\Entity&apos;)) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php at line 114   &lt;br/&gt;
at MappingDriverChain -&amp;gt;loadMetadataForClass (&apos;Doctrine\ORM\Persisters\ManyToManyPersister&apos;, object(ClassMetadata)) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php at line 112   &lt;br/&gt;
at ClassMetadataFactory -&amp;gt;doLoadMetadata (object(ClassMetadata), null, false, array()) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php at line 302   &lt;br/&gt;
at AbstractClassMetadataFactory -&amp;gt;loadMetadata (&apos;Doctrine\ORM\Persisters\ManyToManyPersister&apos;) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php at line 205   &lt;br/&gt;
at AbstractClassMetadataFactory -&amp;gt;getMetadataFor (&apos;Doctrine\ORM\Persisters\ManyToManyPersister&apos;) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php at line 268   &lt;br/&gt;
at EntityManager -&amp;gt;getClassMetadata (&apos;Doctrine\ORM\Persisters\ManyToManyPersister&apos;) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/ManyToManyPersister.php at line 169   &lt;br/&gt;
at ManyToManyPersister -&amp;gt;_getDeleteSQL (object(PersistentCollection)) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/AbstractCollectionPersister.php at line 89   &lt;br/&gt;
at AbstractCollectionPersister -&amp;gt;delete (object(PersistentCollection)) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php at line 328   &lt;br/&gt;
at UnitOfWork -&amp;gt;commit (null) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php at line 355   &lt;br/&gt;
at EntityManager -&amp;gt;flush (null) &lt;br/&gt;
in kernel.root_dir/cache/dev/jms_diextra/doctrine/EntityManager_5075974d574d6.php at line 362   &lt;br/&gt;
at EntityManager -&amp;gt;flush () &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/src/MyProjectBundle/Common/ContentBundle/Controller/ContentController.php at line 170   &lt;br/&gt;
at ContentController -&amp;gt;updateAction (object(Request), &apos;3&apos;)&lt;br/&gt;
at call_user_func_array (array(object(ContentController), &apos;updateAction&apos;), array(object(Request), &apos;3&apos;)) &lt;br/&gt;
in kernel.root_dir/bootstrap.php.cache at line 1421   &lt;br/&gt;
at HttpKernel -&amp;gt;handleRaw (object(Request), &apos;1&apos;) &lt;br/&gt;
in kernel.root_dir/bootstrap.php.cache at line 1385   &lt;br/&gt;
at HttpKernel -&amp;gt;handle (object(Request), &apos;1&apos;, true) &lt;br/&gt;
in kernel.root_dir/bootstrap.php.cache at line 1561   &lt;br/&gt;
at HttpKernel -&amp;gt;handle (object(Request), &apos;1&apos;, true) &lt;br/&gt;
in kernel.root_dir/bootstrap.php.cache at line 612   &lt;br/&gt;
at Kernel -&amp;gt;handle (object(Request)) &lt;br/&gt;
in /opt/local/apache2/htdocs/projects/my-project/web/app_dev.php at line 28  &lt;/p&gt;</comment>
                    <comment id="19061" author="beberlei" created="Sun, 25 Nov 2012 20:10:52 +0000"  >&lt;p&gt;Ok apparently this is fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2073] PersistentCollection::matching() always returns empty collection, when passed criteria&apos;s expression is created using ExpressionBuilder::isNull()</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2073</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This happens because expression created by ExpressionBuilder::isNull() is wrongly translated to SQL using &apos;=&apos; operator instead of &apos;IS NULL&apos;.&lt;/p&gt;

&lt;p&gt;If the collection is already loaded, result is as expected.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14123">DDC-2073</key>
            <summary>PersistentCollection::matching() always returns empty collection, when passed criteria&apos;s expression is created using ExpressionBuilder::isNull()</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/blocker.png">Blocker</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="pauci">Pavol Kirschbaum</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Oct 2012 12:57:46 +0000</created>
                <updated>Mon, 12 Nov 2012 14:07:01 +0000</updated>
                    <resolved>Mon, 12 Nov 2012 14:07:01 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18946" author="mnapoli" created="Tue, 6 Nov 2012 14:21:13 +0000"  >&lt;p&gt;Pull request: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/508&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/508&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2072] [GH-477] fixed typo</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2072</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 jakoch:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14122">DDC-2072</key>
            <summary>[GH-477] fixed typo</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Oct 2012 11:39:07 +0000</created>
                <updated>Fri, 12 Oct 2012 18:31:33 +0000</updated>
                    <resolved>Fri, 12 Oct 2012 18:31:33 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18833" author="beberlei" created="Fri, 12 Oct 2012 18:29:06 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-477&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/477&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/477&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2071] [GH-476] Replaced the setting of Ids to the whereInQuery with a more performant implementation</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2071</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 HarmenM:&lt;/p&gt;

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

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

&lt;p&gt;While working with large datasets in combination with pagination (ie. a pagination window of 100 or more), the performance drastically decreased.&lt;/p&gt;

&lt;p&gt;I tracked the problem down to the setting of the parameters. In the old implementation, the parameters are set individually. This pull request sets the parameter as an array to the Query and Walker.&lt;/p&gt;

&lt;p&gt;Testing results (# of entities, original performance, improved performance):&lt;br/&gt;
32	0,036	0,033&lt;br/&gt;
64	0,043	0,037&lt;br/&gt;
128	0,065	0,043&lt;br/&gt;
256	0,133	0,057&lt;br/&gt;
512	0,360	0,088&lt;br/&gt;
1024	1,212	0,157&lt;br/&gt;
2048	4,462	0,332&lt;br/&gt;
4096	17,203	0,818&lt;/p&gt;</description>
                <environment></environment>
            <key id="14121">DDC-2071</key>
            <summary>[GH-476] Replaced the setting of Ids to the whereInQuery with a more performant implementation</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Oct 2012 11:30:20 +0000</created>
                <updated>Mon, 12 Nov 2012 11:33:14 +0000</updated>
                    <resolved>Mon, 12 Nov 2012 11:33:14 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2069] Spaces are not ignored in the &quot;column&quot; list of a uniqueConstraints</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2069</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In a YAML configuration file&lt;/p&gt;

&lt;p&gt;Behavior correct for this:&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;
  uniqueConstraints:
    myConstraint:
      columns: column1,column2
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However, if I add a space in the &quot;columns&quot; list:&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;
  uniqueConstraints:
    myConstraint:
      columns: column1, column2
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I end up with the following exception:&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;
exception &apos;Doctrine\DBAL\Schema\SchemaException&apos; with message &apos;There is no column with name &apos; column2&apos; on table &apos;myTable&apos;.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This can be very confusing, especially if (by any chance) you have a line return just on the space in the command line: you never see the space in the exception message.&lt;/p&gt;

&lt;p&gt;It seems that YAML allows spaces in lists (&lt;a href=&quot;http://en.wikipedia.org/wiki/YAML#Lists&quot; class=&quot;external-link&quot;&gt;http://en.wikipedia.org/wiki/YAML#Lists&lt;/a&gt;), but this line doesn&apos;t seem to be a YAML list. If it is parsed by Doctrine (split on &quot;,&quot;), spaces should be ignored (or trimmed).&lt;/p&gt;</description>
                <environment></environment>
            <key id="14119">DDC-2069</key>
            <summary>Spaces are not ignored in the &quot;column&quot; list of a uniqueConstraints</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="mnapoli">Matthieu Napoli</reporter>
                        <labels>
                        <label>yaml</label>
                    </labels>
                <created>Fri, 12 Oct 2012 09:10:14 +0000</created>
                <updated>Fri, 9 Nov 2012 21:12:38 +0000</updated>
                    <resolved>Sun, 21 Oct 2012 03:16:48 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3.1</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18842" author="mnapoli" created="Wed, 17 Oct 2012 08:02:57 +0000"  >&lt;p&gt;Note that using the correct YAML format works:&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;
uniqueConstraints:
    myConstraint:
      columns: [column1, column2]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So it&apos;s confusing to have 2 possibilities to write the same thing, and that they don&apos;t behave the same.&lt;/p&gt;</comment>
                    <comment id="18855" author="fabio.bat.silva" created="Sun, 21 Oct 2012 03:16:48 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/814f2f9e039caf712b75af7f61d28c361189bcab&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/814f2f9e039caf712b75af7f61d28c361189bcab&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2068] [GH-474] Fixed bug with comment option not being added to column.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2068</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 okovalov:&lt;/p&gt;

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

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

&lt;p&gt;Title explains everything... =)&lt;/p&gt;</description>
                <environment></environment>
            <key id="14118">DDC-2068</key>
            <summary>[GH-474] Fixed bug with comment option not being added to column.</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Oct 2012 15:58:51 +0000</created>
                <updated>Fri, 12 Oct 2012 18:37:20 +0000</updated>
                    <resolved>Fri, 12 Oct 2012 18:37:20 +0000</resolved>
                                            <fixVersion>2.2.4</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18827" author="beberlei" created="Fri, 12 Oct 2012 05:23:10 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-474&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/474&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/474&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2067] [GH-473] Fixes bug whereby orphan-removal value in XMLDriver is incorrectly parsed as true</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2067</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 mjphaynes:&lt;/p&gt;

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

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

&lt;p&gt;I realise this is very hand wavy and if you require some more information or test cases then I can see about that.&lt;/p&gt;

&lt;p&gt;However, just to get the issue logged, as I just spent 3 hours reverse engineering the doctrine code to find this, and it may help someone else.&lt;/p&gt;

&lt;p&gt;Basically when reading the XML mapping data from generated XML files the orphan-removal value was being incorrectly parse as &apos;true&apos; when it was set to &apos;false&apos; in the mapping file.&lt;/p&gt;

&lt;p&gt;I think this is because the XML parser was parsing the attribute as an object and when it was casted a boolean this meant the value became true. To overcome this I first cast the value as a string, and then to a bool.&lt;/p&gt;

&lt;p&gt;Let me know if you need more information.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14116">DDC-2067</key>
            <summary>[GH-473] Fixes bug whereby orphan-removal value in XMLDriver is incorrectly parsed as true</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Oct 2012 15:21:27 +0000</created>
                <updated>Fri, 12 Oct 2012 19:50:00 +0000</updated>
                    <resolved>Fri, 12 Oct 2012 19:50:00 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2059] Property perceived as dumplicate in composite foreign key</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2059</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have the following schema:&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;
CREATE TABLE `user` (
  `id` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(10) unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`id`)
);

CREATE TABLE `project` (
  `id` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
);

CREATE TABLE `project_conversation` (
  `project_id` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(10) unsigned NOT NULL,
  `user_id` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(10) unsigned NOT NULL,
  PRIMARY KEY (`project_id`,`user_id`)
)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I have ommitted the foreign key definitions for better readability. When I execute doctrine:mapping:convert (in Symfony2, but it seems it&apos;s a Doctrine2 issue), I get the following error:&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;
[Doctrine\ORM\Mapping\MappingException]                                               
Property &lt;span class=&quot;code-quote&quot;&gt;&quot;user&quot;&lt;/span&gt; in &lt;span class=&quot;code-quote&quot;&gt;&quot;Project&quot;&lt;/span&gt; was already declared, but it must be declared only once
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I have tracked down the issue to be caused by the existence of `user_id` in the project table. So basically, because `project_conversation` references `project` which in turn references `user`, `project_conversation` reference to `user` is perceived as duplicate.&lt;/p&gt;

&lt;p&gt;I don&apos;t think that this should be the expected behavior though. user_id in `project` references the creator of the project while user_id in `project_conversation` references the creator of the conversation and thus I think the schema is valid.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14101">DDC-2059</key>
            <summary>Property perceived as dumplicate in composite foreign key</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="dimboz">Dimitris Bozelos</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Oct 2012 16:25:15 +0000</created>
                <updated>Fri, 5 Oct 2012 18:08:12 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 18:08:12 +0000</resolved>
                            <version>2.1.3</version>
                                <fixVersion>2.2.4</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18779" author="beberlei" created="Fri, 5 Oct 2012 18:08:12 +0000"  >&lt;p&gt;Will be fixed in 2.2.4 and 2.3.1&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2050] [GH-459] Fix DDC-2012</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2050</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 FabioBatSilva:&lt;/p&gt;

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

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

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2012&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2012&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14083">DDC-2050</key>
            <summary>[GH-459] Fix DDC-2012</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 30 Sep 2012 18:52:51 +0000</created>
                <updated>Wed, 3 Oct 2012 10:53:20 +0000</updated>
                    <resolved>Wed, 3 Oct 2012 10:53:20 +0000</resolved>
                                            <fixVersion>2.2.4</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18765" author="beberlei" created="Wed, 3 Oct 2012 10:46:11 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-459&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/459&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/459&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2044] [GH-455] Fixed unique-constraint name in XML Exporter</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2044</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 radmar:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14070">DDC-2044</key>
            <summary>[GH-455] Fixed unique-constraint name in XML Exporter</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 26 Sep 2012 12:29:37 +0000</created>
                <updated>Fri, 5 Oct 2012 18:24:16 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 18:24:16 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18780" author="beberlei" created="Fri, 5 Oct 2012 18:24:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-455&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/455&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/455&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2028] [GH-444] Fixed some tyo error in XML Exporter</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2028</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 goetas:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14033">DDC-2028</key>
            <summary>[GH-444] Fixed some tyo error in XML Exporter</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 13 Sep 2012 07:42:50 +0000</created>
                <updated>Fri, 5 Oct 2012 21:17:21 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 21:17:21 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2012] Inserting a new entity with a custom mapping type does not call convertToDatabaseValueSQL() when using InheritanceType(&quot;JOINED&quot;)</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2012</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When using class type inheritance - @InheritanceType(&quot;JOINED&quot;) and inserting new entity with a custom mapping type, custom type method convertToDatabaseValueSQL() is never called.&lt;/p&gt;

&lt;p&gt;Here is sample class mapping:&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;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt; 
/**
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;item&quot;&lt;/span&gt;)
 * @Entity
 * @InheritanceType(&lt;span class=&quot;code-quote&quot;&gt;&quot;JOINED&quot;&lt;/span&gt;)
 * @DiscriminatorColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;type_id&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;smallint&quot;&lt;/span&gt;)
 * @DiscriminatorMap({1 = &lt;span class=&quot;code-quote&quot;&gt;&quot;ItemPerson&quot;&lt;/span&gt;})
 */
class Item {

	/**
	 * @Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;tsv&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;tsvector&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
	 */
	&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $tsv;
}

/**
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;item_person&quot;&lt;/span&gt;)
 * @Entity
 */
class ItemPerson &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Item
{
}

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;I am using the same custom TsvectorType with simple entities and even Mapped Superclasses and it works perfectly, however on InheritanceType(&quot;JOINED&quot;) method convertToDatabaseValueSQL() is never called :/&lt;br/&gt;
Hope someone knows how to fix this. &lt;br/&gt;
Thank you.&lt;/p&gt;
</description>
                <environment>PHP</environment>
            <key id="14012">DDC-2012</key>
            <summary>Inserting a new entity with a custom mapping type does not call convertToDatabaseValueSQL() when using InheritanceType(&quot;JOINED&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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="darklow">Kaspars Spro&#291;is</reporter>
                        <labels>
                    </labels>
                <created>Tue, 4 Sep 2012 10:02:03 +0000</created>
                <updated>Wed, 3 Oct 2012 11:57:09 +0000</updated>
                    <resolved>Wed, 3 Oct 2012 10:52:45 +0000</resolved>
                            <version>2.2.3</version>
                                <fixVersion>2.2.4</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18704" author="fabio.bat.silva" created="Mon, 24 Sep 2012 00:00:03 +0000"  >&lt;p&gt;Hi Kaspars,&lt;/p&gt;


&lt;p&gt;I can&apos;t reproduce, &lt;br/&gt;
Could you change the added testcase and try to make it fails ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                    <comment id="18735" author="darklow" created="Wed, 26 Sep 2012 16:26:25 +0000"  >&lt;p&gt;@Fabio thanks for looking into my problem&lt;br/&gt;
I attached test where you can detect the problem.&lt;/p&gt;

&lt;p&gt;It was quite strange, all i did was changed column that uses custom type to array and some minimal convertToDatabaseValue and convertToDatabaseValueSQL logic and convertToDatabaseValueSQL was never called. &lt;/p&gt;

&lt;p&gt;One more thing i noticed, this bug only appears on persist and not on merge. &lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                    <comment id="18741" author="fabio.bat.silva" created="Sat, 29 Sep 2012 17:57:34 +0000"  >&lt;p&gt;Thanks Kaspars &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;

&lt;p&gt;But sorry, I dont get your use case.&lt;/p&gt;

&lt;p&gt;Notice that convertToDatabaseValueSQL is called just when using queries to find a object by a especific columns which is your mapping type.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://docs.doctrine-project.org/en/2.1/cookbook/advanced-field-value-conversion-using-custom-mapping-types.html#the-mapping-type&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/en/2.1/cookbook/advanced-field-value-conversion-using-custom-mapping-types.html#the-mapping-type&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18743" author="darklow" created="Sat, 29 Sep 2012 22:15:09 +0000"  >&lt;p&gt;I am using PostgreSQL tsvector data type for full text search.&lt;/p&gt;

&lt;p&gt;Here is my tsvector custom data type class:&lt;br/&gt;
&lt;a href=&quot;https://gist.github.com/3129096&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/3129096&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The only way to update this field in postgresql is to use postgresql function to_tsvector(&apos;some text&apos;).&lt;br/&gt;
And everything works fine, if i persist simple entity, this method transforms insert query as needed:&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;public&lt;/span&gt; function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform)
{
	&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; sprintf(&apos;to_tsvector(%s)&apos;, $sqlExpr);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But when i use inheritance, then by some reason convertToDatabaseValueSQL method is not called and tsv field is updated with simple text as returned by convertToDatabaseValue() method.&lt;br/&gt;
I modified the Ticket Test so that you can see exact moment of when it is not called, which is exactly my problem.&lt;/p&gt;

&lt;p&gt;Here is the result after persisting (for persist it failed)&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;
$person = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; ItemPerson();
$person-&amp;gt;setName(&apos;some words &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; test&apos;);
$em-&amp;gt;persist($person);
$em-&amp;gt;flush();

DB Result:
Name                | Tsv
--------------------|------------------------------------
some words &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; test | &apos;&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;&apos; &apos;some&apos; &apos;test&apos; &apos;words&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here is the result after second time update (now by tsv format you can see it worked):&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;
$person-&amp;gt;setName(&apos;some more words &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; test&apos;);
$em-&amp;gt;flush();

DB Result:
Name                | Tsv
--------------------|------------------------------------
some words &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; test | &apos;test&apos;:5 &apos;word&apos;:3
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="18744" author="fabio.bat.silva" created="Sun, 30 Sep 2012 18:32:40 +0000"  >&lt;p&gt;Thanks Kaspars&lt;/p&gt;

&lt;p&gt;Now i saw the problem&lt;/p&gt;

&lt;p&gt;Writing a patch ...&lt;/p&gt;</comment>
                    <comment id="18766" author="darklow" created="Wed, 3 Oct 2012 11:07:02 +0000"  >&lt;p&gt;Just tested fixed version and everything works perfectly now.&lt;br/&gt;
Thank you!&lt;/p&gt;</comment>
                    <comment id="18767" author="fabio.bat.silva" created="Wed, 3 Oct 2012 11:57:09 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/91caff1d8965c20b72d5fdd04ffadf3ab063c1ba&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/91caff1d8965c20b72d5fdd04ffadf3ab063c1ba&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11327" name="DDC2012Test.php" size="4473" author="darklow" created="Wed, 26 Sep 2012 16:24:17 +0000" />
                    <attachment id="11326" name="DDC2012Test.php" size="4372" author="fabio.bat.silva" created="Mon, 24 Sep 2012 00:00:03 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1958] pager produces wrong results on postgresql</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1958</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The query build by pager to get the subset of PKs to fetch produces wrong results on potgresql (and probably any database), that conforms to the SQL standard. The standard says, that if you wish to have the results in specific order, then you have to specify that by using an ORDER BY clause. If such a clause is not present the database can return the results in whatever order it sees fit.&lt;/p&gt;

&lt;p&gt;Testcase fixtures:&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;
CREATE TABLE test (
    id integer,
    name text
);

INSERT INTO test VALUES (1, &apos;c&apos;);
INSERT INTO test VALUES (2, &apos;a&apos;);
INSERT INTO test VALUES (3, &apos;e&apos;);
INSERT INTO test VALUES (4, &apos;b&apos;);
INSERT INTO test VALUES (5, &apos;d&apos;);
INSERT INTO test VALUES (6, &apos;a&apos;);
INSERT INTO test VALUES (7, &apos;g&apos;);
INSERT INTO test VALUES (8, &apos;h&apos;);
INSERT INTO test VALUES (9, &apos;e&apos;);
INSERT INTO test VALUES (10, &apos;j&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Passing f.e.&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;
$qb = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;repository
    -&amp;gt;createQueryBuilder(&apos;t&apos;)
    -&amp;gt;select(&apos;t&apos;)
    -&amp;gt;setFirstResult(0)
    -&amp;gt;setMaxResults(5)
    -&amp;gt;addOrderBy(&apos;t.name&apos;, &apos;ASC&apos;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;to pager produces SQL like this modified for readability&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;
SELECT DISTINCT id FROM (
    SELECT id, name FROM test ORDER BY name
  ) dctrn_result
  LIMIT 5 OFFSET 0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now there is nothing wrong with this modified query per se, but there is no ORDER BY clause in the outer query so according to the standard the DB can choose whatever order it seems fit. Now mysql chooses the same order, but postgresql does not and it&apos;s probably not the only DB doing so.&lt;/p&gt;

&lt;p&gt;If you are interested in the results, this is the output I&apos;m seeing:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;postgresql: 8,4,1,5,3&lt;/li&gt;
	&lt;li&gt;mysql     : 2,6,4,1,5&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I and my coworker came to the standard compliant solution it was also tested on the dataset above on both postgresql and mysql and it produced equal results. We have found only one corner case this won&apos;t work and IMHO that can&apos;t be fixed. The problem is when you do a sort on a field from a table that is in 1:n relation to the main table.. e.g  tables posts and tags, where one post can have a multiple tags and you want your results sorted by a tag.&lt;/p&gt;

&lt;p&gt;Recipe for a correct query is:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;remember the ORDER BY fields from original query and then remove them&lt;/li&gt;
	&lt;li&gt;wrap the original query with a DISTINCT query, but add the fields from ORDER BY to the SELECT part of that query and add the whole ORDER BY to the end of it, also add the PK to the order by clause, and add the LIMIT clause&lt;/li&gt;
	&lt;li&gt;wrap the resulting query into another query and select just the id.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;so if I take the example from above the SQL should look like this:&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;
SELECT id FROM (
  SELECT DISTINCT id, name FROM (
    SELECT id, name FROM test
  ) dctrn_result_inner
  ORDER BY name, id LIMIT 5 OFFSET 0
) dctrn_result
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>* Postgres 9.1, 9.2&lt;br/&gt;
* PHP 5.4</environment>
            <key id="13897">DDC-1958</key>
            <summary>pager produces wrong results on postgresql</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="mvrhov">Miha Vrhovnik</reporter>
                        <labels>
                        <label>paginator</label>
                    </labels>
                <created>Mon, 30 Jul 2012 14:11:37 +0000</created>
                <updated>Tue, 9 Apr 2013 20:22:45 +0000</updated>
                    <resolved>Mon, 12 Nov 2012 14:05:03 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3.1</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18958" author="sylfel" created="Thu, 8 Nov 2012 10:20:52 +0000"  >&lt;p&gt;I reproduce same problem with Postgres 7.4, Doctrine 2.3 whereas with doctrine 2.2, all is fine&lt;br/&gt;
Hope there&apos;ll a fix in next doctrine version&lt;/p&gt;</comment>
                    <comment id="19969" author="rkolbe" created="Tue, 9 Apr 2013 20:22:45 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1800&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1800&lt;/a&gt; This relates.&lt;/p&gt;

&lt;p&gt;I just published a PR for an Oracle fix, but your solution appears to work for Oracle as well (issue is the same).&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1241] Additional parameters for EntityRepository::findAll() and EntityRepository::findOneBy()</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1241</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In the Doctrine 2.1 versions the method &lt;tt&gt;EntityRepository::findBy()&lt;/tt&gt; accepts additional parameters for ordering, limit and offset.&lt;br/&gt;
Great feature! (While waiting for it I extended the &lt;tt&gt;EntityRepository&lt;/tt&gt; class and implemented these parameters myself using a &lt;tt&gt;QueryBuilder&lt;/tt&gt;.)&lt;/p&gt;

&lt;p&gt;It would be nice for the method &lt;tt&gt;EntityRepository::findOneBy()&lt;/tt&gt; to accept an additional parameter for ordering as well. It could use the following signature:&lt;br/&gt;
&lt;tt&gt;public function findOneBy(array $criteria, array $orderBy = null);&lt;/tt&gt;&lt;br/&gt;
This would be useful for various cases, for example: finding the newest blog-post.&lt;/p&gt;

&lt;p&gt;And maybe update &lt;tt&gt;EntityRepository::findAll()&lt;/tt&gt; as well with the signature:&lt;br/&gt;
&lt;tt&gt;public function findAll(array $orderBy = null);&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Looking forward to your thoughts.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12767">DDC-1241</key>
            <summary>Additional parameters for EntityRepository::findAll() and EntityRepository::findOneBy()</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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="jasper@nerdsweide.nl">Jasper N. Brouwer</reporter>
                        <labels>
                    </labels>
                <created>Fri, 1 Jul 2011 08:09:37 +0000</created>
                <updated>Fri, 9 Nov 2012 20:34:28 +0000</updated>
                    <resolved>Tue, 6 Nov 2012 00:32:50 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.3.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="16218" author="dieterprovoost" created="Wed, 27 Jul 2011 08:59:26 +0000"  >&lt;p&gt;I can&apos;t seem to find the implementation of this even though this issue has been resolved. Is this possible?&lt;/p&gt;</comment>
                    <comment id="16219" author="beberlei" created="Wed, 27 Jul 2011 09:09:29 +0000"  >&lt;p&gt;It was only added to &quot;findBy&quot;&lt;/p&gt;</comment>
                    <comment id="16220" author="jasper@nerdsweide.nl" created="Wed, 27 Jul 2011 09:14:40 +0000"  >&lt;p&gt;So the resolution is actually a &quot;won&apos;t fix&quot; (in stead of &quot;fixed&quot;)?&lt;/p&gt;

&lt;p&gt;I know this was added to &quot;findBy&quot;, but my request was to extend the &quot;findOneBy&quot; and &quot;findAll&quot; as well...&lt;/p&gt;</comment>
                    <comment id="16221" author="dieterprovoost" created="Wed, 27 Jul 2011 09:15:46 +0000"  >&lt;p&gt;Can it also be added to &quot;findOneBy&quot;? It would come in very handy for the use case above (for example: finding the newest blog-post). &lt;br/&gt;
Otherwise, I think we are limited to the alternative using &quot;findBy&quot; with the orderBy parameter (thus fetching all entries, followed by returning only the first/last) or using a native query.&lt;/p&gt;</comment>
                    <comment id="16222" author="beberlei" created="Wed, 27 Jul 2011 09:37:41 +0000"  >&lt;p&gt;Reopened for 2.2 with implementation for &quot;findOneby()&quot;&lt;/p&gt;</comment>
                    <comment id="17080" author="guilhermeblanco" created="Tue, 20 Dec 2011 22:24:05 +0000"  >&lt;p&gt;Updating fix version&lt;/p&gt;</comment>
                    <comment id="18916" author="nemek_zg" created="Mon, 5 Nov 2012 19:04:15 +0000"  >&lt;p&gt;A proposed implementation of &lt;tt&gt;findOneBy&lt;/tt&gt; with ordering is available with the following pull request: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/504&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/504&lt;/a&gt;.&lt;/p&gt;</comment>
                    <comment id="18940" author="fabio.bat.silva" created="Tue, 6 Nov 2012 00:32:50 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/283ed55824b7c713611e4b1e336551be805c48b5&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/283ed55824b7c713611e4b1e336551be805c48b5&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>