<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed Jun 19 19:13:20 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.4%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.4%22</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="123" total="123"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DDC-2493] [GH-689] [WIP][DDC-1995 ] Support metadata class as parameter for instance of expression</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2493</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/689&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/689&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Hi guys,&lt;/p&gt;

&lt;p&gt;This is a possible solution for &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1995&quot; title=&quot;&amp;quot;Query Exception: Invalid parameter number: number of bound variables does not match number of tokens&amp;quot; when using an &amp;quot;Instance Of&amp;quot; expression&quot;&gt;&lt;del&gt;DDC-1995&lt;/del&gt;&lt;/a&gt;(&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1995&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1995&lt;/a&gt;),&lt;/p&gt;

&lt;p&gt;I&apos;ve attempted some diferent ways to fix this problem without success.&lt;br/&gt;
Anyway, RSM still looks like the wrong place to parameters mapping.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15027">DDC-2493</key>
            <summary>[GH-689] [WIP][DDC-1995 ] Support metadata class as parameter for instance of 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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 Jun 2013 21:33:21 +0000</created>
                <updated>Fri, 7 Jun 2013 22:02:03 +0000</updated>
                    <resolved>Fri, 7 Jun 2013 22:02:03 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20500" author="doctrinebot" created="Fri, 7 Jun 2013 21:43:06 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-689&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/689&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/689&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20505" author="fabio.bat.silva" created="Fri, 7 Jun 2013 22:02:03 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/462173ad71ae63cd9877e1e642f7968ed1f9971b&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/462173ad71ae63cd9877e1e642f7968ed1f9971b&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2488] [GH-686] [DDC-2475] Replace OrderBy mapping when OrderByClause is given</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2488</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/686&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/686&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-2475&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2475&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="15019">DDC-2488</key>
            <summary>[GH-686] [DDC-2475] Replace OrderBy mapping when OrderByClause is given</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 5 Jun 2013 03:59:56 +0000</created>
                <updated>Wed, 5 Jun 2013 14:10:44 +0000</updated>
                    <resolved>Wed, 5 Jun 2013 14:10:44 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20476" author="doctrinebot" created="Wed, 5 Jun 2013 05:04:01 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-686&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/686&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/686&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20482" author="fabio.bat.silva" created="Wed, 5 Jun 2013 14:10:44 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/753d63c2d48facdecba5d84f6ed2450024de2867&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/753d63c2d48facdecba5d84f6ed2450024de2867&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2478] PersisterException when matching Criteria expression isNull to ArrayCollection</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2478</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
    /**
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;ClubBoardPost&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;children&quot;&lt;/span&gt;)
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; ClubBoardPost
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $parent;

$criteria = Criteria::create()-&amp;gt;where(Criteria::expr()-&amp;gt;isNull(&apos;parent&apos;));
$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;boardPosts-&amp;gt;matching($criteria);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;output&amp;#93;&lt;/span&gt;&lt;br/&gt;
Cannot match on Fubles\CoreBundle\Entity\ClubBoardPost::parent with a non-object value. Matching objects by id is not compatible with matching on an in-memory collection, which compares objects by reference.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;first analysis&amp;#93;&lt;/span&gt;&lt;br/&gt;
@SqlExpressionVisitor:69 It seems like this check pretends that the value must be an object, maybe do you need to exclude NULL values only if association is nullable?&lt;/p&gt;</description>
                <environment></environment>
            <key id="15003">DDC-2478</key>
            <summary>PersisterException when matching Criteria expression isNull to ArrayCollection</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="twistedlogic">Antonio Trapani</reporter>
                        <labels>
                    </labels>
                <created>Thu, 30 May 2013 13:24:31 +0000</created>
                <updated>Fri, 14 Jun 2013 04:26:40 +0000</updated>
                    <resolved>Fri, 14 Jun 2013 04:26:40 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20569" author="fabio.bat.silva" created="Fri, 14 Jun 2013 04:26:40 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/f2f1d8986c288a437b81cd756d889aa47880d8b8&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/f2f1d8986c288a437b81cd756d889aa47880d8b8&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2475] ORDER BY on existing column is added, not replaced</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2475</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;It seems that if an entity has an existing ORDER BY clause on a relation that any subsequent ORDER BYs on that field are added instead of replaced.&lt;/p&gt;

&lt;p&gt;For example, I have two entities: Person and Membership. Person.Memberships has the following clause specified:&lt;/p&gt;

&lt;p&gt;@ORM\OrderBy(&lt;/p&gt;
{&quot;createDate&quot; = &quot;DESC&quot;}
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;I also have a repository method that uses this relationship and sets the following DQL:&lt;/p&gt;

&lt;p&gt;SELECT person, m&lt;br/&gt;
FROM \Company\Person person&lt;br/&gt;
JOIN person.memberships m&lt;br/&gt;
ORDER BY m.createDate ASC&lt;/p&gt;

&lt;p&gt;I would expect this query to replace the existing ORDER BY with ORDER BY m.createDate ASC. Instead, it adds the ORDER BY to the existing one, which makes the end result: ORDER BY m.createDate ASC, m.createDate DESC.&lt;/p&gt;

&lt;p&gt;This is obviously causing an issue since you can&apos;t sort by the same column in different order. Is this behavior by design? If so, is there a way to override the existing ORDER BY setting?&lt;/p&gt;</description>
                <environment></environment>
            <key id="14999">DDC-2475</key>
            <summary>ORDER BY on existing column is added, not replaced</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="jeremylivingston">Jeremy Livingston</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 May 2013 18:24:17 +0000</created>
                <updated>Wed, 5 Jun 2013 14:09:12 +0000</updated>
                    <resolved>Wed, 5 Jun 2013 14:09:12 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20481" author="fabio.bat.silva" created="Wed, 5 Jun 2013 14:09:12 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/753d63c2d48facdecba5d84f6ed2450024de2867&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/753d63c2d48facdecba5d84f6ed2450024de2867&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2470] Sql Server error in createQuery using ORDER BY and setMaxResults</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2470</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;h4&gt;&lt;a name=&quot;Important%3AThisissueonlyaffectto2.4.%5Cversions&quot;&gt;&lt;/a&gt;Important: This issue only affect to 2.4.&amp;#42; versions&lt;/h4&gt;


&lt;p&gt;When executing&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;
$query = $em-&amp;gt;createQuery(&apos;
SELECT m.nombre
     , m.fechainicio
     , m.fechafin 
  FROM Bundle:Medicion m
  JOIN m.estudio e
  JOIN e.cliente c
  JOIN c.usuarios u
 WHERE u.id = :id
 ORDER BY m.fechainicio DESC
&apos;)
-&amp;gt;setMaxResults(12);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;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;
An exception occurred &lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; executing &apos;
SELECT * 
  FROM (
           SELECT m0_.NOMBRE AS NOMBRE0
                , m0_.FECHAINICIO AS FECHAINICIO1
                , m0_.FECHAFIN AS FECHAFIN2
                , ROW_NUMBER() OVER (ORDER BY FECHAINICIO1 DESC) AS doctrine_rownum 
             FROM MEDICION m0_ WITH (NOLOCK) 
            INNER JOIN ESTUDIO e1_ 
               ON m0_.ESTUDIO_ID = e1_.ID 
            INNER JOIN CLIENTE c2_ 
               ON e1_.CLIENTE_ID = c2_.ID 
            INNER JOIN USUARIO u3_ 
               ON c2_.ID = u3_.CLIENTE_ID WHERE u3_.ID = ?
       ) AS doctrine_tbl 
 WHERE doctrine_rownum BETWEEN 1 AND 12
&apos; with params [2]:
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;
SQLSTATE[42S22]: [Microsoft][SQL Server Native Client 11.0][SQL Server]El nombre de columna &apos;FECHAINICIO1&apos; no es v&#225;lido.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Attached the BD model&lt;/p&gt;

&lt;p&gt;Added extra info!&lt;/p&gt;

&lt;p&gt;Engine version: Sql server 2008 R2&lt;/p&gt;

&lt;p&gt;When executing this SQL (returned by doctrine error) on Management Studio&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 * FROM (SELECT m0_.NOMBRE AS NOMBRE0, m0_.FECHAINICIO AS FECHAINICIO1, m0_.FECHAFIN AS FECHAFIN2, ROW_NUMBER() OVER (ORDER BY FECHAINICIO1 DESC) AS doctrine_rownum FROM MEDICION m0_ WITH (NOLOCK) INNER JOIN ESTUDIO e1_ ON m0_.ESTUDIO_ID = e1_.ID INNER JOIN CLIENTE c2_ ON e1_.CLIENTE_ID = c2_.ID INNER JOIN USUARIO u3_ ON c2_.ID = u3_.CLIENTE_ID WHERE u3_.ID = 12) AS doctrine_tbl WHERE doctrine_rownum BETWEEN 1 AND 12
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;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;
El nombre de columna &apos;FECHAINICIO1&apos; no es v&#225;lido. (&apos;FECHAINICIO1&apos; is invalid)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But if change &quot;FECHAINICIO1&quot;&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;
... OVER (ORDER BY FECHAINICIO1 DESC) AS doctrine_rownum FROM...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;by 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;
... OVER (ORDER BY m0_.FECHAINICIO DESC) AS doctrine_rownum FROM...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Don&apos;t get error&lt;/p&gt;


&lt;p&gt;regards&lt;br/&gt;
Jonnatan Oyarz&#250;n&lt;/p&gt;</description>
                <environment>Windows 7,  Apache 2 (xampp 1.8.1), PHP 5.4.7, Symfony 2.2.1</environment>
            <key id="14989">DDC-2470</key>
            <summary>Sql Server error in createQuery using ORDER BY and setMaxResults</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="jonsxaero">Jonnatan Oyarz&#250;n</reporter>
                        <labels>
                        <label>dql</label>
                        <label>sqlserver</label>
                    </labels>
                <created>Fri, 24 May 2013 16:27:41 +0000</created>
                <updated>Fri, 7 Jun 2013 21:34:56 +0000</updated>
                    <resolved>Fri, 7 Jun 2013 21:34:56 +0000</resolved>
                            <version>2.4</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="20477" author="guilhermeblanco" created="Wed, 5 Jun 2013 05:11:27 +0000"  >&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Which version of SQL Server are you working on?&lt;/li&gt;
	&lt;li&gt;Also, could you please verify 2 queries for us?&lt;br/&gt;
This one should not work:&lt;/li&gt;
&lt;/ul&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-sql&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;SELECT&lt;/span&gt; m0_.NOMBRE AS NOMBRE0
     , m0_.FECHAINICIO AS FECHAINICIO1
     , m0_.FECHAFIN AS FECHAFIN2 
  &lt;span class=&quot;code-keyword&quot;&gt;FROM&lt;/span&gt; MEDICION m0_ 
 ORDER &lt;span class=&quot;code-keyword&quot;&gt;BY&lt;/span&gt; FECHAINICIO1 DESC
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This one should work:&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-sql&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;SELECT&lt;/span&gt; m0_.NOMBRE AS NOMBRE0
     , m0_.FECHAINICIO AS FECHAINICIO1
     , m0_.FECHAFIN AS FECHAFIN2 
  &lt;span class=&quot;code-keyword&quot;&gt;FROM&lt;/span&gt; MEDICION m0_ 
 ORDER &lt;span class=&quot;code-keyword&quot;&gt;BY&lt;/span&gt; m0_.FECHAINICIO DESC
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As soon as you get this it may define the approach on how we&apos;re gonna fix the issue. =)&lt;/p&gt;

&lt;p&gt;Cheers,&lt;/p&gt;

&lt;p&gt;Guilherme Blanco&lt;/p&gt;</comment>
                    <comment id="20480" author="jonsxaero" created="Wed, 5 Jun 2013 13:04:48 +0000"  >&lt;p&gt;Add extra info&lt;/p&gt;

&lt;p&gt;Cheers,&lt;/p&gt;

&lt;p&gt;Jonnatan Oyarz&#250;n&lt;/p&gt;</comment>
                    <comment id="20484" author="fabio.bat.silva" created="Wed, 5 Jun 2013 18:07:53 +0000"  >&lt;p&gt;Hi Jonnatan&lt;/p&gt;

&lt;p&gt;There is a possible &lt;a href=&quot;https://github.com/FabioBatSilva/dbal/commit/72670d263fd35ca30a2d90afb85838a9795bd9b8&quot; class=&quot;external-link&quot;&gt;fix&lt;/a&gt; in this branch : &lt;a href=&quot;https://github.com/FabioBatSilva/dbal/tree/DDC-2470&quot; class=&quot;external-link&quot;&gt;DDC-2470&lt;/a&gt;,&lt;br/&gt;
but i&apos;m not able to test it right now..&lt;/p&gt;

&lt;p&gt;Could you please test it in your environment ?&lt;/p&gt;

&lt;p&gt;Thanks..&lt;/p&gt;</comment>
                    <comment id="20485" author="jonsxaero" created="Wed, 5 Jun 2013 18:49:12 +0000"  >&lt;p&gt;Hi Fabio&lt;/p&gt;

&lt;p&gt;Thank you very much for posting this fix.&lt;br/&gt;
From your &lt;a href=&quot;https://github.com/FabioBatSilva/dbal/tree/DDC-2470&quot; class=&quot;external-link&quot;&gt;DDC-2470&lt;/a&gt;, I downloaded and pasted files in vendor\doctrine\dbal.&lt;br/&gt;
Fix is working for me!.&lt;/p&gt;

&lt;p&gt;The question is, when this fix could be merged to dbal/master branch?&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br/&gt;
Jonnatan Oyarz&#250;n&lt;/p&gt;</comment>
                    <comment id="20486" author="fabio.bat.silva" created="Wed, 5 Jun 2013 21:01:24 +0000"  >&lt;p&gt;Thanks Jonnatan,&lt;/p&gt;

&lt;p&gt;I&apos;ve created a pull request : &lt;a href=&quot;https://github.com/doctrine/dbal/pull/332&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/332&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20496" author="fabio.bat.silva" created="Fri, 7 Jun 2013 21:34:56 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/753d63c2d48facdecba5d84f6ed2450024de2867&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/753d63c2d48facdecba5d84f6ed2450024de2867&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11611" name="BD.png" size="320773" author="jonsxaero" created="Fri, 24 May 2013 16:27:41 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2461] [GH-673] Namespace based command names</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2461</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 hell0w0rd:&lt;/p&gt;

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

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

&lt;p&gt;Symfony console supports auto completion:&lt;br/&gt;
``orm:generate:entities`` could called ``o:g:e``&lt;/p&gt;</description>
                <environment></environment>
            <key id="14969">DDC-2461</key>
            <summary>[GH-673] Namespace based command names</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 May 2013 22:12:50 +0000</created>
                <updated>Sun, 26 May 2013 05:00:25 +0000</updated>
                    <resolved>Sun, 26 May 2013 05:00:25 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20397" author="doctrinebot" created="Fri, 17 May 2013 22:17:25 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-673&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/673&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/673&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20398" author="ocramius" created="Fri, 17 May 2013 22:17:42 +0000"  >&lt;p&gt;BC break without advantages&lt;/p&gt;</comment>
                    <comment id="20399" author="doctrinebot" created="Fri, 17 May 2013 22:55:30 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-673&amp;#93;&lt;/span&gt; was reopened:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/673&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/673&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20435" author="doctrinebot" created="Sun, 26 May 2013 04:59:42 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-673&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/673&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/673&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2460] [GH-672] Simplification example</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2460</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 hell0w0rd:&lt;/p&gt;

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

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

&lt;p&gt;Remove doctrine class loader, one bootstrap file&lt;/p&gt;</description>
                <environment></environment>
            <key id="14968">DDC-2460</key>
            <summary>[GH-672] Simplification example</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 May 2013 21:46:17 +0000</created>
                <updated>Sun, 26 May 2013 05:01:04 +0000</updated>
                    <resolved>Sun, 26 May 2013 05:00:56 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20436" author="doctrinebot" created="Sun, 26 May 2013 05:01:04 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-672&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/672&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/672&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2458] [GH-671] [DDC-2435] Fix column name with numbers and non alphanumeric characters.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2458</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/671&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/671&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-2435&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2435&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14966">DDC-2458</key>
            <summary>[GH-671] [DDC-2435] Fix column name with numbers and non alphanumeric characters.</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 May 2013 16:19:38 +0000</created>
                <updated>Fri, 17 May 2013 16:41:03 +0000</updated>
                    <resolved>Fri, 17 May 2013 16:41:03 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20394" author="doctrinebot" created="Fri, 17 May 2013 16:34:09 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-671&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/671&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/671&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20396" author="fabio.bat.silva" created="Fri, 17 May 2013 16:41:03 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/c9d9b68fa9937218aad05dfca4b3f96b409cfc8e&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/c9d9b68fa9937218aad05dfca4b3f96b409cfc8e&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2457] [GH-670] [DDC-2451] Fix entity listeners serialization</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2457</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/670&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/670&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-2451&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2451&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14965">DDC-2457</key>
            <summary>[GH-670] [DDC-2451] Fix entity listeners serialization</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 May 2013 15:05:02 +0000</created>
                <updated>Fri, 17 May 2013 15:13:24 +0000</updated>
                    <resolved>Fri, 17 May 2013 15:13:24 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20391" author="doctrinebot" created="Fri, 17 May 2013 15:09:36 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-670&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/670&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/670&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20393" author="fabio.bat.silva" created="Fri, 17 May 2013 15:13:24 +0000"  >&lt;p&gt;merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/65886fdfeaf38692be5196a59530f56fc3e6ab56&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/65886fdfeaf38692be5196a59530f56fc3e6ab56&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2456] [GH-669] Fixed generating column names for self referencing entity.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2456</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 hason:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14964">DDC-2456</key>
            <summary>[GH-669] Fixed generating column names for self referencing 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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 May 2013 10:11:02 +0000</created>
                <updated>Sun, 26 May 2013 05:17:06 +0000</updated>
                    <resolved>Sun, 26 May 2013 05:17:06 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20437" author="doctrinebot" created="Sun, 26 May 2013 05:16:54 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-669&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/669&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/669&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2452] Additional `WITH` condition in joins between JTI roots cause invalid SQL to be produced</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2452</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Given a simple Joined Table Inheritance like following:&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;
/**
 * @Entity @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;foo&quot;&lt;/span&gt;) @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;discr&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;)
 * @DiscriminatorMap({&lt;span class=&quot;code-quote&quot;&gt;&quot;foo&quot;&lt;/span&gt; = &lt;span class=&quot;code-quote&quot;&gt;&quot;DDC2452Foo&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;bar&quot;&lt;/span&gt; = &lt;span class=&quot;code-quote&quot;&gt;&quot;DDC2452Bar&quot;&lt;/span&gt;})
 */
class DDC2452Foo
{
    /** @Id @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;) @GeneratedValue */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $id;
}

/** @Entity @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;bar&quot;&lt;/span&gt;) */
class DDC2452Bar &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; DDC2452Foo
{
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Following DQL&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 foo1 FROM DDC2452Foo foo1 JOIN DDC2452Foo foo2 WITH 1=1&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Will produce broken SQL:&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
    f0_.id AS id0, f0_.discr AS discr1 
FROM 
    foo f0_ 
LEFT JOIN bar b1_ 
    ON f0_.id = b1_.id 
LEFT JOIN foo f2_ 
LEFT JOIN bar b3_ 
    ON f2_.id = b3_.id 
    ON (1 = 1)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;(please note the duplicate `ON` in the SQL)&lt;/p&gt;

&lt;p&gt;That is caused because of the SQL walker producing the JTI filter with already the `ON` clause in it.&lt;/p&gt;

&lt;p&gt;That happens because the JTI join conditions are added in &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/2.4.0-BETA2/lib/Doctrine/ORM/Query/SqlWalker.php#L823-L825&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/2.4.0-BETA2/lib/Doctrine/ORM/Query/SqlWalker.php#L823-L825&lt;/a&gt; (`walkRangeVariableDeclaration`), while the additional defined `WITH` conditions are considered in `walkJoinAssociationDeclaration` later on.&lt;/p&gt;

&lt;p&gt;Added a test case and fix at &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/668&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/668&lt;/a&gt;&lt;/p&gt;</description>
                <environment>irrelevant</environment>
            <key id="14958">DDC-2452</key>
            <summary>Additional `WITH` condition in joins between JTI roots cause invalid SQL to be produced</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="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="ocramius">Marco Pivetta</reporter>
                        <labels>
                        <label>dql</label>
                        <label>sql-walker</label>
                    </labels>
                <created>Thu, 16 May 2013 14:05:48 +0000</created>
                <updated>Thu, 16 May 2013 16:23:40 +0000</updated>
                                    <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2451] Entity listeners class don&apos;t work when metadatas are stored in cache</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2451</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I&apos;m using entity listeners class to make PostPersist and PostLoad actions per entity and use memcached as the metadata cache. Before the metadatas are in cache, the methods of the entity listeners are properly called but when the metadatas are in cache, they are no longer called. I&apos;ve also made the test with APC and the result is the same.&lt;/p&gt;</description>
                <environment>Ubuntu / PHP 5.4.9</environment>
            <key id="14957">DDC-2451</key>
            <summary>Entity listeners class don&apos;t work when metadatas are stored in cache</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="jedi_bc">Bruno CHALOPIN</reporter>
                        <labels>
                        <label>event</label>
                        <label>orm</label>
                    </labels>
                <created>Thu, 16 May 2013 13:52:40 +0000</created>
                <updated>Fri, 17 May 2013 15:12:12 +0000</updated>
                    <resolved>Fri, 17 May 2013 15:12:12 +0000</resolved>
                            <version>2.4</version>
                                <fixVersion>2.4</fixVersion>
                                <component>Mapping Drivers</component>
                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20392" author="fabio.bat.silva" created="Fri, 17 May 2013 15:12:12 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/65886fdfeaf38692be5196a59530f56fc3e6ab56&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/65886fdfeaf38692be5196a59530f56fc3e6ab56&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2446] [GH-666] [DDC-2429] Fix xsd definition</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2446</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/666&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/666&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-2429&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2429&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14944">DDC-2446</key>
            <summary>[GH-666] [DDC-2429] Fix xsd definition</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 May 2013 14:14:11 +0000</created>
                <updated>Sun, 26 May 2013 06:02:03 +0000</updated>
                    <resolved>Sun, 26 May 2013 06:02:03 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20441" author="doctrinebot" created="Sun, 26 May 2013 06:01:19 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-666&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/666&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/666&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2442] [GH-663] Adding failing test to demonstrate DDC-2432</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2442</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 Ocramius:&lt;/p&gt;

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

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

&lt;p&gt;Attempt to fix &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2432&quot; title=&quot;Entity can be initialized even if not found&quot;&gt;&lt;del&gt;DDC-2432&lt;/del&gt;&lt;/a&gt; ( &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2432&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2432&lt;/a&gt; )&lt;/p&gt;

&lt;p&gt;Loading proxies with invalid identifiers will currently mark them as initialized regardless of the failure&lt;/p&gt;</description>
                <environment></environment>
            <key id="14849">DDC-2442</key>
            <summary>[GH-663] Adding failing test to demonstrate DDC-2432</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 May 2013 19:14:25 +0000</created>
                <updated>Fri, 10 May 2013 06:55:52 +0000</updated>
                    <resolved>Fri, 10 May 2013 06:55:52 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20257" author="doctrinebot" created="Thu, 9 May 2013 21:38:00 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-663&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/663&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/663&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2441] Incorrect SQL Query being generated</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2441</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The following DQL :&lt;/p&gt;

&lt;p&gt;SELECT s,ba,c,mno,ss,sws,ccs,cns,cws FROM WLCoreBundle:SIM s INNER JOIN s.billingAccount ba LEFT JOIN s.connection c INNER JOIN s.status ss LEFT JOIN s.workflowStatus sws INNER JOIN c.customerStatus ccs INNER JOIN c.networkStatus cns LEFT JOIN c&lt;br/&gt;
.workflowStatus cws INNER JOIN s.mno mno ORDER BY c.msisdn ASC&lt;/p&gt;

&lt;p&gt;Produces the following SQL :&lt;/p&gt;

&lt;p&gt;SELECT * FROM (SELECT c0_.id AS id0, c0_.iccid AS iccid1, c0_.created AS created2, c0_.updated AS updated3, c0_.spreference AS spreference4, c1_.id ASid5, c1_.account_number AS account_number6, c1_.name AS name7, c1_.address1 AS address18, c1_.address2 AS address29, c1_.address3 AS address310, c1_.address4 AS address411, c1_.address5 AS address512, c1_.address6 AS address613, c1_.email_address AS email_address14, c1_.spreference AS spreference15, c2_.id AS id16, c2_.msisdn AS msisdn17, c2_.local AS local18, c2_.imsi AS imsi19, c2_.data AS data20, c2_.fax AS fax21, c2_.api AS api22, c2_.activation_date AS activation_date23, c2_.contract_end_date AS contract_end_date24, c2_.created AS created25, c2_.updated AS updated26, c2_.spreference AS spreference27, c3_.id AS id28, c3_.ident AS ident29, c3_.label AS label30, c3_.description AS description31, c4_.id AS id32, c4_.ident AS ident33, c4_.label AS label34, c4_.description AS description35, c4_.customer_label AS customer_label36, c4_.customer_description AS customer_description37, c5_.id AS id38, c5_.ident AS ident39, c5_.label AS label40, c5_.description AS description41, c6_.id AS id42, c6_.ident AS ident43, c6_.label AS label44, c6_.description AS description45, c7_.id AS id46, c7_.ident AS ident47, c7_.label AS label48, c7_.description AS description49, c7_.customer_label AS customer_label50, c7_.customer_description AS customer_description51, c8_.id AS id52, c8_.name AS name53, c8_.email_address AS email_address54, c8_.is_active AS is_active55, c8_.spreference AS spreference56, c0_.billing_account AS billing_account57, c0_.customerHierarchy AS customerHierarchy58, c0_.mno AS mno59, c0_.status AS status60, c0_.workflow_status AS workflow_status61, c1_.customer_hierarchy AS customer_hierarchy62, c1_.country AS country63, c1_.tax_rate AS tax_rate64, c1_.currency AS currency65, c1_.status AS status66, c1_.priority AS priority67, c2_.sim AS sim68, c2_.customer_status AS customer_status69, c2_.network_status AS network_status70, c2_.workflow_status AS workflow_status71, ROW_NUMBER() OVER (ORDER BY msisdn17 ASC) AS doctrine_rownum FROM core_sim c0_ WITH (NOLOCK) INNER JOIN core_billing_account c1_ ON c0_.billing_account = c1_.id LEFT JOIN core_connection c2_ ON c0_.id = c2_.sim INNER JOIN core_sim_status c3_ ON c0_.status = c3_.id LEFT JOIN core_sim_workflow_status c4_ ON c0_.workflow_status = c4_.id INNER JOIN core_connection_customer_status c5_ ON c2_.customer_status = c5_.id INNER JOIN core_connection_network_status c6_ ON c2_.network_status = c6_.id LEFT JOIN core_connection_workflow_status c7_ ON c2_.workflow_status = c7_.id INNER JOIN core_mno c8_ ON c0_.mno = c8_.id) AS doctrine_tbl WHERE doctrine_rownum BETWEEN 1 AND 10&lt;/p&gt;

&lt;p&gt;Which returns an error :&lt;/p&gt;

&lt;p&gt; SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42S22&amp;#93;&lt;/span&gt;: &lt;span class=&quot;error&quot;&gt;&amp;#91;Microsoft&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;SQL Server Native Client 11.0&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;SQL Server&amp;#93;&lt;/span&gt;Invalid column name &apos;msisdn17&apos;.&lt;/p&gt;

&lt;p&gt;Same query works fine in Doctrine 2.3&lt;/p&gt;</description>
                <environment>Using Doctrine in Symfony 2.2.1 on Windows Platform</environment>
            <key id="14847">DDC-2441</key>
            <summary>Incorrect SQL Query being generated</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="manseuk">Paul Mansell</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 May 2013 16:31:03 +0000</created>
                <updated>Fri, 7 Jun 2013 21:36:32 +0000</updated>
                    <resolved>Fri, 7 Jun 2013 21:35:21 +0000</resolved>
                            <version>2.4</version>
                                <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="20478" author="guilhermeblanco" created="Wed, 5 Jun 2013 05:13:10 +0000"  >&lt;p&gt;Which version of SQL Server are you using?&lt;/p&gt;</comment>
                    <comment id="20479" author="guilhermeblanco" created="Wed, 5 Jun 2013 05:14:08 +0000"  >&lt;p&gt;Seems to be related to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2470&quot; title=&quot;Sql Server error in createQuery using ORDER BY and setMaxResults&quot;&gt;&lt;del&gt;DDC-2470&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20483" author="manseuk" created="Wed, 5 Jun 2013 17:23:12 +0000"  >&lt;p&gt;Im using SQL Server 2008 ... yes does seem the same / similar error&lt;/p&gt;</comment>
                    <comment id="20493" author="fabio.bat.silva" created="Fri, 7 Jun 2013 00:25:08 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=manseuk&quot; class=&quot;user-hover&quot; rel=&quot;manseuk&quot;&gt;Paul Mansell&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Could you please test this branch &lt;a href=&quot;https://github.com/FabioBatSilva/dbal/tree/DDC-2470&quot; class=&quot;external-link&quot;&gt;DDC-2470&lt;/a&gt; with this &lt;a href=&quot;https://github.com/FabioBatSilva/dbal/commit/72670d263fd35ca30a2d90afb85838a9795bd9b8&quot; class=&quot;external-link&quot;&gt;fix&lt;/a&gt; in your environment ?&lt;/p&gt;

&lt;p&gt;Thanks..&lt;/p&gt;</comment>
                    <comment id="20497" author="fabio.bat.silva" created="Fri, 7 Jun 2013 21:35:21 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/753d63c2d48facdecba5d84f6ed2450024de2867&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/753d63c2d48facdecba5d84f6ed2450024de2867&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20498" author="fabio.bat.silva" created="Fri, 7 Jun 2013 21:36:32 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=manseuk&quot; class=&quot;user-hover&quot; rel=&quot;manseuk&quot;&gt;Paul Mansell&lt;/a&gt;, please let us know if the problem continues after update&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2439] [GH-662] Fixed a code block.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2439</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 jakzal:&lt;/p&gt;

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

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

&lt;p&gt;Last code block in the &lt;span class=&quot;error&quot;&gt;&amp;#91;Keeping your Modules independent&amp;#93;&lt;/span&gt;(&lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/resolve-target-entity-listener.html&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/resolve-target-entity-listener.html&lt;/a&gt;) cookbook is broken.&lt;/p&gt;

&lt;p&gt;Sphinx does not like the way code was indented. Building the documentation raises the following error:&lt;/p&gt;

&lt;p&gt;    en/cookbook/resolve-target-entity-listener.rst:121: ERROR: Unexpected indentation.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14845">DDC-2439</key>
            <summary>[GH-662] Fixed a code block.</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 May 2013 14:20:56 +0000</created>
                <updated>Thu, 9 May 2013 14:28:04 +0000</updated>
                    <resolved>Thu, 9 May 2013 14:28:04 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20244" author="doctrinebot" created="Thu, 9 May 2013 14:27:41 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-662&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/662&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/662&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2438] [GH-661] Update annotations-reference.rst</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2438</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/661&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/661&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Added missing @JoinColumns in the index&lt;/p&gt;</description>
                <environment></environment>
            <key id="14844">DDC-2438</key>
            <summary>[GH-661] Update annotations-reference.rst</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 May 2013 11:49:46 +0000</created>
                <updated>Thu, 9 May 2013 12:10:45 +0000</updated>
                    <resolved>Thu, 9 May 2013 12:10:45 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20240" author="doctrinebot" created="Thu, 9 May 2013 12:10:33 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-661&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/661&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/661&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2435] Column name with number and reserved character creates invalid query</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2435</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have a column name called 1:1 which i map like so&lt;br/&gt;
@Column(type=&quot;string&quot;, name=&quot;`1:1`&quot;)&lt;br/&gt;
Unfortunately, the SQL that get generated does not work in mysql:&lt;br/&gt;
SELECT t0.`1:1` AS 112 FROM `table` t0&lt;br/&gt;
the problem is with the &apos;AS 112&apos;, if it contained a letter eg. 11a, or was escaped eg. `112` it wound work.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14841">DDC-2435</key>
            <summary>Column name with number and reserved character creates invalid query</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="dane77hz">Dane Lipscombe</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 May 2013 02:18:44 +0000</created>
                <updated>Fri, 17 May 2013 16:40:30 +0000</updated>
                    <resolved>Fri, 17 May 2013 16:40:30 +0000</resolved>
                            <version>2.3.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20395" author="fabio.bat.silva" created="Fri, 17 May 2013 16:40:30 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/c9d9b68fa9937218aad05dfca4b3f96b409cfc8e&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/c9d9b68fa9937218aad05dfca4b3f96b409cfc8e&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2432] Entity can be initialized even if not found</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2432</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have some data in loose consistency, trying to load a field from a certain entity will yield a EntityNotFoundException. Trying it again, for example if the group is reused in a set that gets iterated, will work but provide an empty/dirty Entity.&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;try&lt;/span&gt; {
  echo $item-&amp;gt;getGroup()-&amp;gt;getName();
} &lt;span class=&quot;code-keyword&quot;&gt;catch&lt;/span&gt; (\Doctrine\ORM\EntityNotFoundException $enfe) {
  &lt;span class=&quot;code-comment&quot;&gt;// meh
&lt;/span&gt;}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Thats probably because the proxies internal methods set _&lt;em&gt;isInitialized&lt;/em&gt;_ to true on the first try. Without reverting it in case of the 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;
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __load()
    {
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;__isInitialized__ &amp;amp;&amp;amp; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_entityPersister) {
            $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;__isInitialized__ = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;

            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_entityPersister-&amp;gt;load($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_identifier, $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;) === &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;) {
                &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\ORM\EntityNotFoundException();
            }
            unset($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_entityPersister, $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_identifier);
        }
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Is there any reason to do that?&lt;/p&gt;</description>
                <environment></environment>
            <key id="14836">DDC-2432</key>
            <summary>Entity can be initialized even if not found</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="croensch">Christoph Roensch</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 May 2013 13:01:09 +0000</created>
                <updated>Thu, 9 May 2013 21:38:43 +0000</updated>
                    <resolved>Thu, 9 May 2013 21:38:43 +0000</resolved>
                            <version>2.3.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20223" author="ocramius" created="Mon, 6 May 2013 13:35:12 +0000"  >&lt;p&gt;That is specifically there to disallow recursive load operations that may occur - did you already try this with latest master?&lt;/p&gt;</comment>
                    <comment id="20224" author="croensch" created="Tue, 7 May 2013 16:15:37 +0000"  >&lt;p&gt;I did not exactly use an &quot;Doctrine Proxy&quot;. A colleque of me implemented his own proxies, wich instead of loading from an entity manager, load stuff from a webservice. He simply used the template that a normal proxy provided and thats where i found this case, throw exception - return initialized. Wich i found would be valid for real proxies too.&lt;/p&gt;

&lt;p&gt;Now i tried to use &lt;a href=&quot;http://www.doctrine-project.org/blog/doctrine-2-4-beta.html&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/blog/doctrine-2-4-beta.html&lt;/a&gt; but the composer install just fails because common cant be resolved atm. So i downloaded and compiled all tarballs from github into our project. Now the proxy mechanism seems changed, with an _&lt;em&gt;initializer&lt;/em&gt;_ closure&lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/help_16.gif&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; instead. Our &quot;Entities&quot; in question won&apos;t work with that anymore...&lt;/p&gt;

&lt;p&gt;I would have to construct a demo then, implementing real basic proxies with a RDBMS?&lt;/p&gt;</comment>
                    <comment id="20225" author="ocramius" created="Tue, 7 May 2013 16:30:04 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=croensch&quot; class=&quot;user-hover&quot; rel=&quot;croensch&quot;&gt;Christoph Roensch&lt;/a&gt; did you try setting the minimum-stability flag in composer? Give it a try again with 2.4 and ping back - proxies changed a lot since 2.3&lt;/p&gt;</comment>
                    <comment id="20227" author="croensch" created="Wed, 8 May 2013 13:00:28 +0000"  >&lt;p&gt;I reproduced it with the tutorial application, please have a look at the two commits i made on &lt;a href=&quot;https://github.com/croensch/doctrine2-orm-tutorial/tree/DDC-2432&quot; class=&quot;external-link&quot;&gt;https://github.com/croensch/doctrine2-orm-tutorial/tree/DDC-2432&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20255" author="ocramius" created="Thu, 9 May 2013 19:23:45 +0000"  >&lt;p&gt;Proposed a fix at &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/663&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/663&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2430] Incorrect results when using -&gt;matching on PersistentCollection</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2430</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When using -&amp;gt;matching() on a PersistentCollection that is already loaded, it returns incorrect results when trying to match by id on a relationship.&lt;/p&gt;

&lt;p&gt;// NOTE: the user property is a M:1 relationship of $entity&lt;br/&gt;
$c = new Criteria(Criteria::expr()-&amp;gt;eq(&apos;user&apos;, $userId));&lt;br/&gt;
$res = $entity-&amp;gt;getLikes()-&amp;gt;matching($c);&lt;/p&gt;

&lt;p&gt;// $res is empty, even if $userId exists&lt;/p&gt;</description>
                <environment>Ubuntu 12.04 LTS, PHP 5.4.14</environment>
            <key id="14832">DDC-2430</key>
            <summary>Incorrect results when using -&gt;matching on PersistentCollection</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="stuartcarnie">Stuart Carnie</reporter>
                        <labels>
                        <label>criteria</label>
                    </labels>
                <created>Sun, 5 May 2013 17:47:40 +0000</created>
                <updated>Thu, 9 May 2013 11:25:38 +0000</updated>
                    <resolved>Thu, 9 May 2013 11:25:38 +0000</resolved>
                            <version>2.4</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20237" author="beberlei" created="Thu, 9 May 2013 10:53:07 +0000"  >&lt;p&gt;The problem is that matching a user by just the id doesn&apos;t work for in memory here.&lt;br/&gt;
You should use Criteria::expr()-&amp;gt;eq(&apos;user&apos;, $user) instead. The ORM shouldnt allow $userId matching, but this is generic functionality we are reusing here, pretty hard to enforce this. I can take a look.&lt;/p&gt;</comment>
                    <comment id="20238" author="beberlei" created="Thu, 9 May 2013 11:25:38 +0000"  >&lt;p&gt;Fixed and introduced a BC break for this.&lt;/p&gt;

&lt;p&gt;See &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/30f90a6f49d46d2f367ac774aa77e0c7ce1a573f#L0R31&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/30f90a6f49d46d2f367ac774aa77e0c7ce1a573f#L0R31&lt;/a&gt; for information.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2429] Association-Override Problem in XSD Mapping?</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2429</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;From a mailinglist entry:&lt;/p&gt;

&lt;p&gt;I use Doctrine 2.3 in Symfony 2.1.8&lt;/p&gt;

&lt;p&gt;I&apos;m using association-overrides in the XML format between several entities. Eclipse shows up several errors.&lt;/p&gt;

&lt;p&gt;The first error message is shown in every Doctrine file when I declare the file format as such (for example: &lt;a href=&quot;https://github.com/thewholelifetolearn/Social-Library/blob/master/src/SocialLibrary/ReadBundle/Resources/config/doctrine/GraphicNovel.orm.xml&quot; class=&quot;external-link&quot;&gt;https://github.com/thewholelifetolearn/Social-Library/blob/master/src/SocialLibrary/ReadBundle/Resources/config/doctrine/GraphicNovel.orm.xml&lt;/a&gt; )&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;
&amp;lt;?xml version=&lt;span class=&quot;code-quote&quot;&gt;&quot;1.0&quot;&lt;/span&gt; encoding=&lt;span class=&quot;code-quote&quot;&gt;&quot;UTF-8&quot;&lt;/span&gt;?&amp;gt;
&amp;lt;doctrine-mapping xmlns=&lt;span class=&quot;code-quote&quot;&gt;&quot;http:&lt;span class=&quot;code-comment&quot;&gt;//doctrine-project.org/schemas/orm/doctrine-mapping&quot;&lt;/span&gt;
&lt;/span&gt;                  xmlns:xsi=&lt;span class=&quot;code-quote&quot;&gt;&quot;http:&lt;span class=&quot;code-comment&quot;&gt;//www.w3.org/2001/XMLSchema-instance&quot;&lt;/span&gt;
&lt;/span&gt;                  xsi:schemaLocation=&quot;http:&lt;span class=&quot;code-comment&quot;&gt;//doctrine-project.org/schemas/orm/doctrine-mapping
&lt;/span&gt;                  http:&lt;span class=&quot;code-comment&quot;&gt;//doctrine-project.org/schemas/orm/doctrine-mapping.xsd&quot;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Eclipse shows this error : &lt;br/&gt;
White spaces are required between  publicId and systemId&lt;/p&gt;

&lt;p&gt;The error points to the &quot;doctrine-mapping&quot; line&lt;/p&gt;



&lt;p&gt;The second error comes up when I change the doctype to (file example: &lt;a href=&quot;https://gist.github.com/thewholelifetolearn/5462057&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/thewholelifetolearn/5462057&lt;/a&gt; ):&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;
&amp;lt;?xml version=&lt;span class=&quot;code-quote&quot;&gt;&quot;1.0&quot;&lt;/span&gt; encoding=&lt;span class=&quot;code-quote&quot;&gt;&quot;UTF-8&quot;&lt;/span&gt;?&amp;gt;
&amp;lt;doctrine-mapping xmlns=&lt;span class=&quot;code-quote&quot;&gt;&quot;http:&lt;span class=&quot;code-comment&quot;&gt;//doctrine-project.org/schemas/orm/doctrine-mapping&quot;&lt;/span&gt;
&lt;/span&gt;                  xmlns:xsi=&lt;span class=&quot;code-quote&quot;&gt;&quot;http:&lt;span class=&quot;code-comment&quot;&gt;//www.w3.org/2001/XMLSchema-instance&quot;&lt;/span&gt;
&lt;/span&gt;                  xsi:schemaLocation=&quot;http:&lt;span class=&quot;code-comment&quot;&gt;//doctrine-project.org/schemas/orm/doctrine-mapping
&lt;/span&gt;                  https:&lt;span class=&quot;code-comment&quot;&gt;//raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd&quot;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But then this error is shown:&lt;br/&gt;
cvc-complex-type.2.4.b: The content of element &apos;association-overrides&apos; is not complete. One of &apos;&lt;/p&gt;
{&quot;http://doctrine-project.org/schemas/orm/doctrine-mapping&quot;:association-override, WC[##other:&quot;http://doctrine-project.org/schemas/orm/doctrine-mapping&quot;]}
&lt;p&gt;&apos; is expected.&lt;/p&gt;

&lt;p&gt;The error points on &quot;&amp;lt;association-overrides&amp;gt;&quot; in Novel.orm.xml (line 8)&lt;/p&gt;


&lt;p&gt;Could someone explain me the errors that show up? The first error doesn&apos;t seem to disturb Symfony2 but the second messes around the console commands. But it still generates the database.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14831">DDC-2429</key>
            <summary>Association-Override Problem in XSD Mapping?</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 5 May 2013 16:44:40 +0000</created>
                <updated>Sun, 26 May 2013 06:01:51 +0000</updated>
                    <resolved>Sun, 26 May 2013 06:01:51 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2419] [GH-655] [DDC-2409] Fix merge association UnitOfWork::STATE_NEW</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2419</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/655&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/655&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-2409&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2409&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14816">DDC-2419</key>
            <summary>[GH-655] [DDC-2409] Fix merge association UnitOfWork::STATE_NEW</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Sun, 28 Apr 2013 20:09:18 +0000</created>
                <updated>Wed, 1 May 2013 09:02:01 +0000</updated>
                    <resolved>Wed, 1 May 2013 09:02:01 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                <fixVersion>2.3.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20138" author="doctrinebot" created="Wed, 1 May 2013 08:49:34 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-655&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/655&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/655&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2417] [GH-653] [DDC-2415] Fix CustomIdGenerator inheritance</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2417</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/653&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/653&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-2415&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2415&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14814">DDC-2417</key>
            <summary>[GH-653] [DDC-2415] Fix CustomIdGenerator inheritance</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 26 Apr 2013 19:24:16 +0000</created>
                <updated>Sat, 27 Apr 2013 07:50:17 +0000</updated>
                    <resolved>Sat, 27 Apr 2013 07:50:17 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20113" author="doctrinebot" created="Sat, 27 Apr 2013 07:41:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-653&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/653&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/653&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2409] Merge operation tries to add new detached entities to indentity map and load them as proxies</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2409</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
class A
    {
       /**
        *  @ORM\ManyToOne(targetEntity= &lt;span class=&quot;code-quote&quot;&gt;&quot;B&quot;&lt;/span&gt;...
        *  @ORM\JoinColumn(name=&quot; ...
        */
        &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $b;
        
        &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getB()
        {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;b;
        }
        
        &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setB($b)
        {
            $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;b = $b;
        }
}
    
    class B
	{
       /**
        * As
        *
        * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; \Doctrine\Common\Collections\Collection
        *
        * @ORM\OneToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;A&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;B&quot;&lt;/span&gt;)
        */
		&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $As;
    }
	
	$b = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \B();
	
	$a = $em-&amp;gt;find(&apos;A&apos;, 123);
	
	$a-&amp;gt;setB($b);
	
	$em-&amp;gt;detach($a);
	
	$em-&amp;gt;detach($b);
	
	$b = $em-&amp;gt;merge($b); &lt;span class=&quot;code-comment&quot;&gt;// notice that $b now is merged
&lt;/span&gt;	
	$a = $em-&amp;gt;merge($a); &lt;span class=&quot;code-comment&quot;&gt;//  hangs as it creates the proxy &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; $b and tries to load a though __load even though $b is already managed&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Couple of possible issues in the following code from doMerge:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($assoc2[&apos;type&apos;] &amp;amp; ClassMetadata::TO_ONE) {
                        $other = $prop-&amp;gt;getValue($entity);
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($other === &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;) {
                            $prop-&amp;gt;setValue($managedCopy, &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;);
                        } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($other &lt;span class=&quot;code-keyword&quot;&gt;instanceof&lt;/span&gt; Proxy &amp;amp;&amp;amp; !$other-&amp;gt;__isInitialized__) {
                            &lt;span class=&quot;code-comment&quot;&gt;// &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; not merge fields marked lazy that have not been fetched.
&lt;/span&gt;                            &lt;span class=&quot;code-keyword&quot;&gt;continue&lt;/span&gt;;
                        } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ( ! $assoc2[&apos;isCascadeMerge&apos;]) {
                            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getEntityState($other, self::STATE_DETACHED) !== self::STATE_MANAGED) {
                                $targetClass = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;em-&amp;gt;getClassMetadata($assoc2[&apos;targetEntity&apos;]);
                                $relatedId = $targetClass-&amp;gt;getIdentifierValues($other);

                                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($targetClass-&amp;gt;subClasses) {
                                    $other = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;em-&amp;gt;find($targetClass-&amp;gt;name, $relatedId);
                                } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
                                    $other = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;em-&amp;gt;getProxyFactory()-&amp;gt;getProxy($assoc2[&apos;targetEntity&apos;], $relatedId);
                                    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;registerManaged($other, $relatedId, array());
                                }
                            }
                            $prop-&amp;gt;setValue($managedCopy, $other);
                        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;
     $relatedId = $targetClass-&amp;gt;getIdentifierValues($other);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;$relatedId is emply as the detached $other was never flushed. It should never be used to add this entity to the identityMap ($this-&amp;gt;registerManaged($other, $relatedId, array())&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;

&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;
$other = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;em-&amp;gt;getProxyFactory()-&amp;gt;getProxy($assoc2[&apos;targetEntity&apos;], $relatedId);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This should never use the proxy factory for new detached entities as they are already merged back ($b). This method seems to not have any means to find managed $b.&lt;/p&gt;

&lt;p&gt;If $b = $em-&amp;gt;merge($b); was not called, the method would probably have worked but I think it is not right to rely on that calling or not calling certain methods or their order.&lt;/p&gt;


</description>
                <environment></environment>
            <key id="14798">DDC-2409</key>
            <summary>Merge operation tries to add new detached entities to indentity map and load them as proxies</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="deatheriam">Oleg Namaka</reporter>
                        <labels>
                    </labels>
                <created>Mon, 22 Apr 2013 17:58:56 +0000</created>
                <updated>Sun, 5 May 2013 14:02:44 +0000</updated>
                    <resolved>Wed, 1 May 2013 09:01:46 +0000</resolved>
                            <version>2.3.1</version>
                                <fixVersion>2.4</fixVersion>
                <fixVersion>2.3.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20139" author="beberlei" created="Wed, 1 May 2013 09:01:46 +0000"  >&lt;p&gt;Merged Fabios Pull Request&lt;/p&gt;</comment>
                    <comment id="20144" author="deatheriam" created="Wed, 1 May 2013 12:14:36 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/655&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/655&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2407] AbstractExporter _getIdGeneratorTypeString does not know about the UUID generator</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2407</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Shouldn&apos;t the AbstractExporter-&amp;gt;_getIdGeneratorTypeString() method also know about the UUID generator ?&lt;/p&gt;</description>
                <environment></environment>
            <key id="14793">DDC-2407</key>
            <summary>AbstractExporter _getIdGeneratorTypeString does not know about the UUID generator</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jeelo">Jeroen</reporter>
                        <labels>
                    </labels>
                <created>Sat, 20 Apr 2013 05:50:21 +0000</created>
                <updated>Sat, 20 Apr 2013 08:25:57 +0000</updated>
                    <resolved>Sat, 20 Apr 2013 08:25:57 +0000</resolved>
                            <version>2.3.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20072" author="beberlei" created="Sat, 20 Apr 2013 08:25:57 +0000"  >&lt;p&gt;Fixed for 2.4&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2396] [GH-646] Oracle Pagination bug when ordering is present</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2396</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 raykolbe:&lt;/p&gt;

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

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

&lt;p&gt;Please reference &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; and &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1958#comment-19969&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1958#comment-19969&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14772">DDC-2396</key>
            <summary>[GH-646] Oracle Pagination bug when ordering is present</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Apr 2013 20:35:23 +0000</created>
                <updated>Sun, 14 Apr 2013 08:54:03 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 08:54:03 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19973" author="doctrinebot" created="Wed, 10 Apr 2013 17:49:38 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-646&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/646&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/646&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2392] [GH-644] Fixed typos</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2392</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 pborreli:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14765">DDC-2392</key>
            <summary>[GH-644] Fixed typos</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, 6 Apr 2013 14:16:11 +0000</created>
                <updated>Sat, 6 Apr 2013 14:50:28 +0000</updated>
                    <resolved>Sat, 6 Apr 2013 14:50:28 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2390] Remove Parser and SQLWalker dependency on Query</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2390</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Query is too powerful to be available in Parser and SQLWalker, because it may lead to accessing data that changes on subsequent runs of a query that is cached.&lt;/p&gt;

&lt;p&gt;Idea is to introduce a MetadataBag that contains only the values that are allowed to be accessed.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14759">DDC-2390</key>
            <summary>Remove Parser and SQLWalker dependency on Query</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Apr 2013 19:35:02 +0000</created>
                <updated>Thu, 4 Apr 2013 19:35:02 +0000</updated>
                                                    <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2384] [GH-639] Added abillity to use metacolumn as indexBy</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2384</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/639&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/639&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Added ability to use meta column as indexBy. Useful if association entities is widely used. &lt;br/&gt;
Replace #204 PR&lt;/p&gt;</description>
                <environment></environment>
            <key id="14749">DDC-2384</key>
            <summary>[GH-639] Added abillity to use metacolumn as indexBy</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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, 2 Apr 2013 08:08:59 +0000</created>
                <updated>Fri, 10 May 2013 06:53:44 +0000</updated>
                    <resolved>Fri, 10 May 2013 06:53:44 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20265" author="doctrinebot" created="Fri, 10 May 2013 06:53:32 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-639&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/639&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/639&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2369] [GH-630] Hotfix for DDC-2359</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2369</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 Ocramius:&lt;/p&gt;

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

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

&lt;p&gt;`Doctrine\ORM\Mapping\ClassMetadataFactory#wakeupReflection` is called twice as of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2359&quot; title=&quot;ClassMetadataFactory::wakeupReflection() is called twice&quot;&gt;&lt;del&gt;DDC-2359&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14723">DDC-2369</key>
            <summary>[GH-630] Hotfix for DDC-2359</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 24 Mar 2013 18:42:28 +0000</created>
                <updated>Sun, 24 Mar 2013 19:23:57 +0000</updated>
                    <resolved>Sun, 24 Mar 2013 19:23:57 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19890" author="beberlei" created="Sun, 24 Mar 2013 18:42:34 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-630&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/630&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/630&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19892" author="beberlei" created="Sun, 24 Mar 2013 19:23:40 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-630&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/630&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/630&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2366] [GH-627] update document on Doctrine cache provider</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2366</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 chuanma:&lt;/p&gt;

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

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

&lt;p&gt;A number of methods have been deleted long time ago. But they still show up on the document page.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/caching.html#deleting&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/caching.html#deleting&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/caching.html#counting&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/caching.html#counting&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I checked source code. Most of the methods don&apos;t exist. They are better to be removed from the doc. I tried to use those functions and was surprised that they didn&apos;t exist.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14718">DDC-2366</key>
            <summary>[GH-627] update document on Doctrine cache provider</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, 22 Mar 2013 22:50:11 +0000</created>
                <updated>Sun, 24 Mar 2013 20:22:32 +0000</updated>
                    <resolved>Sun, 24 Mar 2013 20:22:31 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19893" author="beberlei" created="Sun, 24 Mar 2013 20:22:26 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-627&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/627&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/627&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2360] [GH-622] Import EntityManager from proper namespace</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2360</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 hrubi:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14710">DDC-2360</key>
            <summary>[GH-622] Import EntityManager from proper namespace</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, 21 Mar 2013 14:57:59 +0000</created>
                <updated>Wed, 1 May 2013 12:43:56 +0000</updated>
                    <resolved>Wed, 1 May 2013 12:43:56 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19880" author="beberlei" created="Thu, 21 Mar 2013 16:31:30 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-622&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/622&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/622&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2359] ClassMetadataFactory::wakeupReflection() is called twice</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2359</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;ClassMetadataFactory::wakeupReflection() is called in Common\...\AbstractClassMetadataFactory::loadMetadata() at the end of the method. A few lines after that ORM\...\ClassMetadatafactory::doLoadMeadata() is called, where wakeupReflection() was already called. I think this has been overlooked during the refactoring of the factories. I think the call in doLoadMetadata() is redundant..&lt;/p&gt;</description>
                <environment></environment>
            <key id="14707">DDC-2359</key>
            <summary>ClassMetadataFactory::wakeupReflection() is called twice</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="dershao">Stefan Kleff</reporter>
                        <labels>
                    </labels>
                <created>Wed, 20 Mar 2013 14:01:27 +0000</created>
                <updated>Sun, 24 Mar 2013 19:24:09 +0000</updated>
                    <resolved>Sun, 24 Mar 2013 19:24:09 +0000</resolved>
                            <version>Git Master</version>
                <version>2.3.2</version>
                                <fixVersion>2.4</fixVersion>
                                <component>Mapping Drivers</component>
                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19891" author="ocramius" created="Sun, 24 Mar 2013 18:51:50 +0000"  >&lt;p&gt;Fix at &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2369&quot; title=&quot;[GH-630] Hotfix for DDC-2359&quot;&gt;&lt;del&gt;DDC-2369&lt;/del&gt;&lt;/a&gt; - &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/630&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/630&lt;/a&gt; &lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2358] [GH-621] [doc] adding some more doc and examples for lifecycle event listeners and subscribers</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2358</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 dbu:&lt;/p&gt;

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

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

&lt;p&gt;as requested in &lt;a href=&quot;https://github.com/symfony/symfony-docs/pull/2301&quot; class=&quot;external-link&quot;&gt;https://github.com/symfony/symfony-docs/pull/2301&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14705">DDC-2358</key>
            <summary>[GH-621] [doc] adding some more doc and examples for lifecycle event listeners and subscribers</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="dbu">David Buchmann</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 Mar 2013 23:46:58 +0000</created>
                <updated>Sat, 6 Apr 2013 15:05:08 +0000</updated>
                    <resolved>Sat, 6 Apr 2013 15:05:08 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2356] [GH-619] [DDC-2090] Fix MultiTableUpdateExecutor with query cache</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2356</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/619&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/619&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-2090&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2090&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14700">DDC-2356</key>
            <summary>[GH-619] [DDC-2090] Fix MultiTableUpdateExecutor with query cache</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, 17 Mar 2013 20:06:27 +0000</created>
                <updated>Sun, 17 Mar 2013 20:39:58 +0000</updated>
                    <resolved>Sun, 17 Mar 2013 20:39:54 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19868" author="beberlei" created="Sun, 17 Mar 2013 20:35:40 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-619&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/619&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/619&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19869" author="fabio.bat.silva" created="Sun, 17 Mar 2013 20:39:58 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/60b8bc63a1a4819cf112cfbbc7cca06b5792aba6&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/60b8bc63a1a4819cf112cfbbc7cca06b5792aba6&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2355] [GH-618] [DDC-2188] Fix arithmetic priority</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2355</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/618&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/618&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Hi guys,&lt;/p&gt;

&lt;p&gt;This patch fix &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2188&quot; title=&quot;DQL arithmetic priority is not considered in expression &amp;#39;a/(b*c)&amp;#39;&quot;&gt;&lt;del&gt;DDC-2188&lt;/del&gt;&lt;/a&gt;(&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2188&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2188&lt;/a&gt;),&lt;br/&gt;
Not sure if it could be considered a BC break.&lt;/p&gt;

&lt;p&gt;Cheers&lt;/p&gt;</description>
                <environment></environment>
            <key id="14699">DDC-2355</key>
            <summary>[GH-618] [DDC-2188] Fix arithmetic priority</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, 16 Mar 2013 17:41:27 +0000</created>
                <updated>Sat, 6 Apr 2013 14:57:44 +0000</updated>
                    <resolved>Sat, 6 Apr 2013 14:57:44 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2345] convertObjectParameterToScalarValue() raises a notice</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2345</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In &lt;tt&gt;Doctrine\ORM\AbstractQuery.php&lt;/tt&gt;, the method &lt;tt&gt;convertObjectParameterToScalarValue()&lt;/tt&gt; can raise a Notice.&lt;br/&gt;
This code:&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;
$value = $values[$class-&amp;gt;getSingleIdentifierFieldName()];
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;should be changed in this one:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (isset($values[$class-&amp;gt;getSingleIdentifierFieldName()])) {
    $value = $values[$class-&amp;gt;getSingleIdentifierFieldName()];
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; </description>
                <environment></environment>
            <key id="14685">DDC-2345</key>
            <summary>convertObjectParameterToScalarValue() raises a notice</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="garak">Massimiliano Arione</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Mar 2013 12:45:46 +0000</created>
                <updated>Wed, 1 May 2013 17:49:00 +0000</updated>
                    <resolved>Wed, 1 May 2013 17:49:00 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19827" author="ocramius" created="Tue, 12 Mar 2013 12:50:03 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=garak&quot; class=&quot;user-hover&quot; rel=&quot;garak&quot;&gt;Massimiliano Arione&lt;/a&gt; the current DQL implementation doesn&apos;t allow you to bind composite key identifiers as parameters, thus you will never reach that piece of code.&lt;/p&gt;

&lt;p&gt;A test would be needed for this case.&lt;/p&gt;</comment>
                    <comment id="19828" author="garak" created="Tue, 12 Mar 2013 12:58:28 +0000"  >&lt;p&gt;Unfortunately, I&apos;m not really a Doctrine guru.&lt;br/&gt;
I can tell you that I&apos;m getting that notice, using Sortable behavior with Symfony2.&lt;br/&gt;
This is a partial error stack:&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;1 in (...)/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 282

2 at ErrorHandler -&amp;gt;handle (&apos;8&apos;, &apos;Undefined index: id&apos;, &apos;(...)/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php&apos;, &apos;282&apos;, array(&apos;value&apos; =&amp;gt; object(MyEntity), &apos;class&apos; =&amp;gt; object(ClassMetadata), &apos;values&apos; =&amp;gt; array()))

3 in (...)/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 282
at AbstractQuery -&amp;gt;convertObjectParameterToScalarValue (object(MyEntity))

4 in (...)/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 260
at AbstractQuery -&amp;gt;processParameterValue (object(MyEntity))

5 in (...)/vendor/doctrine/orm/lib/Doctrine/ORM/Query.php at line 285
at Query -&amp;gt;processParameterMappings (array(&apos;group__1&apos; =&amp;gt; array(&apos;0&apos;)))

6 in (...)/vendor/doctrine/orm/lib/Doctrine/ORM/Query.php at line 258
at Query -&amp;gt;_doExecute ()

7 in (...)/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 737
at AbstractQuery -&amp;gt;execute (&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;, &apos;1&apos;)

8 in (...)/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 538
at AbstractQuery -&amp;gt;getResult ()

9 in (...)/vendor/gedmo/doctrine-extensions/lib/Gedmo/Sortable/SortableListener.php at line 410
at SortableListener -&amp;gt;getMaxPosition (object(EntityManager), object(ClassMetadata), array(&apos;position&apos; =&amp;gt; &apos;rank&apos;, &apos;groups&apos; =&amp;gt; array(&apos;my_entity&apos;), &apos;useObjectClass&apos; =&amp;gt; &apos;Meeting\GestioneBundle\Entity\MyRelatedEntity&apos;), object(MyRelatedEntity))

10 in (...)/vendor/gedmo/doctrine-extensions/lib/Gedmo/Sortable/SortableListener.php at line 114
at SortableListener -&amp;gt;prePersist (object(LifecycleEventArgs))

11 in (...)/vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php at line 61
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="19829" author="ocramius" created="Tue, 12 Mar 2013 13:19:38 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=garak&quot; class=&quot;user-hover&quot; rel=&quot;garak&quot;&gt;Massimiliano Arione&lt;/a&gt; having a composite primary key?&lt;/p&gt;</comment>
                    <comment id="19830" author="garak" created="Tue, 12 Mar 2013 13:25:51 +0000"  >&lt;p&gt;Nope, just a plain &quot;id&quot;.&lt;/p&gt;</comment>
                    <comment id="20170" author="beberlei" created="Wed, 1 May 2013 17:49:00 +0000"  >&lt;p&gt;Fixed in 2.4&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2334] [GH-602] Added $isIdentifierColumn documentation</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2334</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 alex88:&lt;/p&gt;

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

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

&lt;p&gt;I&apos;ve added the documentation of the argument $isIdentifierColumn since in case of foreign composite keys it doesn&apos;t&#65533;&#65533;hydrate more then one row.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14669">DDC-2334</key>
            <summary>[GH-602] Added $isIdentifierColumn documentation</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, 6 Mar 2013 09:49:18 +0000</created>
                <updated>Tue, 12 Mar 2013 18:31:15 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 18:31:15 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19839" author="beberlei" created="Tue, 12 Mar 2013 18:30:42 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-602&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/602&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/602&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2333] [GH-601] Add &apos;contains&apos; comparison</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2333</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/601&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/601&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;As mentioned by @stof in doctrine/collections#5, the &apos;contains&apos; comparison for matching collections should also be added to the ORM. &lt;/p&gt;

&lt;p&gt;The first commit is only present in this PR because the doctrine/collections 1.0 release does not contain the recent addition. It should be removed/altered after a new version has been tagged, I think?&lt;/p&gt;</description>
                <environment></environment>
            <key id="14667">DDC-2333</key>
            <summary>[GH-601] Add &apos;contains&apos; comparison</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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, 5 Mar 2013 14:13:31 +0000</created>
                <updated>Tue, 12 Mar 2013 18:38:48 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 18:38:33 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19841" author="beberlei" created="Tue, 12 Mar 2013 18:38:24 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-601&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/601&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/601&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2330] [GH-599] Removed unnecessary &quot;&lt;?php&quot; from the docs</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2330</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 alexcarol:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14659">DDC-2330</key>
            <summary>[GH-599] Removed unnecessary &quot;&lt;?php&quot; from the docs</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, 3 Mar 2013 22:18:31 +0000</created>
                <updated>Mon, 4 Mar 2013 22:39:09 +0000</updated>
                    <resolved>Mon, 4 Mar 2013 22:39:09 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19803" author="beberlei" created="Mon, 4 Mar 2013 22:39:09 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-599&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/599&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/599&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2327] [GH-596] Missing link to a cookbook in the docs</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2327</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/596&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/596&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;The cookbook existed in the docs but there was no link to it in the docs.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14648">DDC-2327</key>
            <summary>[GH-596] Missing link to a cookbook in the docs</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, 1 Mar 2013 14:17:25 +0000</created>
                <updated>Mon, 4 Mar 2013 22:18:56 +0000</updated>
                    <resolved>Mon, 4 Mar 2013 22:18:56 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19800" author="beberlei" created="Mon, 4 Mar 2013 22:18:40 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-596&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/596&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/596&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2326] [GH-595] Fixed broken code block in documentation</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2326</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/595&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/595&lt;/a&gt;&lt;/p&gt;

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

</description>
                <environment></environment>
            <key id="14647">DDC-2326</key>
            <summary>[GH-595] Fixed broken code block in documentation</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, 1 Mar 2013 14:11:47 +0000</created>
                <updated>Tue, 12 Mar 2013 18:32:21 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 18:32:20 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19840" author="beberlei" created="Tue, 12 Mar 2013 18:31:56 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-595&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/595&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/595&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2320] [GH-591] Remove dead code</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2320</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 Aitboudad:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14551">DDC-2320</key>
            <summary>[GH-591] Remove dead code</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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, 26 Feb 2013 00:03:51 +0000</created>
                <updated>Tue, 12 Mar 2013 18:52:52 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 18:52:52 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2313] Deep clone for DBAL QueryBuilder</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2313</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This is basically a duplicate of another issue I stumbled across lately but cannot find here again. It added a __clone() function to the ORM QueryBuilder to allow this use case:&lt;br/&gt;
Create a base query and derive two different queries from it.&lt;/p&gt;

&lt;p&gt;I adopted the code for the DBAL QueryBuilder which is suffering the same issue (e.g. expressions were not cloned but shared between instances). The code is tested at least for my limited use case.&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;
    /**
     * Deep clone of all expression objects in the SQL parts.
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; void
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __clone()
    {
        foreach ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;sqlParts as $part =&amp;gt; $elements) {
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (is_array($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;sqlParts[$part])) {
                foreach ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;sqlParts[$part] as $idx =&amp;gt; $element) {
                    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (is_object($element)) {
                        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;sqlParts[$part][$idx] = clone $element;
                    }
                }
            } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (is_object($elements)) {
                $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;sqlParts[$part] = clone $elements;
            }
        }

        $params = array();

        foreach ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;params as $param) {
            $params[] = clone $param;
        }

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;params = $params;
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14541">DDC-2313</key>
            <summary>Deep clone for DBAL QueryBuilder</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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="tcm">Tim Mundt</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Feb 2013 22:33:34 +0000</created>
                <updated>Tue, 18 Jun 2013 07:10:36 +0000</updated>
                    <resolved>Tue, 18 Jun 2013 07:10:36 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20462" author="tcm" created="Mon, 3 Jun 2013 06:30:45 +0000"  >&lt;p&gt;Thanks for adding the code tags. Just updated my doctrine to 2.4-RC1 and did not find this in there. Would be nice to see this in the new version. Any obstacles I could be of help with?&lt;/p&gt;</comment>
                    <comment id="20463" author="ocramius" created="Mon, 3 Jun 2013 07:18:39 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=tcm&quot; class=&quot;user-hover&quot; rel=&quot;tcm&quot;&gt;Tim Mundt&lt;/a&gt;, there&apos;s an open PR at &lt;a href=&quot;https://github.com/doctrine/dbal/pull/327&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/327&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20591" author="beberlei" created="Tue, 18 Jun 2013 07:10:36 +0000"  >&lt;p&gt;Fixed in 2.4&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                                <inwardlinks description="is duplicated by">
                            <issuelink>
            <issuekey id="15017">DBAL-537</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2312] [GH-586] Fix EntityManager doc</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2312</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 jsjohns:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14540">DDC-2312</key>
            <summary>[GH-586] Fix EntityManager doc</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, 21 Feb 2013 22:28:59 +0000</created>
                <updated>Thu, 21 Feb 2013 22:57:34 +0000</updated>
                    <resolved>Thu, 21 Feb 2013 22:57:34 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19671" author="beberlei" created="Thu, 21 Feb 2013 22:57:05 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-586&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/586&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/586&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2311] ManyToManyPersister fails to delete when entity uses FK ID</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2311</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;ManyToManyPersister::getDeleteSQLParameters assumes $srcColumn contains a field name; doesn&apos;t handle association case.&lt;/p&gt;

&lt;p&gt;ManyToManyPerister.php, lines 204-209:&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-comment&quot;&gt;// Composite identifier
&lt;/span&gt;$sourceClass = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getClassMetadata($mapping[&apos;sourceEntity&apos;]);
foreach ($mapping[&apos;relationToSourceKeyColumns&apos;] as $relColumn =&amp;gt; $srcColumn) {
   $params[] = $identifier[$sourceClass-&amp;gt;fieldNames[$srcColumn]];
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14514">DDC-2311</key>
            <summary>ManyToManyPersister fails to delete when entity uses FK ID</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="chrisrichard">Chris Richard</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Feb 2013 18:08:00 +0000</created>
                <updated>Tue, 16 Apr 2013 18:16:30 +0000</updated>
                    <resolved>Tue, 16 Apr 2013 18:16:30 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19670" author="fabio.bat.silva" created="Thu, 21 Feb 2013 21:12:28 +0000"  >&lt;p&gt;Hi Chris,&lt;/p&gt;

&lt;p&gt;Could you try to add a failing test case please ?&lt;/p&gt;

&lt;p&gt;Cheers.&lt;/p&gt;</comment>
                    <comment id="20034" author="fabio.bat.silva" created="Tue, 16 Apr 2013 18:16:30 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/cef20890dc75c11880827226e25f3fc6d5d66127&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/cef20890dc75c11880827226e25f3fc6d5d66127&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

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

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

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

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

&lt;p&gt;I&apos;ve included my test case sandbox, which references ../../../../autoload.php to load Doctrine. This was tested against doctrine2/master as of today.&lt;/p&gt;</description>
                <environment>PHP 5.4 - IIS 7.0</environment>
            <key id="14506">DDC-2306</key>
            <summary>Lazy loading associated entity&apos;s property causes identity loss when another association is set to fetch=&quot;EAGER&quot;</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="wschalle">William Schaller</reporter>
                        <labels>
                        <label>orm</label>
                        <label>proxy</label>
                        <label>unitofwork</label>
                    </labels>
                <created>Wed, 20 Feb 2013 05:40:54 +0000</created>
                <updated>Tue, 26 Feb 2013 08:27:25 +0000</updated>
                    <resolved>Tue, 26 Feb 2013 08:27:25 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due>Fri, 22 Feb 2013 00:00:00 +0000</due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19573" author="ocramius" created="Thu, 21 Feb 2013 01:29:19 +0000"  >&lt;p&gt;I&apos;ve created a branch with a fix at &lt;a href=&quot;https://github.com/Ocramius/doctrine2/compare/hotfix;DDC-2306&quot; class=&quot;external-link&quot;&gt;https://github.com/Ocramius/doctrine2/compare/hotfix;DDC-2306&lt;/a&gt;&lt;/p&gt;

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

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

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

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

<item>
            <title>[DDC-2304] [GH-583] accept more than 2 parameters in CONCAT function</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2304</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 broncha:&lt;/p&gt;

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

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

&lt;p&gt;The DBAL Platform supports more then 2 parameters but the ConcatFunction only validates 2 parameters to CONCAT. This commit allows to pass more than 2 parameters to CONCAT. Also this change would require that `getConcatExpression` accept array as a parameter. I have opened a pull request for that as well.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14498">DDC-2304</key>
            <summary>[GH-583] accept more than 2 parameters in CONCAT function</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, 19 Feb 2013 15:47:22 +0000</created>
                <updated>Tue, 12 Mar 2013 19:01:30 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 19:01:19 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2294] [GH-579] Unit tests: cleanup of outdated / unused / commented out code</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2294</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/579&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/579&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Many methods in unit tests were unused, in particular in mocks, where methods overriding in the past were not overriding anything anymore.&lt;/p&gt;

&lt;p&gt;Some commented out code was referring to features that seem to have been removed years ago, so I removed it as well.&lt;/p&gt;

&lt;p&gt;`HydratorMockStatement::bindParam()` was adding extra parameter that its parent did not define, and that were never used, so I removed them as well.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14477">DDC-2294</key>
            <summary>[GH-579] Unit tests: cleanup of outdated / unused / commented out code</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, 12 Feb 2013 15:56:25 +0000</created>
                <updated>Tue, 12 Mar 2013 19:00:56 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 19:00:56 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2291] [GH-576] Update docs/en/reference/batch-processing.rst</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2291</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 acasademont:&lt;/p&gt;

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

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

&lt;p&gt;If you have only $batchSize - 1 rows (amongst other cases), the entities are never flushed, you need a final flush outside the loop.&lt;/p&gt;

&lt;p&gt;In the bulk insert you should also need a final flush if the number of entities inserted is not a multiple of the $batchSize.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14471">DDC-2291</key>
            <summary>[GH-576] Update docs/en/reference/batch-processing.rst</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, 8 Feb 2013 15:32:33 +0000</created>
                <updated>Mon, 11 Feb 2013 15:51:13 +0000</updated>
                    <resolved>Mon, 11 Feb 2013 15:51:13 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19530" author="beberlei" created="Mon, 11 Feb 2013 15:51:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-576&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/576&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/576&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2289] [GH-575] Added YAML configuration example for &quot;Simple Derived Identity&quot; in Docs</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2289</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 naitsirch:&lt;/p&gt;

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

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

&lt;p&gt;I have added a missing YAML configuration example to the tutorial. Because I needed it for myself &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;

&lt;p&gt;See &lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/composite-primary-keys.html#use-case-2-simple-derived-identity&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/composite-primary-keys.html#use-case-2-simple-derived-identity&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I hope the YAML definition is correct.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14469">DDC-2289</key>
            <summary>[GH-575] Added YAML configuration example for &quot;Simple Derived Identity&quot; in Docs</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, 8 Feb 2013 10:28:23 +0000</created>
                <updated>Mon, 11 Feb 2013 15:50:26 +0000</updated>
                    <resolved>Mon, 11 Feb 2013 15:50:26 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19529" author="beberlei" created="Mon, 11 Feb 2013 15:50:13 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-575&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/575&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/575&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2276] [GH-569] Hotfix/pre flush event args params</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2276</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 Ocramius:&lt;/p&gt;

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

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

&lt;p&gt;As reported by a user on IRC, the `PreFlushEventArgs` object was built with incorrect parameters. this fix solves the problem by typehinting the constructor.&lt;/p&gt;

&lt;p&gt;Tests aren&apos;t really necessary since a lot of functional tests were simply broken because of this additional typehint.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14455">DDC-2276</key>
            <summary>[GH-569] Hotfix/pre flush event args params</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Feb 2013 19:50:50 +0000</created>
                <updated>Tue, 12 Feb 2013 23:40:41 +0000</updated>
                    <resolved>Tue, 12 Feb 2013 23:40:41 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19537" author="beberlei" created="Tue, 12 Feb 2013 23:39:53 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-569&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/569&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/569&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19538" author="fabio.bat.silva" created="Tue, 12 Feb 2013 23:40:41 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/719031f2effd2074d94c709b6b7311fb0773fb7f&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/719031f2effd2074d94c709b6b7311fb0773fb7f&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2274] [GH-567] Removed outdated methods in DatabasePlatformMock</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2274</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/567&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/567&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;`DatabasePlatformMock::getNativeDeclaration()` and `getPortableDeclaration()` do not override an existing method in `AbstractPlatform`.&lt;br/&gt;
I guess they are leftovers of a previous version, and should be removed.&lt;/p&gt;
</description>
                <environment></environment>
            <key id="14449">DDC-2274</key>
            <summary>[GH-567] Removed outdated methods in DatabasePlatformMock</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, 3 Feb 2013 01:54:16 +0000</created>
                <updated>Tue, 5 Feb 2013 15:10:48 +0000</updated>
                    <resolved>Tue, 5 Feb 2013 15:10:48 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19461" author="beberlei" created="Sun, 3 Feb 2013 04:03:32 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-567&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/567&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/567&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19472" author="fabio.bat.silva" created="Tue, 5 Feb 2013 15:10:48 +0000"  >&lt;p&gt;merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/ef1ed588b5db6f87399772f953bf8b6dc4d2556d&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/ef1ed588b5db6f87399772f953bf8b6dc4d2556d&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2273] [GH-566] Added missing return statement to AbstractCommand.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2273</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/566&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/566&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;The `AbstractCommand::execute()` method should return an `integer`, or `null`.&lt;/p&gt;

&lt;p&gt;Although in PHP, omitting the `return` statement is equivalent to returning `null`, it is recommended to put an explicit `return` to clearly differentiate it from `return void`.&lt;/p&gt;

&lt;p&gt;I&apos;ve added `return 0;` here, keeping the existent behavior.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14448">DDC-2273</key>
            <summary>[GH-566] Added missing return statement to AbstractCommand.</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, 3 Feb 2013 01:41:14 +0000</created>
                <updated>Tue, 5 Feb 2013 15:11:36 +0000</updated>
                    <resolved>Tue, 5 Feb 2013 15:11:36 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19462" author="beberlei" created="Sun, 3 Feb 2013 04:04:36 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-566&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/566&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/566&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19473" author="fabio.bat.silva" created="Tue, 5 Feb 2013 15:11:36 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/d3cbdfcafa3e8dbb1d3f7029f31eb6412855c097&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/d3cbdfcafa3e8dbb1d3f7029f31eb6412855c097&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2272] [GH-565] Removed an unused local variable.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2272</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/565&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/565&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;This PR removes an unused (redundant) local variable declaration.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14447">DDC-2272</key>
            <summary>[GH-565] Removed an unused local variable.</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, 3 Feb 2013 01:08:17 +0000</created>
                <updated>Tue, 5 Feb 2013 15:12:14 +0000</updated>
                    <resolved>Tue, 5 Feb 2013 15:12:14 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19463" author="beberlei" created="Sun, 3 Feb 2013 04:05:52 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-565&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/565&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/565&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19474" author="fabio.bat.silva" created="Tue, 5 Feb 2013 15:12:14 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/114827a4b32fe309519cf3f9bdfedb3599d52f37&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/114827a4b32fe309519cf3f9bdfedb3599d52f37&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2268] Lexer error using string functions inside CASE WHEN</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2268</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When using the CASE WHEN expression in DQL a Lexer error is thrown if the THEN condition uses a FunctionsReturningStrings function. For example, the following query is valid in SQL:&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-sql&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;SELECT&lt;/span&gt; t.*, CASE WHEN LENGTH(t.myfield) &amp;lt;&amp;gt; 0 THEN CONCAT(t.myfield, t.myfield2) ELSE t.myfield2 END as mycasefield &lt;span class=&quot;code-keyword&quot;&gt;FROM&lt;/span&gt; mytable AS t&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However, if the CONCAT function is used in DQL the exception is raised.&lt;/p&gt;</description>
                <environment>Windows 8 64bit, IIS Express 8, PHP 5.4.9</environment>
            <key id="14443">DDC-2268</key>
            <summary>Lexer error using string functions inside CASE WHEN</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="vecchia">Stefano</reporter>
                        <labels>
                        <label>dql</label>
                    </labels>
                <created>Sat, 2 Feb 2013 14:13:42 +0000</created>
                <updated>Sat, 2 Feb 2013 19:55:03 +0000</updated>
                    <resolved>Sat, 2 Feb 2013 19:55:02 +0000</resolved>
                            <version>2.3.2</version>
                                <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19454" author="fabio.bat.silva" created="Sat, 2 Feb 2013 19:55:03 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/1627fc95965a3e2e3894fcf7e524eb0eaa9d0ddd&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/1627fc95965a3e2e3894fcf7e524eb0eaa9d0ddd&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2266] [GH-562] Fix error in QueryBuilder example</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2266</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 vrana:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14435">DDC-2266</key>
            <summary>[GH-562] Fix error in QueryBuilder example</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</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>
                    </labels>
                <created>Wed, 30 Jan 2013 19:12:17 +0000</created>
                <updated>Tue, 5 Feb 2013 15:13:53 +0000</updated>
                    <resolved>Tue, 5 Feb 2013 15:13:53 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19451" author="beberlei" created="Sat, 2 Feb 2013 19:15:35 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-562&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/562&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/562&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19476" author="fabio.bat.silva" created="Tue, 5 Feb 2013 15:13:53 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/4651d92d634784d5d8d02af378afccb74935058c&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/4651d92d634784d5d8d02af378afccb74935058c&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2265] [GH-561] fix typo in the documentation</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2265</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 ftdebugger:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14434">DDC-2265</key>
            <summary>[GH-561] fix typo in the documentation</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="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, 30 Jan 2013 15:04:47 +0000</created>
                <updated>Tue, 5 Feb 2013 15:15:06 +0000</updated>
                    <resolved>Tue, 5 Feb 2013 15:15:06 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19452" author="beberlei" created="Sat, 2 Feb 2013 19:15:54 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-561&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/561&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/561&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19477" author="fabio.bat.silva" created="Tue, 5 Feb 2013 15:15:06 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/abc3ba0c7e039c469fb3f3ed96bdd4393085bfdb&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/abc3ba0c7e039c469fb3f3ed96bdd4393085bfdb&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2256] [GH-554] Fixed ObjectHydrator when namespace alias is given.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2256</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 beregond:&lt;/p&gt;

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

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

&lt;p&gt;Fixes problem when executing native query:&lt;br/&gt;
```php&lt;br/&gt;
$rsm = new ResultSetMapping();&lt;/p&gt;

&lt;p&gt;$rsm-&amp;gt;addEntityResult(&apos;DbBundle:Player&apos;, &apos;p&apos;);&lt;br/&gt;
$rsm-&amp;gt;addFieldResult(&apos;p&apos;, &apos;id&apos;, &apos;id&apos;);&lt;br/&gt;
$rsm-&amp;gt;addFieldResult(&apos;p&apos;, &apos;name&apos;, &apos;name&apos;);&lt;/p&gt;

&lt;p&gt;$rsm-&amp;gt;addJoinedEntityResult(&apos;DbBundle:User&apos;, &apos;u&apos;, &apos;p&apos;, &apos;user&apos;);&lt;br/&gt;
$rsm-&amp;gt;addFieldResult(&apos;u&apos;, &apos;user_id&apos;, &apos;id&apos;);&lt;/p&gt;

&lt;p&gt;$em-&amp;gt;createNativeQuery(&apos;...&apos;, $rsm);&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;Hydrator couldn&apos;t find cached metadata, when &quot;joined entity result&quot; class name wasn&apos;t fully qualified name (as in the example above).&lt;/p&gt;
</description>
                <environment></environment>
            <key id="14409">DDC-2256</key>
            <summary>[GH-554] Fixed ObjectHydrator when namespace alias is given.</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, 24 Jan 2013 15:02:01 +0000</created>
                <updated>Tue, 5 Feb 2013 15:21:00 +0000</updated>
                    <resolved>Tue, 5 Feb 2013 15:21:00 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19453" author="beberlei" created="Sat, 2 Feb 2013 19:18:06 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-554&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/554&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/554&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19479" author="fabio.bat.silva" created="Tue, 5 Feb 2013 15:21:00 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/dea37ed9e84922f37ef21740671e5e29c94454d3&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/dea37ed9e84922f37ef21740671e5e29c94454d3&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2252] Trying to delete ManyToMany relatrionship with composite keys.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2252</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;When i try to delete some entities attached to an entity I&apos;ve got the following message.&lt;/p&gt;

&lt;p&gt;My entity is specified as follow.&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\Id
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Entity\User\Account&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;memberships&quot;&lt;/span&gt;)
     * @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;uid&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;uid&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $userAccount;

    /**
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Entity\Merchant\Account&quot;&lt;/span&gt;)
     * @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;mch_accountid&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;accountid&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $merchantAccount;

    /**
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;datetime&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;date&quot;&lt;/span&gt;)
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; datetime
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $date;

    /**
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt;&quot;&lt;/span&gt;)
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt;
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $administrator;

    /**
     * @ORM\ManyToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Entity\User\Privilege&quot;&lt;/span&gt;, indexBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;privilegeid&quot;&lt;/span&gt;)
     * @ORM\JoinTable(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;fsbackend.user_mch_account_privilege&quot;&lt;/span&gt;,
     *   joinColumns={
     *       @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;mch_accountid&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;mch_accountid&quot;&lt;/span&gt;),
     *       @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;uid&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;uid&quot;&lt;/span&gt;)
     *   },
     *   inverseJoinColumns={
     *       @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;privilegeid&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;privilegeid&quot;&lt;/span&gt;)
     *   }
     * )
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $privileges;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I delete the related entities&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;
    $membership-&amp;gt;getPrivileges()-&amp;gt;clear();

    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;persist($userAccount);
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;flush();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I tried on doctrine 2.1.7 and the last doctrine version and same thing happens.&lt;/p&gt;

&lt;p&gt;Please find attached the error log.&lt;/p&gt;</description>
                <environment>Debian&lt;br/&gt;
PHP 5.3.7</environment>
            <key id="14401">DDC-2252</key>
            <summary>Trying to delete ManyToMany relatrionship with composite keys.</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="yokoloko">Jeremie Tom tom</reporter>
                        <labels>
                    </labels>
                <created>Tue, 22 Jan 2013 17:12:40 +0000</created>
                <updated>Tue, 16 Apr 2013 18:15:56 +0000</updated>
                    <resolved>Tue, 16 Apr 2013 18:15:56 +0000</resolved>
                            <version>2.1.7</version>
                <version>2.3.2</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19355" author="ocramius" created="Tue, 22 Jan 2013 17:16:36 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=yokoloko&quot; class=&quot;user-hover&quot; rel=&quot;yokoloko&quot;&gt;Jeremie Tom tom&lt;/a&gt; is the schema validated by the cli tools?&lt;/p&gt;</comment>
                    <comment id="19356" author="yokoloko" created="Tue, 22 Jan 2013 19:13:05 +0000"  >&lt;p&gt;Yes it&apos;s validated by the cli tools, if you are talking about the orm:validate-schema command.&lt;/p&gt;</comment>
                    <comment id="19358" author="yokoloko" created="Wed, 23 Jan 2013 09:23:19 +0000"  >&lt;p&gt;I think the problem is that my @Id are entities.&lt;/p&gt;</comment>
                    <comment id="19359" author="ocramius" created="Wed, 23 Jan 2013 09:35:58 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=yokoloko&quot; class=&quot;user-hover&quot; rel=&quot;yokoloko&quot;&gt;Jeremie Tom tom&lt;/a&gt; can you abstract it away into a test? &lt;/p&gt;</comment>
                    <comment id="19360" author="yokoloko" created="Wed, 23 Jan 2013 13:05:08 +0000"  >&lt;p&gt;Here is my test case.&lt;/p&gt;

&lt;p&gt;I put it IN Doctrine\Test\ORMJT.&lt;br/&gt;
I don&apos;t really know if you need something else, please let met know.&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;
&amp;lt;?php

namespace Doctrine\Tests\ORMJT;

use Doctrine\ORM\Query;
use Doctrine\Common\Collections\ArrayCollection;

require_once __DIR__ . &apos;/../TestInit.php&apos;;

/**
 * Functional tests &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; the Single Table Inheritance mapping strategy.
 *
 * @author robo
 */
class AdvancedAssociationTest &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; \Doctrine\Tests\OrmFunctionalTestCase
{
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; function setUp() {
        parent::setUp();
        &lt;span class=&quot;code-keyword&quot;&gt;try&lt;/span&gt; {
            $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_schemaTool-&amp;gt;createSchema(array(
                $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getClassMetadata(&apos;Doctrine\Tests\ORMJT\User&apos;),
                $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getClassMetadata(&apos;Doctrine\Tests\ORMJT\MerchantAccount&apos;),
                $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getClassMetadata(&apos;Doctrine\Tests\ORMJT\Membership&apos;),
                $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getClassMetadata(&apos;Doctrine\Tests\ORMJT\Privilege&apos;)
            ));
        } &lt;span class=&quot;code-keyword&quot;&gt;catch&lt;/span&gt; (\Exception $e) {
            &lt;span class=&quot;code-comment&quot;&gt;// Swallow all exceptions. We &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; not test the schema tool here.
&lt;/span&gt;        }
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function testIssue()
    {
        $user = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; User;
        $merchantAccount = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; MerchantAccount;
        $privilege = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Privilege;
        $membership = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Membership($user, $merchantAccount);
        $membership-&amp;gt;addPrivilege($privilege);

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;persist($user);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;persist($merchantAccount);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;persist($privilege);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;flush();

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;persist($membership);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;flush();

        $membership-&amp;gt;getPrivileges()-&amp;gt;clear();

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;flush();

        &lt;span class=&quot;code-comment&quot;&gt;// Never reached
&lt;/span&gt;        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertTrue(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;);
    }
}


/**
 * @Entity
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;mch_account&quot;&lt;/span&gt;)
 */
class MerchantAccount
{
    /**
     * @Id @GeneratedValue
     * @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;bigint&quot;&lt;/span&gt;)
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; bigint $accountid
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $accountid;
}

/**
 * @Entity(repositoryClass=&lt;span class=&quot;code-quote&quot;&gt;&quot;Repository\User\PrivilegeRepository&quot;&lt;/span&gt;)
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;acl_privilege&quot;&lt;/span&gt;)
 */
class Privilege
{
    /**
     * @Id @GeneratedValue
     * @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;bigint&quot;&lt;/span&gt;)
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $privilegeid;
}

/**
 * @Entity
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;user_account&quot;&lt;/span&gt;)
 */
class User {
    /**
     * @Id @GeneratedValue
     * @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;bigint&quot;&lt;/span&gt;)
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $uid;

    /**
     * @OneToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Membership&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;userAccount&quot;&lt;/span&gt;, cascade={&lt;span class=&quot;code-quote&quot;&gt;&quot;persist&quot;&lt;/span&gt;})
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;uid&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;uid&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $memberships;

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct()
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;memberships = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; ArrayCollection;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getMemberships()
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;memberships;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function addMembership(Membership $membership)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;memberships[] = $membership;
    }
}

/**
 * @Entity
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;mch_account_member&quot;&lt;/span&gt;)
 * @HasLifecycleCallbacks
 */
class Membership
{
    /**
     * @Id
     * @ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;User&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;memberships&quot;&lt;/span&gt;)
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;uid&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;uid&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $userAccount;

    /**
     * @Id
     * @ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;MerchantAccount&quot;&lt;/span&gt;)
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;mch_accountid&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;accountid&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $merchantAccount;

    /**
     * @ManyToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Privilege&quot;&lt;/span&gt;, indexBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;privilegeid&quot;&lt;/span&gt;)
     * @JoinTable(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;user_mch_account_privilege&quot;&lt;/span&gt;,
     *   joinColumns={
     *       @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;mch_accountid&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;mch_accountid&quot;&lt;/span&gt;),
     *       @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;uid&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;uid&quot;&lt;/span&gt;)
     *   },
     *   inverseJoinColumns={
     *       @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;privilegeid&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;privilegeid&quot;&lt;/span&gt;)
     *   }
     * )
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $privileges;

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct(User $user, MerchantAccount $merchantAccount)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;userAccount = $user;
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;merchantAccount = $merchantAccount;
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;privileges = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; ArrayCollection();
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function addPrivilege($privilege)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;privileges[] = $privilege;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getPrivileges()
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;privileges;
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And i&apos;ve got 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;
1) Doctrine\Tests\ORMJT\AdvancedAssociationTest::testIssue
Exception: [PHPUnit_Framework_Error_Notice] Undefined index: mch_accountid
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="19361" author="ocramius" created="Wed, 23 Jan 2013 13:22:08 +0000"  >&lt;p&gt;Thank you so far, this makes it much easier to work with it!&lt;/p&gt;</comment>
                    <comment id="19417" author="yokoloko" created="Sat, 26 Jan 2013 11:59:02 +0000"  >&lt;p&gt;Interesting fact, if I only have one column in my jointable it works fine.&lt;/p&gt;

&lt;p&gt;eg. &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;
class Membership
     *   ....
     *   @JoinTable(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;user_mch_account_privilege&quot;&lt;/span&gt;,
     *       joinColumns={
     *           @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;uid&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;uid&quot;&lt;/span&gt;)
     *       }
     *   ....
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="19482" author="yokoloko" created="Thu, 7 Feb 2013 14:59:07 +0000"  >&lt;p&gt;Ok here is my two cents solution. passes the tests.&lt;/p&gt;</comment>
                    <comment id="19814" author="yokoloko" created="Tue, 5 Mar 2013 13:32:19 +0000"  >&lt;p&gt;Hi, any update on this issue?&lt;/p&gt;</comment>
                    <comment id="19815" author="ocramius" created="Tue, 5 Mar 2013 13:39:29 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=yokoloko&quot; class=&quot;user-hover&quot; rel=&quot;yokoloko&quot;&gt;Jeremie Tom tom&lt;/a&gt; will be checking this tomorrow&lt;/p&gt;</comment>
                    <comment id="19852" author="yokoloko" created="Thu, 14 Mar 2013 11:15:33 +0000"  >&lt;p&gt;Everything ok with the check?&lt;/p&gt;</comment>
                    <comment id="20033" author="fabio.bat.silva" created="Tue, 16 Apr 2013 18:15:56 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/cef20890dc75c11880827226e25f3fc6d5d66127&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/cef20890dc75c11880827226e25f3fc6d5d66127&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11375" name="AdvancedAssociationTest.php" size="4014" author="yokoloko" created="Wed, 23 Jan 2013 13:05:08 +0000" />
                    <attachment id="11374" name="jira-doctrine.txt" size="8974" author="yokoloko" created="Tue, 22 Jan 2013 17:12:40 +0000" />
                    <attachment id="11377" name="patch.diff" size="1381" author="yokoloko" created="Thu, 7 Feb 2013 14:59:55 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2247] [GH-551] [DDC-2234] FUNCTION() IS NULL comparison</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2247</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/551&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/551&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;This patch fix &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2234&quot; title=&quot;WHERE &amp;lt;&amp;lt;custom function&amp;gt;&amp;gt; IS NULL ... doesn&amp;#39;t work&quot;&gt;&lt;del&gt;DDC-2234&lt;/del&gt;&lt;/a&gt;: &lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2234&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2234&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14392">DDC-2247</key>
            <summary>[GH-551] [DDC-2234] FUNCTION() IS NULL comparison</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, 19 Jan 2013 01:25:43 +0000</created>
                <updated>Sun, 20 Jan 2013 11:32:47 +0000</updated>
                    <resolved>Sun, 20 Jan 2013 11:32:47 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19341" author="beberlei" created="Sun, 20 Jan 2013 11:30:10 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-551&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/551&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/551&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2234] WHERE &lt;&lt;custom function&gt;&gt; IS NULL ... doesn&apos;t work</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2234</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I want to run this query :&lt;/p&gt;

&lt;p&gt;SELECT ifnull(a.field1, a.field1) as name FROM table a WHERE ifnull(a.field1, a.field1) IS NULL&lt;/p&gt;

&lt;p&gt;But I get an doctrine exception :&lt;/p&gt;

&lt;p&gt;Doctrine\ORM\Query\QueryException&apos; with message &apos;&lt;span class=&quot;error&quot;&gt;&amp;#91;Syntax Error&amp;#93;&lt;/span&gt; line 0, col 518: Error: Expected Doctrine\ORM\Query\Lexer::T_IS, got &apos;(&apos;&apos; in /library/Doctrine/ORM/Query/QueryException.php:52&lt;/p&gt;

&lt;p&gt;If I don&apos;t use the IS NULL in my where clause it is working perfectly. &lt;/p&gt;

&lt;p&gt;I think this issue is related to : &lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1472&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1472&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14373">DDC-2234</key>
            <summary>WHERE &lt;&lt;custom function&gt;&gt; IS NULL ... doesn&apos;t work</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="david_mattei">David</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Jan 2013 08:46:39 +0000</created>
                <updated>Sun, 20 Jan 2013 11:32:57 +0000</updated>
                    <resolved>Sun, 20 Jan 2013 11:32:57 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2215] [GH-543] Make doctrine a Light-weight distribution package in Composer</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2215</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 carlosbuenosvinos:&lt;/p&gt;

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

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

&lt;p&gt;In order to save space and bandwidth when installing doctrine using Composer, I have added .gitattributes removing files and folders unnecessary when using doctrine as a dependecy.&lt;/p&gt;

&lt;p&gt;(extracted from &lt;a href=&quot;http://getcomposer.org/doc/02-libraries.md#light-weight-distribution-packages&quot; class=&quot;external-link&quot;&gt;http://getcomposer.org/doc/02-libraries.md#light-weight-distribution-packages&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Including the tests and other useless information like .travis.yml in distributed packages is not a good idea.&lt;/p&gt;

&lt;p&gt;The .gitattributes file is a git specific file like .gitignore also living at the root directory of your library. It overrides local and global configuration (.git/config and ~/.gitconfig respectively) when present and tracked by git.&lt;/p&gt;

&lt;p&gt;Use .gitattributes to prevent unwanted files from bloating the zip distribution packages.&lt;/p&gt;

&lt;p&gt;// .gitattributes&lt;br/&gt;
/Tests export-ignore&lt;br/&gt;
phpunit.xml.dist export-ignore&lt;br/&gt;
Resources/doc/ export-ignore&lt;br/&gt;
.travis.yml export-ignore&lt;br/&gt;
Test it by inspecting the zip file generated manually:&lt;/p&gt;

&lt;p&gt;git archive branchName --format zip -o file.zip&lt;/p&gt;

&lt;p&gt;Note: Files would be still tracked by git just not included in the distribution. This will only work for GitHub packages installed from dist (i.e. tagged releases) for now.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14335">DDC-2215</key>
            <summary>[GH-543] Make doctrine a Light-weight distribution package in Composer</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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, 28 Dec 2012 15:52:22 +0000</created>
                <updated>Sat, 19 Jan 2013 19:05:13 +0000</updated>
                    <resolved>Sat, 19 Jan 2013 19:05:13 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2214] extra single quotation in sql when using EntityRepository::findBy</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2214</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I&apos;m using symfony 2.1 with mysql.&lt;/p&gt;

&lt;p&gt;I have following code:&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;
$related = 
$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getDoctrine()-&amp;gt;getRepository(&apos;MyWebBundle:LineRelated&apos;)
-&amp;gt;findBy(array(&apos;line&apos; =&amp;gt; $lines), array(&apos;count&apos; =&amp;gt; &apos;DESC&apos;), 20);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;that generate the sql 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-sql&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;SELECT&lt;/span&gt; *
&lt;span class=&quot;code-keyword&quot;&gt;FROM&lt;/span&gt; line_related t0 
&lt;span class=&quot;code-keyword&quot;&gt;WHERE&lt;/span&gt; t0.line_id IN (&apos;6059&apos;, 126352, &apos;5677&apos;, &apos;6058&apos;) 
ORDER &lt;span class=&quot;code-keyword&quot;&gt;BY&lt;/span&gt; t0.count DESC 
LIMIT 20
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;please notice that the sql has extra single quotation around the number 6059,5677 and 6058. which make the sql very slow.&lt;/p&gt;

&lt;p&gt;I did a test, when using single quotation,the sql takes 300ms,when using without single quotation,the sql takes 1 ms.&lt;/p&gt;


</description>
                <environment></environment>
            <key id="14333">DDC-2214</key>
            <summary>extra single quotation in sql when using EntityRepository::findBy</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="scourgen">scourgen</reporter>
                        <labels>
                    </labels>
                <created>Wed, 26 Dec 2012 07:53:00 +0000</created>
                <updated>Wed, 12 Jun 2013 19:02:29 +0000</updated>
                    <resolved>Wed, 12 Jun 2013 19:02:29 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="19181" author="fabio.bat.silva" created="Wed, 26 Dec 2012 20:34:49 +0000"  >&lt;p&gt;Hi &lt;/p&gt;

&lt;p&gt;Could you please attach your entities or a failing test case ?&lt;/p&gt;

&lt;p&gt;Cheers&lt;/p&gt;</comment>
                    <comment id="19182" author="scourgen" created="Thu, 27 Dec 2012 04:40:42 +0000"  >&lt;p&gt;sure&lt;/p&gt;

&lt;p&gt;LineRelated.php :&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;
class LineRelated
{
    /**
     * @ORM\Id
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
     * @ORM\GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;AUTO&quot;&lt;/span&gt;)
     */
     &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

    /**
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Line&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;line_related&quot;&lt;/span&gt;)
     * @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;line_id&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;,nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
     */
     &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $line;
     
    /**
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;line_id_related&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $line_related;

    /**
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;smallint&quot;&lt;/span&gt;,nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
     */
     &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $count = 0;

###### get/set etc....... #######
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Line.php&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;
class Line
{
    /**
     * @ORM\Id
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
     * @ORM\GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;AUTO&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;
########## blablabla #############

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;my action:&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 right_line_relatedAction($line = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;, $title=&apos;&#30456;&#20851;&#32447;&#36335;&apos;)
    {

        $lines = $l-&amp;gt;getByUser($user, array());
&lt;span class=&quot;code-comment&quot;&gt;//anyway,$lines is an array,It has several elements,each element is an instance of LineEntity.
&lt;/span&gt;
        $related = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getDoctrine()-&amp;gt;getRepository(&apos;MyWebBundle:LineRelated&apos;)-&amp;gt;findBy(array(&apos;line&apos; =&amp;gt; $lines), array(&apos;count&apos; =&amp;gt; &apos;DESC&apos;), 20);
&lt;span class=&quot;code-comment&quot;&gt;//&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; findBy function generate the sql which is slow.
&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $related;
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="19184" author="fabio.bat.silva" created="Thu, 27 Dec 2012 19:41:37 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;How did you get this query string ?&lt;/p&gt;

&lt;p&gt;Repository#findBy does not quote the values,  It uses PDO:bindParam.&lt;br/&gt;
so the expected query string should be someting like : &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;
WHERE t0.line_id IN (?, ? ,?) 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I tried to reproduce but in my tests the generated Query binds the parameters as  &quot;PDO::PARAM_INT&quot;.&lt;/p&gt;

&lt;p&gt;I have added a test case. &lt;br/&gt;
Could you please can try to change it and make fails.&lt;/p&gt;


&lt;p&gt;Cheers&lt;/p&gt;</comment>
                    <comment id="19185" author="scourgen" created="Fri, 28 Dec 2012 06:02:41 +0000"  >&lt;p&gt;reproduced :&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 t0.id AS id1, t0.line_id_related AS line_id_related2, t0.count AS count3, t0.line_id AS line_id4 FROM line_related t0 WHERE t0.line_id IN (&apos;6059&apos;, 4851, &apos;6068&apos;, 126352, &apos;6060&apos;, &apos;1000000&apos;) ORDER BY t0.count DESC LIMIT 20
Parameters: [[&apos;6059&apos;, 4851, &apos;6068&apos;, 126352, &apos;6060&apos;, &apos;1000000&apos;]] 
[Hide runnable query]
Time: 234.53 ms [   Explain query ]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;let me have a look on what&apos;s going on&lt;/p&gt;</comment>
                    <comment id="19186" author="scourgen" created="Fri, 28 Dec 2012 06:10:15 +0000"  >&lt;p&gt;interesting. I&apos;ve dump(using ladybug_dump) the $lines,and I found out that when the element is a Proxies Object(Object(Proxies&amp;#95;&lt;em&gt;GC&lt;/em&gt;_\My\WebBundle\Entity\Line)),then the id of that Object will be with quoted,when the elememt is an Real Entity,then It will be without quote.&lt;/p&gt;

&lt;p&gt;for example,in my last comment, the parameters is [&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;6059&amp;#39;, 4851, &amp;#39;6068&amp;#39;, 126352, &amp;#39;6060&amp;#39;, &amp;#39;1000000&amp;#39;&amp;#93;&lt;/span&gt;] &lt;br/&gt;
the result of dumping $lines is :&lt;/p&gt;

&lt;p&gt;array(6)&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt;: object(Proxies&amp;#95;&lt;em&gt;CG&lt;/em&gt;_\Zuo\WebBundle\Entity\Line)&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: object(Zuo\WebBundle\Entity\Line)&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;: object(Proxies&amp;#95;&lt;em&gt;CG&lt;/em&gt;_\Zuo\WebBundle\Entity\Line)&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;: object(Zuo\WebBundle\Entity\Line)&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;4&amp;#93;&lt;/span&gt;: object(Proxies&amp;#95;&lt;em&gt;CG&lt;/em&gt;_\Zuo\WebBundle\Entity\Line)&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;5&amp;#93;&lt;/span&gt;: object(Proxies&amp;#95;&lt;em&gt;CG&lt;/em&gt;_\Zuo\WebBundle\Entity\Line)&lt;/p&gt;

&lt;p&gt;tell me if you need more information. thanks&lt;/p&gt;</comment>
                    <comment id="19188" author="ocramius" created="Fri, 28 Dec 2012 09:16:41 +0000"  >&lt;p&gt;This may be because &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;$_identifier&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; in proxies ( &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/42e83a2716d19eada4f1cd49ece77d5f5229a239/lib/Doctrine/ORM/Proxy/ProxyFactory.php#L383&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/42e83a2716d19eada4f1cd49ece77d5f5229a239/lib/Doctrine/ORM/Proxy/ProxyFactory.php#L383&lt;/a&gt; ) is not necessarily composed by integers. This could be fixed with &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DCOM-96&quot; title=&quot;Extract a common ProxyFactory&quot;&gt;&lt;del&gt;DCOM-96&lt;/del&gt;&lt;/a&gt;. I&apos;ll add the tests to my development branch and will ping you back tomorrow &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="19190" author="scourgen" created="Fri, 28 Dec 2012 11:02:46 +0000"  >&lt;p&gt;thanks&lt;/p&gt;</comment>
                    <comment id="19236" author="ocramius" created="Sun, 6 Jan 2013 14:24:42 +0000"  >&lt;p&gt;I see what is going on here... But this should not be a problem anyway, since they&apos;re bound anyway as  &quot;PDO::PARAM_INT&quot;, as &lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=fabio.bat.silva&quot; class=&quot;user-hover&quot; rel=&quot;fabio.bat.silva&quot;&gt;Fabio B. Silva&lt;/a&gt; told you.&lt;/p&gt;

&lt;p&gt;That&apos;s only a problem with the logger showing them as string. PDO will handle the conversion before the value hits the DB as far as I know.&lt;/p&gt;</comment>
                    <comment id="19241" author="scourgen" created="Mon, 7 Jan 2013 03:48:30 +0000"  >&lt;p&gt;I can understand your point,but what I don&apos;t really get is that the execute time of sql is very long,that explained the quote should be in the sql,not like what you said,that&apos;s only a problem with the logger.&lt;/p&gt;</comment>
                    <comment id="19242" author="ocramius" created="Mon, 7 Jan 2013 06:56:16 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=scourgen&quot; class=&quot;user-hover&quot; rel=&quot;scourgen&quot;&gt;scourgen&lt;/a&gt; can you profile the difference directly in CLI? What about checking the bound parameter type? Are those values bound as INTs in your case?&lt;/p&gt;</comment>
                    <comment id="19244" author="scourgen" created="Mon, 7 Jan 2013 08:53:28 +0000"  >&lt;p&gt;@ocramius I wish I could, but I was using doctrine2 with symfony2,So It looks like It will takes some time to simulating all environment and settings that could allow me to reproduced the problem.&lt;/p&gt;

&lt;p&gt;but anyway,I will have a try and tell you what happen when I found something.&lt;/p&gt;</comment>
                    <comment id="19245" author="ocramius" created="Mon, 7 Jan 2013 08:58:19 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=scourgen&quot; class=&quot;user-hover&quot; rel=&quot;scourgen&quot;&gt;scourgen&lt;/a&gt; ok, awaiting your reply then&lt;/p&gt;</comment>
                    <comment id="19248" author="scourgen" created="Mon, 7 Jan 2013 17:48:04 +0000"  >&lt;p&gt;I&apos;ve spent some time on playing with native doctrine2. It took me awhile to setup everything. but I just don&apos;t get that how to retrive data with its Proxy ojbect(for example Proxies_CG_\My\WebBundle\Entity\Line).&lt;/p&gt;

&lt;p&gt;I mean the result of &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;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getRepository(&lt;span class=&quot;code-quote&quot;&gt;&quot;something&quot;&lt;/span&gt;)-&amp;gt;findxxx()&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; always return an array of real object. I can&apos;t reproduced the situation(#comment-19186) that happens on symfony2+doctrine2.&lt;/p&gt;

&lt;p&gt;anyway,I can make sure the problem is real exist,Because the execute time of that slow sql from the tool bar of symfony2 is same as I executed it at mysql cli. If the sql shows up on log with quote but running at mysql without quote,the execute time won&apos;t be same(actually It will be much more faster,in my case,20x times,from 2xxms to 10ms).&lt;/p&gt;
</comment>
                    <comment id="19250" author="ocramius" created="Mon, 7 Jan 2013 19:23:52 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=scourgen&quot; class=&quot;user-hover&quot; rel=&quot;scourgen&quot;&gt;scourgen&lt;/a&gt; you can use &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;$em-&amp;gt;getReference($className, $identifier)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; (identifier being a key=&amp;gt;value array) to force proxies.&lt;/p&gt;

&lt;p&gt;Give it a try &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="19254" author="scourgen" created="Tue, 8 Jan 2013 04:27:34 +0000"  >&lt;p&gt;looks like I reproduced it.&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 testIssue()
    {   
         $no_used=   $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getRepository(__NAMESPACE__. &apos;\DDC2214Line&apos;)-&amp;gt;findOneById(1);
        $lines=array(
            &lt;span class=&quot;code-comment&quot;&gt;//$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getRepository(__NAMESPACE__. &apos;\DDC2214Line&apos;)-&amp;gt;findOneById(1),
&lt;/span&gt;            $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getReference(__NAMESPACE__. &apos;\DDC2214Line&apos;,1),
            $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getReference(__NAMESPACE__. &apos;\DDC2214Line&apos;,&apos;2&apos;),
            $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getReference(__NAMESPACE__. &apos;\DDC2214Line&apos;,3),
        );  
        $logger  = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getConnection()-&amp;gt;getConfiguration()-&amp;gt;getSQLLogger();
        $ids     = array_map(function($r){
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $r-&amp;gt;id;
        }, $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;relatedList);

        &lt;span class=&quot;code-comment&quot;&gt;//$related = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getRepository(__NAMESPACE__ . &apos;\DDC2214LineRelated&apos;)-&amp;gt;findBy(array(&apos;line&apos; =&amp;gt; $lines), array(&apos;count&apos; =&amp;gt; &apos;DESC&apos;), 20);
&lt;/span&gt;        $related = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;createQuery(&apos;select lr from &apos;.__NAMESPACE__ . &apos;\DDC2214LineRelated lr where lr.id in (:ids)&apos;)-&amp;gt;setParameter(&apos;ids&apos;,$lines)-&amp;gt;getResult();
            
        $query   = end($logger-&amp;gt;queries);
&lt;span class=&quot;code-comment&quot;&gt;//\Doctrine\Common\Util\Debug::dump($query[&apos;params&apos;]);
&lt;/span&gt;
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertCount(3, $related);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertEquals($ids, $query[&apos;params&apos;][0]);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertEquals(\Doctrine\DBAL\Connection::PARAM_INT_ARRAY, $query[&apos;types&apos;][0]);
    }   
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I use MySql Query log to see what&apos;s really happen in database(&lt;a href=&quot;http://dev.mysql.com/doc/refman/5.5/en/query-log.html&quot; class=&quot;external-link&quot;&gt;http://dev.mysql.com/doc/refman/5.5/en/query-log.html&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;this is the log from table mysql.general_log&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;
2013-01-08 12:23:44	[root] @ localhost [127.0.0.1]	59	0	Connect	root@localhost on doctrine_tests
2013-01-08 12:23:44	root[root] @ localhost [127.0.0.1]	59	0	Query	CREATE TABLE DDC2214Line (id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB
2013-01-08 12:23:44	root[root] @ localhost [127.0.0.1]	59	0	Query	CREATE TABLE DDC2214LineRelated (id INT AUTO_INCREMENT NOT NULL, line_id INT NOT NULL, count SMALLINT NOT NULL, line_id_related INT NOT NULL, INDEX IDX_D31307994D7B7542 (line_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB
2013-01-08 12:23:44	root[root] @ localhost [127.0.0.1]	59	0	Query	ALTER TABLE DDC2214LineRelated ADD CONSTRAINT FK_D31307994D7B7542 FOREIGN KEY (line_id) REFERENCES DDC2214Line (id)
2013-01-08 12:23:44	root[root] @ localhost [127.0.0.1]	59	0	Query	START TRANSACTION
2013-01-08 12:23:44	root[root] @ localhost [127.0.0.1]	59	0	Query	INSERT INTO DDC2214Line (id) VALUES (&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
2013-01-08 12:23:44	root[root] @ localhost [127.0.0.1]	59	0	Query	INSERT INTO DDC2214Line (id) VALUES (&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
2013-01-08 12:23:44	root[root] @ localhost [127.0.0.1]	59	0	Query	INSERT INTO DDC2214Line (id) VALUES (&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
2013-01-08 12:23:44	root[root] @ localhost [127.0.0.1]	59	0	Query	INSERT INTO DDC2214LineRelated (count, line_id_related, line_id) VALUES (1, 1, 1)
2013-01-08 12:23:44	root[root] @ localhost [127.0.0.1]	59	0	Query	INSERT INTO DDC2214LineRelated (count, line_id_related, line_id) VALUES (2, 2, 2)
2013-01-08 12:23:44	root[root] @ localhost [127.0.0.1]	59	0	Query	INSERT INTO DDC2214LineRelated (count, line_id_related, line_id) VALUES (3, 3, 3)
2013-01-08 12:23:44	root[root] @ localhost [127.0.0.1]	59	0	Query	COMMIT
2013-01-08 12:23:44	root[root] @ localhost [127.0.0.1]	59	0	Query	SELECT t0.id AS id1 FROM DDC2214Line t0 WHERE t0.id = 1 LIMIT 1
2013-01-08 12:23:44	root[root] @ localhost [127.0.0.1]	59	0	Query	SELECT d0_.id AS id0, d0_.count AS count1, d0_.line_id_related AS line_id_related2, d0_.line_id AS line_id3 FROM DDC2214LineRelated d0_ WHERE d0_.id IN (1, &apos;2&apos;, 3)
2013-01-08 12:23:44	root[root] @ localhost [127.0.0.1]	59	0	Quit	
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;you can see,in database level,the second parameter of last query but two has quote (  (1, &apos;2&apos;, 3)  )&lt;/p&gt;</comment>
                    <comment id="19410" author="beberlei" created="Fri, 25 Jan 2013 16:25:25 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-247&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/247&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/247&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19424" author="beberlei" created="Sat, 26 Jan 2013 23:53:36 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-247&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/247&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/247&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20549" author="ocramius" created="Wed, 12 Jun 2013 17:55:35 +0000"  >&lt;p&gt;Added failing test at &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/693&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/693&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20560" author="ocramius" created="Wed, 12 Jun 2013 19:02:29 +0000"  >&lt;p&gt;Added test to prevent regressions at &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/0a90279a99e58bac00258fbc17d6ab01fa466d70&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/0a90279a99e58bac00258fbc17d6ab01fa466d70&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11366" name="DDC2214Test.php" size="3004" author="fabio.bat.silva" created="Thu, 27 Dec 2012 19:41:37 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2209] [GH-540] [DDC-2208] Fix DDC-2208</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2209</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/540&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/540&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;This patch fix &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2208&quot; title=&quot;CASE WHEN ... WHEN doesn&amp;#39;t work&quot;&gt;&lt;del&gt;DDC-2208&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2208&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2208&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14326">DDC-2209</key>
            <summary>[GH-540] [DDC-2208] Fix DDC-2208</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, 20 Dec 2012 01:41:13 +0000</created>
                <updated>Sat, 22 Dec 2012 11:59:17 +0000</updated>
                    <resolved>Sat, 22 Dec 2012 11:59:17 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19170" author="beberlei" created="Sat, 22 Dec 2012 11:53:20 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-540&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/540&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/540&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2208] CASE WHEN ... WHEN doesn&apos;t work</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2208</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Having the following part in select DQL throws an 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-sql&quot;&gt;
SUM(CASE
            WHEN c.startDate &amp;lt;= :start THEN c.endDate - :start
            WHEN c.endDate &amp;gt;= :end THEN :end - c.startDate
            ELSE 0
            END) 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;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;
[Syntax Error] line 0, col 124: Error: Expected Doctrine\ORM\Query\Lexer::T_ELSE, got &apos;-&apos; 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;It seems that it&apos;s failing inside the second THEN&lt;/p&gt;

&lt;p&gt;This one also seems to fail:&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-sql&quot;&gt;
SUM(CASE
            WHEN c.startDate &amp;lt;= :start THEN (c.endDate - :start)
            WHEN c.endDate &amp;gt;= :end THEN (:end - c.startDate)
            ELSE 0
            END) 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;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;
[Syntax Error] line 0, col 60: Error: Unexpected &apos;(&apos; 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Another one:&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-sql&quot;&gt;
SUM(CASE
                WHEN c.startDate &amp;lt;= :start THEN c.endDate - :start
                WHEN c.endDate &amp;gt;= :end THEN :end - c.startDate
                ELSE 0
                END) = :result &lt;span class=&quot;code-keyword&quot;&gt;FROM&lt;/span&gt; ...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;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;
[Syntax Error] line 0, col 60: Error: Expected Doctrine\ORM\Query\Lexer::T_FROM, got &apos;=&apos; 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14325">DDC-2208</key>
            <summary>CASE WHEN ... WHEN doesn&apos;t work</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="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="mvrhov">Miha Vrhovnik</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Dec 2012 23:44:17 +0000</created>
                <updated>Wed, 22 May 2013 06:35:37 +0000</updated>
                    <resolved>Wed, 22 May 2013 04:21:42 +0000</resolved>
                            <version>2.3.1</version>
                                <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19160" author="mvrhov" created="Thu, 20 Dec 2012 17:19:55 +0000"  >&lt;p&gt;I&apos;ve added two more cases where the parsing fails. Do you want a separate tickets for that?&lt;/p&gt;</comment>
                    <comment id="19161" author="fabio.bat.silva" created="Thu, 20 Dec 2012 17:51:25 +0000"  >&lt;p&gt;Don&apos;t worry, I&apos;ll spend some time over this...&lt;br/&gt;
But I&apos;m not sure about the last one. &lt;/p&gt;</comment>
                    <comment id="19162" author="mvrhov" created="Thu, 20 Dec 2012 18:09:40 +0000"  >&lt;p&gt;The 3rd case seems work just fine as a part of a HAVING clause.&lt;br/&gt;
I haven&apos;t tried it but It might be that it fails with something simpler like SELECT COUNT( * ) = :foo FROM ... or SELECT COUNT( * ) = 2 FROM ...&lt;/p&gt;</comment>
                    <comment id="19259" author="mvrhov" created="Tue, 8 Jan 2013 20:04:28 +0000"  >&lt;p&gt;Fabio I have two more...&lt;br/&gt;
It doesn&apos;t like NULL and subselect after then part&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; 
-&amp;gt;addSelect(&apos;CASE
    WHEN po.quantity IS NULL THEN NULL
    ELSE po.quantity -
            COALESCE(0, (
                SELECT COUNT(rd.product) FROM xxxx rd
                    WHERE (rd.startDate &amp;lt;= :end) AND (rd.endDate &amp;gt;= :start) AND
                        rd.product = c.product)))
    END
    AS po.quantity
&apos;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;:edit replaced with real query &lt;/p&gt;</comment>
                    <comment id="19260" author="mvrhov" created="Tue, 8 Jan 2013 20:13:42 +0000"  >&lt;p&gt;addon: well the subquery part can be full query with joins ....&lt;/p&gt;</comment>
                    <comment id="20417" author="guilhermeblanco" created="Wed, 22 May 2013 04:21:42 +0000"  >&lt;p&gt;After further investigation, JPA 2.0 and 2.1 do not support NULL as part of ScalarExpression.&lt;br/&gt;
There are many underlying problems by adding this straight to ScalarExpression, such as the example I showed.&lt;br/&gt;
I don&apos;t think supporting this will bring benefits, but too many headaches.&lt;br/&gt;
As a workaround, create your own function that generates &quot;NULL&quot; as SQL. It would work perfectly here.&lt;br/&gt;
Closing the PR as we will not support it.&lt;/p&gt;</comment>
                    <comment id="20419" author="mvrhov" created="Wed, 22 May 2013 06:35:37 +0000"  >&lt;p&gt;Not to sound rude but, the answer is far fetched. So what if JPA is not supporting it. Yes I understand that the Doctrine is modeled after JPA but this shouldn&apos;t mean that it&apos;s not better in some regards.&lt;/p&gt;

&lt;p&gt;This is really a low blow especially if there is a need to use a query builder to build the queries. And as I said it&apos;s not only the IS NULL but the CASE statement can contain a whole subquery with it&apos;s own CASE statements etc...&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2205] Negative Values in Case Then expressions</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2205</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;DQL Expression: &lt;/p&gt;

&lt;p&gt;SELECT (CASE WHEN t.id = 1 THEN -1 ELSE t.id END) FROM Table t&lt;/p&gt;

&lt;p&gt;Gives an error:&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;Syntax Error&amp;#93;&lt;/span&gt; line 0, col 32: Error: Unexpected &apos;-&apos;&lt;/p&gt;

&lt;p&gt;It doesn&apos;t seem to like the negative number.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14320">DDC-2205</key>
            <summary>Negative Values in Case Then expressions</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="ibiryukov">Ilya Biryukov</reporter>
                        <labels>
                        <label>dql</label>
                    </labels>
                <created>Tue, 18 Dec 2012 00:18:52 +0000</created>
                <updated>Fri, 21 Dec 2012 12:03:45 +0000</updated>
                    <resolved>Fri, 21 Dec 2012 12:03:45 +0000</resolved>
                            <version>2.3.1</version>
                                <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19166" author="fabio.bat.silva" created="Fri, 21 Dec 2012 12:03:45 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/8b5e4a9a52670992b85e7223d255b98cf77a35a3&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/8b5e4a9a52670992b85e7223d255b98cf77a35a3&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2203] add EntityManager-&gt;getFilters()-&gt;isEnabled(&apos;filterName&apos;&apos;)</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2203</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description></description>
                <environment></environment>
            <key id="14316">DDC-2203</key>
            <summary>add EntityManager-&gt;getFilters()-&gt;isEnabled(&apos;filterName&apos;&apos;)</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="noise085">Enea Bette</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Dec 2012 15:05:45 +0000</created>
                <updated>Mon, 1 Apr 2013 21:50:27 +0000</updated>
                                    <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19272" author="nemek_zg" created="Thu, 10 Jan 2013 15:59:21 +0000"  >&lt;p&gt;My pull request (&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/548&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/548&lt;/a&gt;) contains an implementation of the method. Note that no exception is thrown if you query for the state of a non-existing filter - in such a case, &lt;tt&gt;false&lt;/tt&gt; is returned as for disabled filters.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2202] [GH-538] IDENTITY() Support composite primary key</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2202</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/538&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/538&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;This patch add support for composite primary key to identity function&lt;/p&gt;</description>
                <environment></environment>
            <key id="14315">DDC-2202</key>
            <summary>[GH-538] IDENTITY() Support composite primary key</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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, 16 Dec 2012 23:03:28 +0000</created>
                <updated>Mon, 24 Dec 2012 09:19:29 +0000</updated>
                    <resolved>Mon, 24 Dec 2012 09:19:29 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19177" author="beberlei" created="Mon, 24 Dec 2012 09:19:10 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-538&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/538&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/538&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2201] [GH-537] fixed problems with joined inheritance and composite keys</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2201</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 Powerhamster:&lt;/p&gt;

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

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

&lt;p&gt;SchemaTool now creates all Id columns not just only the first one.&lt;br/&gt;
Insert statement for child entity now contains parameter for additional key columns only once.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14314">DDC-2201</key>
            <summary>[GH-537] fixed problems with joined inheritance and composite keys</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, 16 Dec 2012 17:23:33 +0000</created>
                <updated>Sat, 4 May 2013 12:59:14 +0000</updated>
                    <resolved>Sat, 4 May 2013 12:59:14 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20213" author="doctrinebot" created="Sat, 4 May 2013 12:59:08 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-537&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/537&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/537&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2188] DQL arithmetic priority is not considered in expression &apos;a/(b*c)&apos;</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2188</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;A DQL query that contains an arithmetic expression like &apos;a/(b*c)&apos; will be compiled to &apos;a/b*c&apos; in SQL and therefore the result of &apos;100/(2*2)&apos; will be 100, instead of 25.&lt;/p&gt;

&lt;p&gt;Note: I have tested it by mysql only&lt;/p&gt;</description>
                <environment></environment>
            <key id="14295">DDC-2188</key>
            <summary>DQL arithmetic priority is not considered in expression &apos;a/(b*c)&apos;</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="mdehghani">Mahdi Dehghani</reporter>
                        <labels>
                        <label>Cli</label>
                        <label>mysql</label>
                    </labels>
                <created>Wed, 5 Dec 2012 22:48:22 +0000</created>
                <updated>Sat, 6 Apr 2013 14:57:57 +0000</updated>
                    <resolved>Sat, 6 Apr 2013 14:57:57 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19866" author="ocramius" created="Sat, 16 Mar 2013 19:06:16 +0000"  >&lt;p&gt;Being handled in &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2355&quot; title=&quot;[GH-618] [DDC-2188] Fix arithmetic priority&quot;&gt;&lt;del&gt;DDC-2355&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2187] [GH-531] use base events</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2187</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 docteurklein:&lt;/p&gt;

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

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

&lt;p&gt;in consequence of  &lt;a href=&quot;https://github.com/doctrine/common/pull/222&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/222&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14294">DDC-2187</key>
            <summary>[GH-531] use base events</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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, 5 Dec 2012 13:28:29 +0000</created>
                <updated>Mon, 24 Dec 2012 09:17:08 +0000</updated>
                    <resolved>Mon, 24 Dec 2012 09:16:58 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2186] PreFlushEventArgs not passed by ClassMetadataInfo::invokeLifecycleCallbacks()</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2186</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;As described in the documentation (&lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#preflush&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#preflush&lt;/a&gt;) my pre-flush lifecycle callback is not receiving an instance of Doctrine\ORM\Event\PreFlushEventArgs when called in Doctrine\ORM\Mapping\ClassMetadataInfo::invokeLifecycleCallbacks().&lt;/p&gt;</description>
                <environment></environment>
            <key id="14293">DDC-2186</key>
            <summary>PreFlushEventArgs not passed by ClassMetadataInfo::invokeLifecycleCallbacks()</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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>
                                <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="kherge">Kevin Herrera</reporter>
                        <labels>
                    </labels>
                <created>Wed, 5 Dec 2012 00:26:15 +0000</created>
                <updated>Sat, 2 Feb 2013 20:02:29 +0000</updated>
                    <resolved>Sat, 2 Feb 2013 20:02:29 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19107" author="fabio.bat.silva" created="Wed, 5 Dec 2012 17:55:46 +0000"  >&lt;p&gt;Hi Kevin, &lt;br/&gt;
The current lifecycle event system does not allow access to the event args. : &lt;br/&gt;
&lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#lifecycle-callbacks&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#lifecycle-callbacks&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Now it is possible just by using the EventManager :&lt;br/&gt;
&lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#listening-to-lifecycle-events&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#listening-to-lifecycle-events&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Just after &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1955&quot; title=&quot;Support for @EntityListeners&quot;&gt;&lt;del&gt;DDC-1955&lt;/del&gt;&lt;/a&gt; : (&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/423&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/423&lt;/a&gt;) be merged it will be possible.&lt;/p&gt;


&lt;p&gt;Cheers&lt;/p&gt;</comment>
                    <comment id="19129" author="fabio.bat.silva" created="Thu, 13 Dec 2012 11:01:41 +0000"  >&lt;p&gt;Change issue type, since it&apos;s not a bug.&lt;/p&gt;</comment>
                    <comment id="19458" author="fabio.bat.silva" created="Sat, 2 Feb 2013 20:02:29 +0000"  >&lt;p&gt;fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/71a68a5c6fcd49538c3ef2f86d64bcde1958251c&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/71a68a5c6fcd49538c3ef2f86d64bcde1958251c&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2181] [GH-528] Documentation fixes</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2181</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/528&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/528&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;This is a first batch of documentation fixes:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Missing docblocks&lt;/li&gt;
	&lt;li&gt;Missing / incorrect `@param` / `@return` / `@throws` annotations&lt;/li&gt;
	&lt;li&gt;Missing newlines between annotations&lt;/li&gt;
	&lt;li&gt;Incorrect vertical alignment of `@param` annotations&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I&apos;m willing to make more documentation fixes on this project, but I&apos;ll wait for your feedback on this first batch before moving forward!&lt;/p&gt;

&lt;p&gt;Let me know if you have any comment / suggestion / question.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14287">DDC-2181</key>
            <summary>[GH-528] Documentation fixes</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 16:39:17 +0000</created>
                <updated>Sun, 23 Dec 2012 20:22:36 +0000</updated>
                    <resolved>Sun, 23 Dec 2012 20:22:36 +0000</resolved>
                                            <fixVersion>2.4</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-2173] [GH-525] Ensure onFlush and postFlush events are always called Edit </title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2173</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 frosas:&lt;/p&gt;

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

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

&lt;p&gt;See #398 (has been closed as it wasn&apos;t against the master branch)&lt;/p&gt;</description>
                <environment></environment>
            <key id="14276">DDC-2173</key>
            <summary>[GH-525] Ensure onFlush and postFlush events are always called Edit </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 15:33:57 +0000</created>
                <updated>Sun, 6 Jan 2013 18:16:17 +0000</updated>
                    <resolved>Sun, 6 Jan 2013 18:16:17 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <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-2169] [GH-524] EntityManagerDecorator base class as an extension point for EntityManager</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2169</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 lstrojny:&lt;/p&gt;

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

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

&lt;p&gt;As discussed on IRC. Open issues to be discussed:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Should we better extend ObjectManagerDecorator (see &lt;a href=&quot;https://github.com/doctrine/common/pull/229&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/229&lt;/a&gt;) and introduce an EntityManagerInterface?&lt;/li&gt;
	&lt;li&gt;Should the abstract decorator have a constructor?&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="14272">DDC-2169</key>
            <summary>[GH-524] EntityManagerDecorator base class as an extension point for EntityManager</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, 26 Nov 2012 00:06:27 +0000</created>
                <updated>Sat, 4 May 2013 13:02:50 +0000</updated>
                    <resolved>Sat, 4 May 2013 13:02:50 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20214" author="doctrinebot" created="Sat, 4 May 2013 13:02:43 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-524&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/524&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/524&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2153] [GH-517] Fix for DDC-1765</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2153</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 nemekzg:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14240">DDC-2153</key>
            <summary>[GH-517] Fix for DDC-1765</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, 17 Nov 2012 15:20:55 +0000</created>
                <updated>Sun, 25 Nov 2012 11:38:50 +0000</updated>
                    <resolved>Sun, 25 Nov 2012 11:38:49 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19047" author="beberlei" created="Sun, 25 Nov 2012 11:38:50 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-517&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/517&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/517&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2151] [GH-515] Fixes sandbox cli: The helper &quot;em&quot; is not defined.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2151</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 tranver:&lt;/p&gt;

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

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

&lt;p&gt;In afd8ea9 $helpers became an instance of HelperSet and caused an &quot;The helper &quot;em&quot; is not defined.&quot; exception.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14237">DDC-2151</key>
            <summary>[GH-515] Fixes sandbox cli: The helper &quot;em&quot; is not defined.</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, 16 Nov 2012 23:15:42 +0000</created>
                <updated>Sun, 25 Nov 2012 11:38:18 +0000</updated>
                    <resolved>Sun, 25 Nov 2012 11:38:14 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19046" author="beberlei" created="Sun, 25 Nov 2012 11:38:18 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-515&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/515&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/515&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2142] [GH-513] Enumeration support</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2142</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/513&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/513&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;This patch adds support for ``@Enum``. &lt;a href=&quot;https://github.com/doctrine/common/pull/167&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/167&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Please let me know if there is another annotations where we can use ``@Enum``.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14220">DDC-2142</key>
            <summary>[GH-513] Enumeration support</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, 13 Nov 2012 16:30:15 +0000</created>
                <updated>Wed, 21 Nov 2012 20:57:37 +0000</updated>
                    <resolved>Wed, 21 Nov 2012 20:57:37 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18992" author="beberlei" created="Thu, 15 Nov 2012 18:52:20 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-513&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/513&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/513&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19020" author="fabio.bat.silva" created="Wed, 21 Nov 2012 20:57:37 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/common/commit/30b8cea3bfe22f5eb58b5b0165f21df750aeb2e2&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/commit/30b8cea3bfe22f5eb58b5b0165f21df750aeb2e2&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2138] Foreign Keys in STI are wrong when same field is reused in different classes.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2138</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description></description>
                <environment></environment>
            <key id="14215">DDC-2138</key>
            <summary>Foreign Keys in STI are wrong when same field is reused in different classes.</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, 12 Nov 2012 12:39:59 +0000</created>
                <updated>Mon, 12 Nov 2012 14:01:48 +0000</updated>
                    <resolved>Mon, 12 Nov 2012 14:01:48 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18967" author="beberlei" created="Mon, 12 Nov 2012 12:40:12 +0000"  >&lt;p&gt;See &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/440&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/440&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2137] [GH-510] CS on QueryBuilder</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2137</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 ruian:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14214">DDC-2137</key>
            <summary>[GH-510] CS on QueryBuilder</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, 12 Nov 2012 09:24:54 +0000</created>
                <updated>Mon, 12 Nov 2012 10:53:39 +0000</updated>
                    <resolved>Mon, 12 Nov 2012 10:53:07 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18966" author="beberlei" created="Mon, 12 Nov 2012 10:53:39 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-510&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/510&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/510&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2136] convert-mapping can&apos;t create YML from Annotation when Id column is a OneToOne relationship</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2136</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have two entities&lt;/p&gt;

&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@ORM\Entity&lt;br/&gt;
 */&lt;br/&gt;
class User 
{
    /**
     * @ORM\Id
     * @ORM\GeneratedValue(strategy=&quot;AUTO&quot;)
     * @ORM\Column(type=&quot;integer&quot;)
     */
    private $id
}&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@ORM\Entity&lt;br/&gt;
 */&lt;br/&gt;
class UserData 
{
    /**
     * @ORM\Id
     * @ORM\OneToOne(targetEntity=&quot;User&quot;)
     */
    private $id
}&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;When I convert these with symfony&apos;s&lt;/p&gt;

&lt;p&gt;doctrine:mapping:convert yml test/&lt;/p&gt;

&lt;p&gt;it generates an entity definition for UserData without any id fields, which, of course, cannot be imported to the database, as the new entity doesn&apos;t have an identifier column.&lt;/p&gt;</description>
                <environment>Symfony 2.1.3</environment>
            <key id="14212">DDC-2136</key>
            <summary>convert-mapping can&apos;t create YML from Annotation when Id column is a OneToOne relationship</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="gergelypolonkai">Gergely Polonkai</reporter>
                        <labels>
                        <label>yaml</label>
                    </labels>
                <created>Sun, 11 Nov 2012 19:42:20 +0000</created>
                <updated>Wed, 1 May 2013 21:10:30 +0000</updated>
                    <resolved>Wed, 1 May 2013 21:10:30 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20183" author="beberlei" created="Wed, 1 May 2013 21:10:30 +0000"  >&lt;p&gt;Fixed in 2.4&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2132] [GH-509] SchemaTool ignoring &apos;fixed&apos; option</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2132</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 smottt:&lt;/p&gt;

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

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

&lt;p&gt;If the column is set to fixed string length like this:&lt;/p&gt;

&lt;p&gt;```php&lt;br/&gt;
&amp;lt;?php&lt;/p&gt;

&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@ORM\Column(type=&quot;string&quot;, length=2, options=
{&quot;fixed&quot; = true}
&lt;p&gt;)&lt;br/&gt;
 */&lt;br/&gt;
protected $foo;&lt;br/&gt;
```&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The schema tool will not detect that &apos;fixed&apos; option correctly when generating update SQL.&lt;/p&gt;

&lt;p&gt;Fix attached.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14204">DDC-2132</key>
            <summary>[GH-509] SchemaTool ignoring &apos;fixed&apos; option</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, 7 Nov 2012 15:35:56 +0000</created>
                <updated>Mon, 12 Nov 2012 14:18:06 +0000</updated>
                    <resolved>Mon, 12 Nov 2012 14:18:06 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18956" author="beberlei" created="Wed, 7 Nov 2012 21:59:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-509&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/509&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/509&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2106] Notice trying to match a Criteria referencing a managed entity not yet persisted</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2106</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;Undefined index: (...) in Doctrine/ORM/UnitOfWork.php line 2735

#0 doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(2735): Symfony\Component\HttpKernel\Debug\ErrorHandler-&amp;gt;handle(8, &apos;Undefined index...&apos;, &apos;/Users/frosas/S...&apos;, 2735, Array) 
#1 doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php(1696): Doctrine\ORM\UnitOfWork-&amp;gt;getEntityIdentifier(Object(MyEntity)) 
#2 doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php(1683): Doctrine\ORM\Persisters\BasicEntityPersister-&amp;gt;getIndividualValue(Object(MyEntity)) 
#3 doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php(818): Doctrine\ORM\Persisters\BasicEntityPersister-&amp;gt;getValue(Object(MyEntity)) 
#4 doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php(786): Doctrine\ORM\Persisters\BasicEntityPersister-&amp;gt;expandCriteriaParameters(Object(Doctrine\Common\Collections\Criteria)) 
#5 doctrine/orm/lib/Doctrine/ORM/PersistentCollection.php(835): Doctrine\ORM\Persisters\BasicEntityPersister-&amp;gt;loadCriteria(Object(Doctrine\Common\Collections\Criteria)) 
#6 (...): Doctrine\ORM\PersistentCollection-&amp;gt;matching(Object(Doctrine\Common\Collections\Criteria)) 
#7 (...)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As a workaround I had to control this case explicitly:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;if ($myEntity-&amp;gt;getId() === null) return null;
$criteria = Criteria::create()-&amp;gt;where(Criteria::expr()-&amp;gt;eq(&apos;field&apos;, $myEntity));
return $this-&amp;gt;collection-&amp;gt;matching($criteria)-&amp;gt;first();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14173">DDC-2106</key>
            <summary>Notice trying to match a Criteria referencing a managed entity not yet persisted</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="frosas">Francesc Ros&#224;s</reporter>
                        <labels>
                    </labels>
                <created>Mon, 29 Oct 2012 14:56:59 +0000</created>
                <updated>Wed, 1 May 2013 16:47:52 +0000</updated>
                    <resolved>Wed, 1 May 2013 16:47:52 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19507" author="asm89" created="Sat, 9 Feb 2013 22:39:37 +0000"  >&lt;p&gt;Can you provide us with the mapping of your entities? The code shouldn&apos;t get to the point where it asks for the identifier of the object while the object isn&apos;t persisted yet.&lt;/p&gt;</comment>
                    <comment id="19521" author="frosas" created="Sun, 10 Feb 2013 11:58:46 +0000"  >&lt;p&gt;I&apos;m not sure mapping can help to solve this and is quite a work for me to get it without the client details. Anyway I&apos;ll try to reproduce it in a custom scenario if you require it.&lt;/p&gt;

&lt;p&gt;I&apos;ve been doing some debugging and I got this:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;It still fails with last 2.3.*@stable&lt;/li&gt;
	&lt;li&gt;Entity is persisted before matching(). At UnitOfWork::persistNew(), $this-&amp;gt;entityStates&lt;span class=&quot;error&quot;&gt;&amp;#91;$oid&amp;#93;&lt;/span&gt; is set to self::STATE_MANAGED but $this-&amp;gt;entityIdentifiers is untouched ($idGen-&amp;gt;isPostInsertGenerator() is true)&lt;/li&gt;
	&lt;li&gt;When BasicEntityProvider::getIndividualValue() is called, $value state is STATE_MANAGED but $uow-&amp;gt;getEntityIdentifier() fails because $uow-&amp;gt;entityIdentifiers&lt;span class=&quot;error&quot;&gt;&amp;#91;$oid&amp;#93;&lt;/span&gt; was never set.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Hope it helps.&lt;/p&gt;</comment>
                    <comment id="19522" author="asm89" created="Sun, 10 Feb 2013 12:36:03 +0000"  >&lt;p&gt;If you can create a testcase and send a PR with it that would be very helpful. You can create it and put in in the appropriate class here:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/tree/master/tests/Doctrine/Tests/ORM/Functional/Ticket&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/tree/master/tests/Doctrine/Tests/ORM/Functional/Ticket&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19547" author="frosas" created="Sat, 16 Feb 2013 01:52:01 +0000"  >&lt;p&gt;Here you have: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/582&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/582&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20161" author="beberlei" created="Wed, 1 May 2013 16:47:52 +0000"  >&lt;p&gt;Fixed in 2.4&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2091] [GH-486] Fix DDC-2084</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2091</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/486&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/486&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-2084&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2084&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14148">DDC-2091</key>
            <summary>[GH-486] Fix DDC-2084</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, 20 Oct 2012 02:28:40 +0000</created>
                <updated>Wed, 21 Nov 2012 20:59:39 +0000</updated>
                    <resolved>Wed, 21 Nov 2012 20:59:39 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19021" author="fabio.bat.silva" created="Wed, 21 Nov 2012 20:59:39 +0000"  >&lt;p&gt;Merged :  &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/d6d5c341e220ff7aec50c8ecabd5d0b8be2e0804&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/d6d5c341e220ff7aec50c8ecabd5d0b8be2e0804&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2090] MultiTableUpdateExecutor works incorrect with query cache enabled</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2090</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Doctrine\ORM\Query\Exec\MultiTableUpdateExecutor works incorrect with query cache enabled.&lt;br/&gt;
I execute two similar update-queries with different parameters, but the second query is never executed in database.&lt;/p&gt;

&lt;p&gt;There is todo-task in code:&lt;/p&gt;

&lt;p&gt;//FIXME (URGENT): With query cache the parameter is out of date. Move to execute() stage.&lt;/p&gt;

&lt;p&gt;This is important issue. Much time spent in debugging.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14147">DDC-2090</key>
            <summary>MultiTableUpdateExecutor works incorrect with query cache enabled</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="feedbee">Valera Leontyev</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Oct 2012 13:39:45 +0000</created>
                <updated>Sun, 17 Mar 2013 20:50:48 +0000</updated>
                    <resolved>Sun, 17 Mar 2013 20:40:44 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                <fixVersion>2.3.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18852" author="feedbee" created="Fri, 19 Oct 2012 13:40:49 +0000"  >&lt;p&gt;Workaround is to disable query cache per every multitable update query: &lt;a href=&quot;http://stackoverflow.com/questions/12969460/doctrine-query-cache-update&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/12969460/doctrine-query-cache-update&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19870" author="fabio.bat.silva" created="Sun, 17 Mar 2013 20:40:44 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/60b8bc63a1a4819cf112cfbbc7cca06b5792aba6&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/60b8bc63a1a4819cf112cfbbc7cca06b5792aba6&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19871" author="beberlei" created="Sun, 17 Mar 2013 20:50:48 +0000"  >&lt;p&gt;Merged into 2.3 for release with 2.3.3&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2089] Modify OneToMany to allow unidirectional associations without the need of a JoinTable</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2089</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;As I sayd in the title, it would be nice if the ORM layer could permit to map a 1:n association in the db as an unidirectional OneToMany in the classes, without using a JoinTable in the database.&lt;br/&gt;
This would permit us to get rid of the unnecessary database JoinTable, which creates disorder and decreases performance for no valuable reason.&lt;/p&gt;

&lt;p&gt;Is it possible?&lt;/p&gt;</description>
                <environment>Debian Wheezy, Mysql 5.1, Apache2, PHP 5.4</environment>
            <key id="14145">DDC-2089</key>
            <summary>Modify OneToMany to allow unidirectional associations without the need of a JoinTable</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="noise085">Enea Bette</reporter>
                        <labels>
                        <label>onetomany</label>
                        <label>persister</label>
                        <label>unidirectional</label>
                    </labels>
                <created>Fri, 19 Oct 2012 10:11:55 +0000</created>
                <updated>Sun, 16 Dec 2012 17:42:11 +0000</updated>
                                    <version>2.x</version>
                                <fixVersion>2.4</fixVersion>
                <fixVersion>3.0</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19150" author="noise085" created="Sun, 16 Dec 2012 17:42:11 +0000"  >&lt;p&gt;A little up... for inspiration from JPA &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;&lt;a href=&quot;http://en.wikibooks.org/wiki/Java_Persistence/OneToMany#Undirectional_OneToMany.2C_No_Inverse_ManyToOne.2C_No_Join_Table_.28JPA_2.0_ONLY.29&quot; class=&quot;external-link&quot;&gt;http://en.wikibooks.org/wiki/Java_Persistence/OneToMany#Undirectional_OneToMany.2C_No_Inverse_ManyToOne.2C_No_Join_Table_.28JPA_2.0_ONLY.29&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2083] [GH-482] user can set its own commands in the cli-config.php file</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2083</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 Halleck45:&lt;/p&gt;

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

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

&lt;p&gt;Today we need to edit source to add custom commands. With this minor change, we can add custom commands directly in the cli-config.php file :&lt;/p&gt;

&lt;p&gt;````&lt;br/&gt;
require_once &quot;app/bootstrap.php&quot;;&lt;br/&gt;
$helperSet = new \Symfony\Component\Console\Helper\HelperSet(array(&lt;br/&gt;
            &apos;em&apos; =&amp;gt; new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($entityManager)&lt;br/&gt;
        ));&lt;/p&gt;

&lt;p&gt;// example here&lt;br/&gt;
$commands = array(&lt;br/&gt;
    new Doctrine\ORM\Tools\Console\Command\LoadDataCommand&lt;br/&gt;
);&lt;br/&gt;
````&lt;/p&gt;</description>
                <environment></environment>
            <key id="14133">DDC-2083</key>
            <summary>[GH-482] user can set its own commands in the cli-config.php file</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 15:08:25 +0000</created>
                <updated>Mon, 12 Nov 2012 11:13:51 +0000</updated>
                    <resolved>Mon, 12 Nov 2012 11:13:51 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2062] [GH-466] Use `protected` so EntityGenerator can be extended</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2062</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 ethanresnick:&lt;/p&gt;

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

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

&lt;p&gt;This is definitely something I&apos;d like to be able to extend, and I imagine others might too.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14108">DDC-2062</key>
            <summary>[GH-466] Use `protected` so EntityGenerator can be extended</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, 9 Oct 2012 11:01:47 +0000</created>
                <updated>Mon, 12 Nov 2012 12:06:36 +0000</updated>
                    <resolved>Mon, 12 Nov 2012 12:06:36 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2056] [GH-462] [DDC-2055] Generate SELECT clause from ResultSetMappingBuilder</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2056</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 beberlei:&lt;/p&gt;

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

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

&lt;p&gt;Add support to generate entity result parts of the SELECT clause from a ResultSetMappingBuilder instance. Add support for column incrementing.&lt;/p&gt;

&lt;p&gt;Sample:&lt;/p&gt;

&lt;p&gt;    public function testGenerateSelectClauseIncrement()&lt;/p&gt;
    {
        $rsm = new ResultSetMappingBuilder($this-&amp;gt;_em);
        $rsm-&amp;gt;addRootEntityFromClassMetadata(&apos;Doctrine\Tests\Models\CMS\CmsUser&apos;, &apos;u&apos;, ResultSetMappingBuilder::COLUMN_RENAMING_INCREMENT);

        $selectClause = $rsm-&amp;gt;generateSelectClause();

        $this-&amp;gt;assertEquals(&apos;u.id AS id0, u.status AS status1, u.username AS username2, u.name AS name3, u.email_id AS email_id4&apos;, $selectClause);
    }

&lt;p&gt;Restrictions:&lt;/p&gt;

&lt;p&gt;This only generates the entity result clauses, not the ones for scalar results! Because we don&apos;t know what the scalar result actually means.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14091">DDC-2056</key>
            <summary>[GH-462] [DDC-2055] Generate SELECT clause from ResultSetMappingBuilder</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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, 3 Oct 2012 10:37:26 +0000</created>
                <updated>Fri, 5 Oct 2012 16:48:11 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 16:48:10 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18777" author="beberlei" created="Fri, 5 Oct 2012 16:46:42 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-462&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/462&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/462&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2055] Helper to generate SQL SELECT clause for Native Query</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2055</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description></description>
                <environment></environment>
            <key id="14090">DDC-2055</key>
            <summary>Helper to generate SQL SELECT clause for Native Query</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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, 3 Oct 2012 08:20:03 +0000</created>
                <updated>Fri, 5 Oct 2012 16:48:28 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 16:48:28 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2054] [GH-461] [SchemaValidator] Fix typo</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2054</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 franmomu:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14089">DDC-2054</key>
            <summary>[GH-461] [SchemaValidator] Fix 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>Wed, 3 Oct 2012 07:52:30 +0000</created>
                <updated>Wed, 3 Oct 2012 08:47:03 +0000</updated>
                    <resolved>Wed, 3 Oct 2012 08:47:03 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18763" author="beberlei" created="Wed, 3 Oct 2012 08:46:49 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-461&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/461&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/461&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2052] Custom tree walkers are not allowed to add new components to the query</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2052</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Custom tree walkers have freedom in modifying the AST but when you try to add a new query component (i.e. new join in walkSelectStatement() ) to the AST then the SqlWalker throws an exception because it does not has the new component in its _queryComponents array. I see two possible ways to resolve this:&lt;br/&gt;
1. Modify the Parser class in order to allow tree walkers to modify queryComponents and pass changed queryComponents to the SqlWalker&lt;br/&gt;
2. Improve SqlWalker so it can extract and prepare needed information about queryComponent based on AST when it does not have them.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14085">DDC-2052</key>
            <summary>Custom tree walkers are not allowed to add new components to the query</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/reopened.png">Reopened</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="chives">&#321;ukasz Cybula</reporter>
                        <labels>
                        <label>dql</label>
                    </labels>
                <created>Tue, 2 Oct 2012 13:30:45 +0000</created>
                <updated>Tue, 14 May 2013 18:18:10 +0000</updated>
                                    <version>2.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18789" author="beberlei" created="Sat, 6 Oct 2012 09:07:58 +0000"  >&lt;p&gt;Ok this is much more complicated to allow then i thought. The problem is that the QueryComponents are passed by value, as an array, not by reference. That prevents changing them because this change wouldn&apos;t be visible in the output walker.&lt;/p&gt;

&lt;p&gt;I can add a method to allow this in the OutputWalker for now, but generally this requires a bigger refactoring on the Query Components.&lt;/p&gt;</comment>
                    <comment id="18790" author="beberlei" created="Sat, 6 Oct 2012 09:15:39 +0000"  >&lt;p&gt;Added setQueryComponent() in SQL Walker to allow modification in output walker.&lt;/p&gt;</comment>
                    <comment id="18805" author="chives" created="Mon, 8 Oct 2012 10:47:08 +0000"  >&lt;p&gt;I&apos;m afraid that this doesn&apos;t solve the initial problem at all. I&apos;ll try to describe it in more details to show what I mean. Suppose we have two doctrine extensions each of which contain its own tree walker. Each of these tree walkers need to modify AST and add new component to it (joined with some component already existing in the query). The first problem is that each tree walker has its own queryComponents array which is not passed between them, although they not necessary need to use queryComponents - they could use only AST. The second, bigger problem is that the Parser class does not know anything about modifications of queryComponents in tree walkers and cannot pass modified version to the OutputWalker. The goal of submitting this issue was to allow adding new components to the query in tree walkers which is not achievable by your fix. I think it may be the first step in the right direction. Maybe TreeWalkerAdapter should have public method getQueryComponents() which would be used by the Parser to pass modified queryComponents between different tree walkers and finally to the OutputWalker ? This would not break backward compatibility and solve this issue. What do you think about it?&lt;/p&gt;</comment>
                    <comment id="18806" author="chives" created="Mon, 8 Oct 2012 13:43:37 +0000"  >&lt;p&gt;I&apos;ve tried to implement the solution mentioned in previous comment but it&apos;s also not so clean and easy as I thought. Each tree walker (including TreeWalkerChain) would have to implement getQueryComponents() and setQueryComponent($alias, array $component) methods. The same with SqlWalker, so the TreeWalker interface should have these methods, which would break BC in some way (walkers that do not inherit from SqlWalker or TreeWalkerAdapter will fail to compile). So maybe my first solution (PR #464) is not so bad for now? In the future queryComponents could be replaced by a special object or could be passed by a reference to allow modifications.&lt;/p&gt;</comment>
                    <comment id="20247" author="beberlei" created="Thu, 9 May 2013 15:32:15 +0000"  >&lt;p&gt;Marked as improvement as its not a bug.&lt;/p&gt;

&lt;p&gt;A solution might probably implement an object holding all the QueryComponent, implementing ArrayAccess. So that way the state can be shared.&lt;/p&gt;</comment>
                    <comment id="20379" author="ocramius" created="Tue, 14 May 2013 18:02:22 +0000"  >&lt;p&gt;Just hit this while developing an ast walker... Will look into it too since I need it more than soon.&lt;/p&gt;</comment>
                    <comment id="20380" author="ocramius" created="Tue, 14 May 2013 18:17:26 +0000"  >&lt;p&gt;As a VERY UGLY workaround, I used a static variable and a custom sql walker in combination with my AST walker.&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;

namespace Comcom\Versioning\ORM\Query;


use Doctrine\ORM\Query\SqlWalker;

class WorkaroundSqlWalker &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; SqlWalker
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct($query, $parserResult, array $queryComponents)
    {
        parent::__construct($query, $parserResult, $queryComponents);

        foreach (VersionWalker::$additionalAliases as $alias =&amp;gt; $value) {
            $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;setQueryComponent($alias, $value);
        }
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2051] after filtering an association by using -&gt;matching(Criteria) original association changes</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2051</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;after filtering an association with a criteria it changes so it&apos;s not a normal collection and you can&apos;t re-filter it.&lt;/p&gt;

&lt;p&gt;even after hydrating it you can&apos;t filter it.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14084">DDC-2051</key>
            <summary>after filtering an association by using -&gt;matching(Criteria) original association changes</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="iamkoby">Koby Soto</reporter>
                        <labels>
                    </labels>
                <created>Tue, 2 Oct 2012 10:19:04 +0000</created>
                <updated>Mon, 15 Oct 2012 16:10:57 +0000</updated>
                    <resolved>Mon, 15 Oct 2012 16:10:57 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18751" author="iamkoby" created="Tue, 2 Oct 2012 10:27:41 +0000"  >&lt;p&gt;The filtering only works once and only if the database hasn&apos;t been queried! &lt;/p&gt;

&lt;p&gt;This is a major bug because i would like to filter big collections more than once per request.&lt;/p&gt;</comment>
                    <comment id="18793" author="beberlei" created="Sat, 6 Oct 2012 09:30:32 +0000"  >&lt;p&gt;Can you add a code example? I don&apos;t understand what you mean.&lt;/p&gt;</comment>
                    <comment id="18801" author="iamkoby" created="Sun, 7 Oct 2012 08:34:24 +0000"  >&lt;p&gt;sure: here&apos;s just an example (written right now to demonstrate, not taken from real project, so no criticize pls):&lt;/p&gt;

&lt;p&gt;Let&apos;s say we have two functions:&lt;/p&gt;

&lt;p&gt;1. function getExpensiveBooks($limit)&lt;/p&gt;
{
    $books = $this-&amp;gt;getBooks(); //proxy, haven&apos;t queried yet.
    $criteria = Criteria::create()-&amp;gt;where(Criteria::expr()-&amp;gt;gt(&apos;price&apos;, &apos;10&apos;))-&amp;gt;setMaxResults($limit);
    return $books-&amp;gt;matching($criteria);
   }

&lt;p&gt;2. function getCheapBooks($limit)&lt;/p&gt;
{
    $books = $this-&amp;gt;getBooks(); //proxy, haven&apos;t queried yet.
    $criteria = Criteria::create()-&amp;gt;where(Criteria::expr()-&amp;gt;lt(&apos;price&apos;, &apos;4&apos;))-&amp;gt;setMaxResults($limit);
    return $books-&amp;gt;matching($criteria);
   }

&lt;p&gt;now, let&apos;s say that in the controller i&apos;ve called:&lt;br/&gt;
$expensiveBooks = $author-&amp;gt;getExpensiveBooks(3); //will work fine, and the query will be according the criteria.&lt;br/&gt;
//but going on and doing this:&lt;br/&gt;
$cheapBooks = $author-&amp;gt;getCheapBooks(3); //will not work: matching is undefined function.&lt;/p&gt;

&lt;p&gt;It appears that doing matching only works on the first time on a certain association. &lt;/p&gt;</comment>
                    <comment id="18839" author="iamkoby" created="Mon, 15 Oct 2012 16:10:57 +0000"  >&lt;p&gt;this was due to inconsistent association type in both owner and target (target had one-to-one while owner had one-to-many)&lt;/p&gt;

&lt;p&gt;sorry&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2049] [GH-458] Use cascade=all if all cascade options set</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2049</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 barelon:&lt;/p&gt;

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

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

&lt;p&gt;The YAML and XML metadata exporters output cascade=all if all five cascade options are set. The php and annotation exporter do not, they output cascade=list of all 5 cascades instead. &lt;/p&gt;

&lt;p&gt;In order that all 4 exporters offer the same behavior, I updated the php and annotations exporters  so that they export cascade=all&lt;/p&gt;</description>
                <environment></environment>
            <key id="14081">DDC-2049</key>
            <summary>[GH-458] Use cascade=all if all cascade options set</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, 29 Sep 2012 22:21:46 +0000</created>
                <updated>Fri, 5 Oct 2012 16:52:10 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 16:52:10 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18776" author="beberlei" created="Fri, 5 Oct 2012 16:45:53 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-458&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/458&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/458&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2047] [GH-456] Optimize autoload prefix in composer.json</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2047</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 Slamdunk:&lt;/p&gt;

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

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

&lt;p&gt;By having more specific autoload prefixes it is possible to reduce the number of stat calls made.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14077">DDC-2047</key>
            <summary>[GH-456] Optimize autoload prefix in composer.json</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, 28 Sep 2012 06:59:07 +0000</created>
                <updated>Fri, 5 Oct 2012 17:11:13 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 17:11:13 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18778" author="beberlei" created="Fri, 5 Oct 2012 17:05:21 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-456&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/456&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/456&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-2020] [GH-440] The schema tool now doesn&apos;t add a foreign constraint when subclassess of...</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2020</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 sroddy:&lt;/p&gt;

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

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

&lt;p&gt;... a STI use the same field to map relations with entities of different classes&lt;/p&gt;

&lt;p&gt;It seems that there are no particular side-effects in mapping different relationship using the same table column name in different subclasses of a STI hierarchy.&lt;br/&gt;
Eg. Tag superclass of BookTag (id, object_id, comment) and MovieTag (id, object_id, comment), so having two attributes $book and $movie mapped to the same object_id field with @JoinColumn annotation&lt;/p&gt;

&lt;p&gt;I wasn&apos;t sure about this so I tested to see if there were errors. And I was surprised that everything runs without any particular problem.&lt;br/&gt;
Moreover this is a really interesting (wanted? unwanted?) feature, very useful if you have huge tables that need to be joined with other table using the discriminator and object_id columns, or if you have some kind of logging class and you need to keep the table efficient and small. The only problem is that the schema generator always inserts a foreign column constraint (probably the last specified) when generating these kind of Entities.&lt;/p&gt;

&lt;p&gt;This PR ensures that the foreign key is not added if there are at least two different classes mapped on the same field of a db table.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14023">DDC-2020</key>
            <summary>[GH-440] The schema tool now doesn&apos;t add a foreign constraint when subclassess of...</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, 8 Sep 2012 03:36:09 +0000</created>
                <updated>Wed, 1 May 2013 17:28:49 +0000</updated>
                    <resolved>Wed, 1 May 2013 17:28:49 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2019] addOrderBy function incomplete</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2019</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In QueryBuilder.php, just change or complete addOrderBy function&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;public function addOrderBy($sort, $order = null)&lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: {
    $orderBy = ($sort instanceof ExprOrderBy) ? $sort }&lt;/span&gt; &lt;/div&gt;&lt;/blockquote&gt;</description>
                <environment></environment>
            <key id="14020">DDC-2019</key>
            <summary>addOrderBy function incomplete</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="asm89">Alexander</assignee>
                                <reporter username="jforet">J&#233;r&#244;me For&#234;t</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 Sep 2012 13:38:56 +0000</created>
                <updated>Sat, 9 Feb 2013 21:43:40 +0000</updated>
                    <resolved>Sat, 9 Feb 2013 21:43:40 +0000</resolved>
                            <version>2.2.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19504" author="asm89" created="Sat, 9 Feb 2013 21:43:40 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/1a163cd48dc8b691351f0a9fee3e2286fe0af984&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/1a163cd48dc8b691351f0a9fee3e2286fe0af984&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2016] DQL Parser fails in select clause</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2016</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Executing the following query inside the sandbox:&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;
$r = $em-&amp;gt;createQuery(&apos;SELECT u, (((3))) as v FROM Entities\User u&apos;)-&amp;gt;getResult();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;results in 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;
PHP Fatal error:  Uncaught exception &apos;Doctrine\ORM\Query\QueryException&apos; with message &apos;[Syntax Error] line 0, col 10: Error: Expected known function, got &apos;(&apos;&apos; in /mnt/D/Jobs/Wanderwalter/htdocs/doctrineTest/doctrine2/lib/Doctrine/ORM/Query/QueryException.php:42
Stack trace:
#0 /mnt/D/Jobs/Wanderwalter/htdocs/doctrineTest/doctrine2/lib/Doctrine/ORM/Query/Parser.php(380): Doctrine\ORM\Query\QueryException::syntaxError(&apos;line 0, col 10:...&apos;)
#1 /mnt/D/Jobs/Wanderwalter/htdocs/doctrineTest/doctrine2/lib/Doctrine/ORM/Query/Parser.php(3001): Doctrine\ORM\Query\Parser-&amp;gt;syntaxError(&apos;known function&apos;, Array)
#2 /mnt/D/Jobs/Wanderwalter/htdocs/doctrineTest/doctrine2/lib/Doctrine/ORM/Query/Parser.php(2975): Doctrine\ORM\Query\Parser-&amp;gt;CustomFunctionDeclaration()
#3 /mnt/D/Jobs/Wanderwalter/htdocs/doctrineTest/doctrine2/lib/Doctrine/ORM/Query/Parser.php(1907): Doctrine\ORM\Query\Parser-&amp;gt;FunctionDeclaration()
#4 /mnt/D/Jobs/Wanderwalter/htdocs/doctrineTest/doctrine2/lib/Doctrine/ORM/Query/Parser.php(1048): Doctrine\ORM\Query\Parser-&amp;gt;SelectExp in /mnt/D/Jobs/Wanderwalter/htdocs/doctrineTest/doctrine2/lib/Doctrine/ORM/Query/QueryException.php on line 42
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14017">DDC-2016</key>
            <summary>DQL Parser fails in select clause</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="stefanklug">Stefan Klug</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 Sep 2012 09:05:36 +0000</created>
                <updated>Fri, 23 Nov 2012 19:13:44 +0000</updated>
                    <resolved>Fri, 23 Nov 2012 19:13:44 +0000</resolved>
                            <version>2.2.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18616" author="stefanklug" created="Fri, 7 Sep 2012 09:09:15 +0000"  >&lt;p&gt;Solution is available at &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/438&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/438&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19041" author="fabio.bat.silva" created="Fri, 23 Nov 2012 19:13:44 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/ec1950d3cac918935e0f05c1fb79bbd592caed87&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/ec1950d3cac918935e0f05c1fb79bbd592caed87&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2000] [GH-431] [ORM] Fix double semicolon </title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2000</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 pitiflautico:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13993">DDC-2000</key>
            <summary>[GH-431] [ORM] Fix double semicolon </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, 29 Aug 2012 10:40:49 +0000</created>
                <updated>Wed, 29 Aug 2012 12:33:22 +0000</updated>
                    <resolved>Wed, 29 Aug 2012 12:33:22 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18570" author="beberlei" created="Wed, 29 Aug 2012 12:33:18 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-431&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/431&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/431&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1998] Problem when deleting with EntityManager-&gt;remove($entity)</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1998</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The problem is when using EntityMamager-&amp;gt;remove($entity). The Sql query generated doesn&apos;t convert the values of the ids according to the field type that is used in doc block annotation. After investigating I found that in Doctrine\DBAL\Connection the function delete doesn&apos;t support to receive as param the types of the ids to be given to the executeUpdate function which is called in it and supports them. (The types need to be provided from the persisters from which the delete is called). &lt;/p&gt;

&lt;p&gt;I hope it make sense to you. I got that problem because I am using custom time stamp column type as id. And it converts the value of the field to time stamp string, which if not converted to the proper sql value is not recognised and the delete doesn&apos;t go trough.&lt;/p&gt;

&lt;p&gt;As far as I can see it is something that was missed and hope it will be fixed soon.&lt;/p&gt;

&lt;p&gt;If you have any questions please ask.&lt;br/&gt;
Also on request I can provide example code and the fix I have done for myself. &lt;/p&gt;</description>
                <environment></environment>
            <key id="13991">DDC-1998</key>
            <summary>Problem when deleting with EntityManager-&gt;remove($entity)</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="vigor_bg">victor Velkov</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Aug 2012 11:28:38 +0000</created>
                <updated>Wed, 1 May 2013 18:31:03 +0000</updated>
                    <resolved>Wed, 1 May 2013 18:31:03 +0000</resolved>
                            <version>2.2.3</version>
                                <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>5</watches>
                        <comments>
                    <comment id="18582" author="fabio.bat.silva" created="Wed, 29 Aug 2012 22:00:36 +0000"  >&lt;p&gt;Hi Victor&lt;/p&gt;

&lt;p&gt;Could you attach/paste your custom type and entity please ?&lt;/p&gt;</comment>
                    <comment id="18584" author="vigor_bg" created="Thu, 30 Aug 2012 05:47:56 +0000"  >&lt;p&gt;Ok I have attached them. The EwtTimestamp is the custom type. &lt;/p&gt;</comment>
                    <comment id="18663" author="ocramius" created="Mon, 17 Sep 2012 11:50:53 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=vigor_bg&quot; class=&quot;user-hover&quot; rel=&quot;vigor_bg&quot;&gt;victor Velkov&lt;/a&gt; do you have a failing test case for this one?&lt;/p&gt;</comment>
                    <comment id="18664" author="vigor_bg" created="Mon, 17 Sep 2012 12:14:48 +0000"  >&lt;p&gt;Nope sorry haven&apos;t done any test cases for this one&lt;/p&gt;</comment>
                    <comment id="18703" author="fabio.bat.silva" created="Sun, 23 Sep 2012 22:27:36 +0000"  >&lt;p&gt;Hi Victor,&lt;/p&gt;

&lt;p&gt;I can&apos;t reproduce, could you change the added test case and try to make it fails ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                    <comment id="18732" author="vigor_bg" created="Wed, 26 Sep 2012 05:31:22 +0000"  >&lt;p&gt;Sure will do it as soon as I can. Sorry I didn&apos;t answer sooner just was in a holiday &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="18753" author="fabio.bat.silva" created="Tue, 2 Oct 2012 12:44:03 +0000"  >&lt;p&gt;Thanks Victor&lt;/p&gt;

&lt;p&gt;Please let me know when you change the test&lt;/p&gt;</comment>
                    <comment id="18757" author="vigor_bg" created="Tue, 2 Oct 2012 14:03:24 +0000"  >&lt;p&gt;Sorry for the delay i have attached the test case (DDC1998Test1.php). &lt;/p&gt;</comment>
                    <comment id="18816" author="fabio.bat.silva" created="Wed, 10 Oct 2012 15:31:00 +0000"  >&lt;p&gt;Hi Victor,&lt;/p&gt;

&lt;p&gt;Sorry for the delay to answer&lt;/p&gt;

&lt;p&gt;I think that we can&apos;t fix it,&lt;br/&gt;
Your type requires sql conversion to work, and doctrine does not support @Id fields with sql conversion.&lt;/p&gt;</comment>
                    <comment id="18820" author="vigor_bg" created="Thu, 11 Oct 2012 05:45:22 +0000"  >&lt;p&gt;Really as far as i can see in the code you do convert them when you are executing an update. And the fix that i did for my self is to add 3rd parameter to the function delete in Doctrine\DBAL\Connection and then every where where it is called in the code which is in 2 places Doctrine\ORM\Persisters\BasicEntityPersister and Doctrine\ORM\JoinedSubclassPersister to give that parameter with the types. And as far as i can see you do that for the updates. After that in Connection delete you call the executeUpdate which supports the type and you just have to pass it along. And that is it. &lt;/p&gt;</comment>
                    <comment id="19364" author="ocramius" created="Wed, 23 Jan 2013 21:01:02 +0000"  >&lt;p&gt;Reducing priority. It is an edge case, and we already don&apos;t officially support custom object types as identifiers.&lt;/p&gt;</comment>
                    <comment id="20171" author="beberlei" created="Wed, 1 May 2013 17:52:47 +0000"  >&lt;p&gt;We should be able to support this I think, i don&apos;t see a reason it shouldnt work&lt;/p&gt;</comment>
                    <comment id="20174" author="beberlei" created="Wed, 1 May 2013 18:31:03 +0000"  >&lt;p&gt;Will be fixed in 2.4&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11325" name="DDC1998Test.php" size="3029" author="fabio.bat.silva" created="Sun, 23 Sep 2012 22:27:36 +0000" />
                    <attachment id="11336" name="DDC1998Test1.php" size="3191" author="vigor_bg" created="Tue, 2 Oct 2012 14:04:37 +0000" />
                    <attachment id="11315" name="EwtTimestamp.php" size="1991" author="vigor_bg" created="Thu, 30 Aug 2012 05:46:54 +0000" />
                    <attachment id="11316" name="ProductTemplate.php" size="844" author="vigor_bg" created="Thu, 30 Aug 2012 05:46:54 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1995] &quot;Query Exception: Invalid parameter number: number of bound variables does not match number of tokens&quot; when using an &quot;Instance Of&quot; expression</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1995</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Similar to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1848&quot; class=&quot;external-link&quot;&gt;this issue&lt;/a&gt; I think, but triggered when performing a query on entities modelled with Class Table Inheritance, e.g.&lt;/p&gt;

&lt;p&gt;$qb = $repository-&amp;gt;createQueryBuilder(&apos;entity&apos;);&lt;br/&gt;
$metadata = $em-&amp;gt;getClassMetadata($class);&lt;br/&gt;
$qb-&amp;gt;where(&apos;entity INSTANCE OF :type&apos;)-&amp;gt;setParameter(&apos;type&apos;, $metadata);&lt;br/&gt;
$qb-&amp;gt;getQuery()-&amp;gt;execute();&lt;/p&gt;

&lt;p&gt;Seems that there isn&apos;t a corresponding entry in the parameter mapping array for this clause, which triggers the exception at line 254 of Doctrine\ORM\Query:&lt;/p&gt;

&lt;p&gt;if (count($paramMappings) != count($this-&amp;gt;parameters)) &lt;/p&gt;
{
    throw QueryException::invalidParameterNumber();
}</description>
                <environment></environment>
            <key id="13982">DDC-1995</key>
            <summary>&quot;Query Exception: Invalid parameter number: number of bound variables does not match number of tokens&quot; when using an &quot;Instance Of&quot; 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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="craigmarvelley">Craig Marvelley</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Aug 2012 14:13:39 +0000</created>
                <updated>Fri, 7 Jun 2013 21:59:04 +0000</updated>
                    <resolved>Fri, 7 Jun 2013 21:59:04 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18532" author="craigmarvelley" created="Wed, 22 Aug 2012 14:24:48 +0000"  >&lt;p&gt;Pull request with a potential fix: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/429&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/429&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18566" author="beberlei" created="Wed, 29 Aug 2012 11:53:15 +0000"  >&lt;p&gt;Assigned to Guilherme&lt;/p&gt;</comment>
                    <comment id="20504" author="fabio.bat.silva" created="Fri, 7 Jun 2013 21:59:04 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/462173ad71ae63cd9877e1e642f7968ed1f9971b&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/462173ad71ae63cd9877e1e642f7968ed1f9971b&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1981] ProxyFactory does not throw exceptions that are verbose enough (hard to debug)</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1981</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Basically need to display the path of the given proxy in the error message, that makes debugging much easier&lt;/p&gt;</description>
                <environment></environment>
            <key id="13963">DDC-1981</key>
            <summary>ProxyFactory does not throw exceptions that are verbose enough (hard to debug)</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="ocramius">Marco Pivetta</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 Aug 2012 22:24:58 +0000</created>
                <updated>Sat, 26 Jan 2013 23:53:37 +0000</updated>
                    <resolved>Wed, 23 Jan 2013 21:05:33 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19365" author="ocramius" created="Wed, 23 Jan 2013 21:05:33 +0000"  >&lt;p&gt;Handled in &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DCOM-96&quot; title=&quot;Extract a common ProxyFactory&quot;&gt;&lt;del&gt;DCOM-96&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19411" author="beberlei" created="Fri, 25 Jan 2013 16:25:26 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-247&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/247&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/247&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19425" author="beberlei" created="Sat, 26 Jan 2013 23:53:37 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-247&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/247&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/247&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1980] [GH-423] DDC-1955 - @EntityListeners</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1980</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/423&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/423&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-1955&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1955&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hi.&lt;/p&gt;

&lt;p&gt;This path adds support for ```@EntityListeners```&lt;/p&gt;

&lt;p&gt;This path add another way to handle events&lt;br/&gt;
allow configure the same listener for many specific entities.&lt;br/&gt;
And give the EventArg in the current lifecycle callback system.&lt;/p&gt;

&lt;p&gt;Usage :&lt;/p&gt;

&lt;p&gt;```php&lt;br/&gt;
&amp;lt;?php&lt;br/&gt;
/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@EntityListeners(
{&quot;ContractListener&quot;}
&lt;p&gt;)&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;@HasLifecycleCallbacks&lt;/li&gt;
	&lt;li&gt;@Entity&lt;br/&gt;
 */&lt;br/&gt;
class Contract&lt;br/&gt;
{&lt;br/&gt;
    /** @PostLoad */&lt;br/&gt;
    public function postLoadHandler(LifecycleEventArgs $event)
    {
        // do something
    }&lt;br/&gt;
}&lt;br/&gt;
class ContractListener&lt;br/&gt;
{&lt;br/&gt;
    /** @PrePersist  */&lt;br/&gt;
    public function prePersistHandler(Contract $contract)&lt;br/&gt;
    {
        // do something
    }
&lt;p&gt;    /**&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;@PostPersist&lt;/li&gt;
	&lt;li&gt;Most of cases just the entity is needed.&lt;/li&gt;
	&lt;li&gt;as a second parameter LifecycleEventArgs allow access to the entity manager.&lt;br/&gt;
     */&lt;br/&gt;
    public function postPersistHandler(Contract $contract, LifecycleEventArgs $args)
    {
        // do something
    }
&lt;p&gt;}&lt;br/&gt;
```&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="13958">DDC-1980</key>
            <summary>[GH-423] DDC-1955 - @EntityListeners</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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, 12 Aug 2012 03:05:44 +0000</created>
                <updated>Wed, 27 Feb 2013 18:52:55 +0000</updated>
                    <resolved>Wed, 27 Feb 2013 18:52:55 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19770" author="fabio.bat.silva" created="Wed, 27 Feb 2013 18:52:55 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/71a68a5c6fcd49538c3ef2f86d64bcde1958251c&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/71a68a5c6fcd49538c3ef2f86d64bcde1958251c&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1979] [GH-422] DDC-1574 - &quot;new&quot; operator</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1979</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/422&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/422&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-1574&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1574&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hi guys.&lt;/p&gt;

&lt;p&gt;This path adds support for &quot;new&quot; operator&lt;/p&gt;

&lt;p&gt;Usage :&lt;br/&gt;
```SQL&lt;br/&gt;
SELECT&lt;br/&gt;
    new CustomerDTO(c.name, e.email, a.city)&lt;br/&gt;
FROM&lt;br/&gt;
    Customer c&lt;br/&gt;
JOIN&lt;br/&gt;
    u.email e&lt;br/&gt;
JOIN&lt;br/&gt;
    u.address a&lt;br/&gt;
ORDER BY&lt;br/&gt;
    u.name&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;Any simple class with a constructor could be used&lt;br/&gt;
but for the first version just scalar values are allowed.&lt;/p&gt;

&lt;p&gt;it&apos;s a big patch, so any sugestion are welcome.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13957">DDC-1979</key>
            <summary>[GH-422] DDC-1574 - &quot;new&quot; operator</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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, 12 Aug 2012 02:25:31 +0000</created>
                <updated>Wed, 27 Feb 2013 18:53:43 +0000</updated>
                    <resolved>Wed, 27 Feb 2013 18:53:43 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19771" author="fabio.bat.silva" created="Wed, 27 Feb 2013 18:53:43 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/13762f20c9f6daa0c2e4e8a113de01969c6621da&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/13762f20c9f6daa0c2e4e8a113de01969c6621da&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1956] [GH-413] code refactorings on persister</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1956</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/413&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/413&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;hi&lt;/p&gt;

&lt;p&gt;This patch does not add any feature, just small refactorings and code clean up.&lt;br/&gt;
It make easier to implement the generation of persisters: &lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1889&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1889&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Cheers ...&lt;/p&gt;</description>
                <environment></environment>
            <key id="13894">DDC-1956</key>
            <summary>[GH-413] code refactorings on persister</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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, 29 Jul 2012 16:01:06 +0000</created>
                <updated>Thu, 14 Mar 2013 01:35:06 +0000</updated>
                    <resolved>Thu, 14 Mar 2013 01:35:05 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19850" author="fabio.bat.silva" created="Thu, 14 Mar 2013 01:35:05 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/05e5ae8bfa1a452d273a3a6b27b6311c287a9976&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/05e5ae8bfa1a452d273a3a6b27b6311c287a9976&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1955] Support for @EntityListeners</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1955</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Support for @EntityListeners&lt;/p&gt;

&lt;p&gt;Now subscribers are called for ALL entities, to increase the performance we should allow the configuration listeners for entities that need them.&lt;/p&gt;

&lt;p&gt;The @EntityListeners annotation specifies the callback listener classes to be used for an entity or mapped superclass. The @EntityListeners annotation may be applied to an entity class or mapped superclass.&lt;/p&gt;

&lt;p&gt;The listenner callbacks methods are annotated by the current callback annotations (@PreUpdate, @PrePersist, etc...)&lt;/p&gt;

&lt;p&gt;Example : &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;
/**
 * @EntityListeners({&lt;span class=&quot;code-quote&quot;&gt;&quot;ContractSubscriber&quot;&lt;/span&gt;})
 */
class CompanyContract
{
}

class ContractSubscriber
{
    /**
     * @PrePersist
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function prePersistHandler(CompanyContract $contract)
    {
        &lt;span class=&quot;code-comment&quot;&gt;// &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; something
&lt;/span&gt;    }

    /**
     * @PostPersist
     * Most of cases just the entity is needed.
     * as a second parameter LifecycleEventArgs allow access to the entity manager.
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function postPersistHandler(CompanyContract $contract, LifecycleEventArgs $args)
    {
        &lt;span class=&quot;code-comment&quot;&gt;// &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; something
&lt;/span&gt;    }
}

$contract = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; CompanyFlexContract();
&lt;span class=&quot;code-comment&quot;&gt;// &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; something
&lt;/span&gt;
$em-&amp;gt;persist($contract);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="13893">DDC-1955</key>
            <summary>Support for @EntityListeners</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="fabio.bat.silva">Fabio B. Silva</reporter>
                        <labels>
                    </labels>
                <created>Sun, 29 Jul 2012 15:37:44 +0000</created>
                <updated>Sat, 2 Feb 2013 20:01:07 +0000</updated>
                    <resolved>Sat, 2 Feb 2013 20:01:07 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18416" author="stof" created="Mon, 30 Jul 2012 10:00:25 +0000"  >&lt;p&gt;I don&apos;t see how this could improve performances much: there is only one event manager, so all listeners would be registered in the same. This means that the event manager would then need to contain some checks to know whether the listener should be called for this entity. This means that it will add overhead for &lt;b&gt;all&lt;/b&gt; listeners instead of only in listeners needing to check the entity.&lt;/p&gt;</comment>
                    <comment id="18417" author="ocramius" created="Mon, 30 Jul 2012 10:10:54 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=stof&quot; class=&quot;user-hover&quot; rel=&quot;stof&quot;&gt;Christophe Coevoet&lt;/a&gt; I think there&apos;s a bit of overhead when calling the event listeners. Btw we could get a huge improvement if the UoW was able to group the operations by entity name. I&apos;m not sure if this already happens.&lt;/p&gt;</comment>
                    <comment id="18418" author="fabio.bat.silva" created="Mon, 30 Jul 2012 14:07:15 +0000"  >&lt;p&gt;Hi guys&lt;/p&gt;

&lt;p&gt;This feature does not change anything on the current event system, just add another way to handle events.&lt;br/&gt;
Actually, the event manager dont filter/group event calls.&lt;br/&gt;
So, the listener implementation must filter which entities accept and process.&lt;/p&gt;

&lt;p&gt;My idea is build something more simple, like lifecycle callbacks instead of use a event manager.&lt;br/&gt;
Grouping the calls in the entity metadata and centralizing the listener instances in a static point.&lt;/p&gt;

&lt;p&gt;It should avoid lots of calls from UoW to notify entities without subscribers.&lt;/p&gt;</comment>
                    <comment id="19456" author="fabio.bat.silva" created="Sat, 2 Feb 2013 20:01:07 +0000"  >&lt;p&gt;fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/71a68a5c6fcd49538c3ef2f86d64bcde1958251c&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/71a68a5c6fcd49538c3ef2f86d64bcde1958251c&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1872] Evaluate @AssocationOverride/@AttributeOverride in context of Traits</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1872</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;If there is a property $foo in a trait, then the using entity should maybe modify that $foo using @AttributeOverride and @AssociationOverride?&lt;/p&gt;</description>
                <environment></environment>
            <key id="13776">DDC-1872</key>
            <summary>Evaluate @AssocationOverride/@AttributeOverride in context of Traits</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                        <label>documentation</label>
                    </labels>
                <created>Tue, 12 Jun 2012 14:01:49 +0000</created>
                <updated>Sat, 6 Oct 2012 08:36:29 +0000</updated>
                    <resolved>Sat, 6 Oct 2012 08:36:29 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18388" author="cordoval" created="Sun, 29 Jul 2012 05:47:39 +0000"  >&lt;p&gt;done &lt;a href=&quot;https://github.com/doctrine/orm-documentation/pull/117&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/orm-documentation/pull/117&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18788" author="beberlei" created="Sat, 6 Oct 2012 08:36:29 +0000"  >&lt;p&gt;Added test&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1852] Doctrine\ORM\Tools\SchemaValidator should check validity of lifecycle callbacks</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1852</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The schema validator should analyze mapped lifecycle callbacks and:&lt;/p&gt;

&lt;p&gt; a) if some lifecycle callbacks were defined, but no @HasLifecycleCallbacks annotation/mapping was set, warn the user&lt;br/&gt;
 b) if some lifecycle callbacks were defined, but methods are not public, warn the user&lt;/p&gt;</description>
                <environment></environment>
            <key id="13752">DDC-1852</key>
            <summary>Doctrine\ORM\Tools\SchemaValidator should check validity of lifecycle callbacks</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="ocramius">Marco Pivetta</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Jun 2012 09:47:12 +0000</created>
                <updated>Thu, 20 Sep 2012 06:20:48 +0000</updated>
                                    <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                <fixVersion>2.x</fixVersion>
                <fixVersion>Git Master</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18038" author="ocramius" created="Mon, 4 Jun 2012 22:25:23 +0000"  >&lt;p&gt;Existing PR at &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/361&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/361&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1840] Create ParameterCollection indexed and implement it on AbstractQuery and QueryBuilder</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1840</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Currently, method setParameters in AbstractQuery and QueryBuilder only appends new parameters to the list. It should actually override the existing ones.&lt;br/&gt;
To be able to correctly fix this, we need to create a ParameterCollection which we can use/reuse to set/remove/append new parameters.&lt;br/&gt;
These elements should also support parameter types.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13733">DDC-1840</key>
            <summary>Create ParameterCollection indexed and implement it on AbstractQuery and QueryBuilder</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="guilhermeblanco">Guilherme Blanco</reporter>
                        <labels>
                    </labels>
                <created>Sat, 26 May 2012 16:57:36 +0000</created>
                <updated>Thu, 20 Sep 2012 06:20:48 +0000</updated>
                                                    <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17987" author="beberlei" created="Sun, 27 May 2012 08:07:59 +0000"  >&lt;p&gt;Not a bug&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1738] Allow multiple Generators per class</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1738</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;We should be able to support multiple generators per class.&lt;br/&gt;
When doing partition per table, the partitioned column must be part of PK, which may enter in our limitation.&lt;/p&gt;

&lt;p&gt;Currently we only support 1 generator per class.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13576">DDC-1738</key>
            <summary>Allow multiple Generators per class</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="guilhermeblanco">Guilherme Blanco</reporter>
                        <labels>
                    </labels>
                <created>Thu, 29 Mar 2012 21:54:27 +0000</created>
                <updated>Thu, 20 Sep 2012 06:20:48 +0000</updated>
                                    <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1723] Custom ID Generators</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1723</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Allow specify custom id generators, pull request is GH-206&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/206&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/206&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13551">DDC-1723</key>
            <summary>Custom ID Generators</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 22 Mar 2012 21:27:59 +0000</created>
                <updated>Thu, 20 Sep 2012 06:20:48 +0000</updated>
                                                    <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1624] Locking CTI doesnt work on SQL Server</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1624</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The WITH Keyowrd is appended to the whole FROM .. JOIN .. block instead of behind the FROM block.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13396">DDC-1624</key>
            <summary>Locking CTI doesnt work on SQL Server</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="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 29 Jan 2012 14:18:18 +0000</created>
                <updated>Thu, 20 Sep 2012 06:20:48 +0000</updated>
                                    <version>2.2</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1621] Add support for FROM Class1 a1 JOIN Class2 a2 WITH cond queries</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1621</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Check feasibility of this kind of query different from FROM Class1 a1, Class2 a2 to allow arbitrary joins between classes.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13390">DDC-1621</key>
            <summary>Add support for FROM Class1 a1 JOIN Class2 a2 WITH cond queries</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/inprogress.png">In Progress</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="asm89">Alexander</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 25 Jan 2012 21:17:27 +0000</created>
                <updated>Sun, 30 Dec 2012 20:16:47 +0000</updated>
                                                    <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19079" author="alex00888" created="Fri, 30 Nov 2012 10:14:47 +0000"  >&lt;p&gt;Hi all!&lt;br/&gt;
Maybe if this task is hard, you could do a simplier variant, &quot;FROM Class1 a1 JOIN a1,a2 WITH a2 INSTANCE OF Class2&quot;?&lt;br/&gt;
Doctrine 2.3 supports it, but in fact, it does not work. I can&apos;t use Class2 fields in query, and Doctrine ignores the INSTANCE OF operator when building a native queries.&lt;br/&gt;
I am working with system where I have many inherited classes with Class Table Inheritance. When I do a JOIN query, it generates native sql query more than 1KB(?!) length, and MySQL freezes for more than 7 minutes (?!) on it. It must join only tables for Class2, but it joins all my 20 tables inherited of my base class &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;br/&gt;
I don&apos;t know where to send bugreport &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;br/&gt;
It will be very good if I could manually select a joined class to make Doctrine do a better queries.&lt;br/&gt;
Sorry for my english, I am from Moscow.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1599] OnFlush event in transaction</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1599</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Is there any particular reason why onFlush event is not triggered when the transaction is allready open? &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/UnitOfWork.php#L290&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/UnitOfWork.php#L290&lt;/a&gt; It would help a lot developing listeners since this event is the mostly used one and since theres preFlush now it seems a logical solution if onFlush would be a start of transaction in general&lt;/p&gt;</description>
                <environment></environment>
            <key id="13357">DDC-1599</key>
            <summary>OnFlush event in transaction</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="gediminasm">Gediminas Morkevicius</reporter>
                        <labels>
                    </labels>
                <created>Sat, 14 Jan 2012 15:51:55 +0000</created>
                <updated>Thu, 20 Sep 2012 06:20:49 +0000</updated>
                                    <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>2</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17244" author="beberlei" created="Sat, 14 Jan 2012 16:36:43 +0000"  >&lt;p&gt;onFluish is not the start of a transaction. It has nothing to do with this.&lt;/p&gt;</comment>
                    <comment id="17693" author="ocramius" created="Sat, 31 Mar 2012 02:07:52 +0000"  >&lt;p&gt;Is a third event needed? Or is this to be marked as &quot;won&apos;t fix&quot;?&lt;/p&gt;</comment>
                    <comment id="17695" author="beberlei" created="Sat, 31 Mar 2012 07:14:31 +0000"  >&lt;p&gt;Maybe onBeginTransaction, onCommit and onRollback.&lt;/p&gt;

&lt;p&gt;However since you can start transactions manually using $em-&amp;gt;beginTransaction(), the Flush events are somehwat independent of transactions anyways.&lt;/p&gt;</comment>
                    <comment id="17697" author="gediminasm" created="Sat, 31 Mar 2012 07:41:46 +0000"  >&lt;p&gt;Well, user can start transaction anytime, but the fact is that if we think ORM we do not know nothing about the database. we just persist and flush objects.&lt;/p&gt;

&lt;p&gt;Yes I think these would be very useful, from how I see it, if you use event listeners, is:&lt;/p&gt;

&lt;p&gt;loadClassMetadata: you can apply extra mapping&lt;/p&gt;

&lt;p&gt;onFlush: you can modify entity changesets, or persist recalculate new ones, without triggering the database, since it is not used to begin the database modifications yet.&lt;/p&gt;

&lt;p&gt;onBeginTransaction: could use the database modifications keeping in sync the entity changesets. the thing about this event is that usually in behavioral way atomic updates are required. for example nestedset tree sync lft rgt columns, sortable sync the sort index, materialized path, all these requires atomic updates, and the best place is the start of transaction.&lt;/p&gt;

&lt;p&gt;onCommit: could be useful to execute right before commit, finalizing database modifications could be done.&lt;/p&gt;

&lt;p&gt;onRollback: this one is really something, since if you go far, there might be something like files uploaded during the entity processing, and you may want to remove them if transaction fails.&lt;/p&gt;</comment>
                    <comment id="17958" author="guilhermeblanco" created="Mon, 21 May 2012 02:26:05 +0000"  >&lt;p&gt;This situation was barely documented here: &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1443&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1443&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We need a better Transaction API that completely fixes the computation of changesets and also allow more fine grained control over Entities and their corresponding information.&lt;/p&gt;

&lt;p&gt;I&apos;d postpone this one until 3.0.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1590] Fix Inheritance in Code-Generation</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1590</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description></description>
                <environment></environment>
            <key id="13345">DDC-1590</key>
            <summary>Fix Inheritance in Code-Generation</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 9 Jan 2012 14:07:08 +0000</created>
                <updated>Mon, 10 Dec 2012 11:00:40 +0000</updated>
                                                    <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>3</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="19118" author="lukxde" created="Mon, 10 Dec 2012 11:00:31 +0000"  >&lt;p&gt;(I have no Link Privileges, but this one #&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1379&quot; title=&quot;Entity Generator Bug with extended classes&quot;&gt;&lt;del&gt;DDC-1379&lt;/del&gt;&lt;/a&gt; is a duplicate with more extent info.)&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10002">
                <name>Dependency</name>
                                                <inwardlinks description="is required for">
                            <issuelink>
            <issuekey id="13330">DDC-1579</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1574] Support operator &apos;new&apos; in  DQL </title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1574</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I know that is a very complex feature, &lt;br/&gt;
But would be nice if doctrine DQL get supports for the operator &apos;new&apos; like hibernate.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://docs.jboss.org/hibernate/core/4.0/hem/en-US/html/queryhql.html#queryhql-select&quot; class=&quot;external-link&quot;&gt;http://docs.jboss.org/hibernate/core/4.0/hem/en-US/html/queryhql.html#queryhql-select&lt;/a&gt;&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;

class User
{
    /**
     * @Id @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
     * @GeneratedValue
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $id;
    /**
     * @Column()
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $name;
    /**
     * @Column()
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $email;
    &lt;span class=&quot;code-comment&quot;&gt;// some code
&lt;/span&gt;}

class UserVO
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct($name, $email)
    {
        &lt;span class=&quot;code-comment&quot;&gt;/// some code
&lt;/span&gt;    }
}

&lt;span class=&quot;code-comment&quot;&gt;//DQL : SELECT &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; UserVO(u.name, u.email) FROM User u;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;



&lt;p&gt;RELATED : &lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1729&quot; title=&quot;Translate queries into graphs of value objects (instead of array hydration?)&quot;&gt;DDC-1729&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13323">DDC-1574</key>
            <summary>Support operator &apos;new&apos; in  DQL </summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="fabio.bat.silva">Fabio B. Silva</reporter>
                        <labels>
                    </labels>
                <created>Fri, 30 Dec 2011 21:52:24 +0000</created>
                <updated>Fri, 5 Oct 2012 14:57:25 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 14:57:25 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17153" author="beberlei" created="Fri, 30 Dec 2011 23:38:52 +0000"  >&lt;p&gt;It might be even rather simple to implement, but I don&apos;t see the use-case tbh.&lt;/p&gt;</comment>
                    <comment id="17162" author="fabio.bat.silva" created="Sat, 31 Dec 2011 14:16:29 +0000"  >&lt;p&gt;Hello Benjamin,&lt;/p&gt;

&lt;p&gt;This is a well-known hibernate feature, this is very usefull when need to use value/transfer objects whit values from many entities or aggregate functions.&lt;br/&gt;
Instead of having a array result from a complex selec with many joins and agragations the result would be used into a simple value object.&lt;/p&gt;

&lt;p&gt;I would like to create this feature if some one could give me some tips about the best way to implement this.&lt;/p&gt;</comment>
                    <comment id="17163" author="beberlei" created="Sun, 1 Jan 2012 17:04:02 +0000"  >&lt;p&gt;I think the added complexity should not be done before we have value object support in hydrators.&lt;/p&gt;

&lt;p&gt;The code to touch here is:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;ResultSetMapping&lt;/li&gt;
	&lt;li&gt;Abstract-/ObjectHydrator&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Please do not attempt this now, i am very unsure about this yet.&lt;/p&gt;</comment>
                    <comment id="17164" author="fabio.bat.silva" created="Sun, 1 Jan 2012 17:25:41 +0000"  >&lt;p&gt;I agree with you, we have others important features to do.&lt;br/&gt;
Any way I think that would be a usefull feature.&lt;/p&gt;

&lt;p&gt;I&apos;ll be waiting. &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;Thanks&lt;/p&gt;</comment>
                    <comment id="18774" author="fabio.bat.silva" created="Fri, 5 Oct 2012 14:57:25 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/13762f20c9f6daa0c2e4e8a113de01969c6621da&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/13762f20c9f6daa0c2e4e8a113de01969c6621da&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1376] Foreign key not available to order when using findBy()</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1376</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&amp;lt;?php
/**
 * Service
 *
 * @Entity(repositoryClass=&lt;span class=&quot;code-quote&quot;&gt;&quot;App_Model_Repository_Si_Service&quot;&lt;/span&gt;)
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;service&quot;&lt;/span&gt;)
 */
class App_Model_Entities_Si_Service
{
   /**
    * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;
    *
    * @Id
    * @GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;SEQUENCE&quot;&lt;/span&gt;)
    * @Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;pk&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
    */
   &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $pk;

    /**
     * Service parent
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; App_Model_Entities_Si_Service
     *
     * @ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;App_Model_Entities_Si_Service&quot;&lt;/span&gt;, cascade={&lt;span class=&quot;code-quote&quot;&gt;&quot;all&quot;&lt;/span&gt;}, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;service&quot;&lt;/span&gt;)
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;pk_service&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;pk&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $service;

   /**
    * Returns an App_Model_Entities_Si_Service that represents the service
    *
    * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; App_Model_Entities_Si_Service
    */
   &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getService(){
      &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;service;
   }
   /**
    * Set an App_Model_Entities_Si_Service that represents a service
    *
    * @param App_Model_Entities_Si_Service $newService
    */
   &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setService($newService){
      $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;service = $newService;
   }
}

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;$service = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;service(&apos;Service_Type&apos;, &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;);
$serviceType = $service-&amp;gt;findOneBy(array(&apos;code&apos; =&amp;gt; &apos;service&apos;));
        
$service = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;service(&apos;Service&apos;, &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;);
$services = $service-&amp;gt;findBy(
    array(&apos;serviceType&apos; =&amp;gt; $serviceType-&amp;gt;getPk()),
    array(&apos;service&apos; =&amp;gt; &apos;ASC&apos;)
);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Using orderBy parameter of EntityRepository::findBy() with Foreign Key do not work.&lt;br/&gt;
An Unrecognized field error occured.&lt;/p&gt;

&lt;p&gt;Of course, i can use DQL but i think this function should work with mapping.&lt;/p&gt;

&lt;p&gt;Thank you in advance&lt;/p&gt;</description>
                <environment></environment>
            <key id="13019">DDC-1376</key>
            <summary>Foreign key not available to order when using findBy()</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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="presteus">Presteus</reporter>
                        <labels>
                    </labels>
                <created>Wed, 14 Sep 2011 14:17:51 +0000</created>
                <updated>Mon, 14 Jan 2013 02:35:31 +0000</updated>
                    <resolved>Mon, 14 Jan 2013 02:35:31 +0000</resolved>
                            <version>2.1.1</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16480" author="beberlei" created="Thu, 15 Sep 2011 16:19:49 +0000"  >&lt;p&gt;Not a bug&lt;/p&gt;</comment>
                    <comment id="19314" author="fabio.bat.silva" created="Mon, 14 Jan 2013 02:35:31 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/b30b06852bc4eacf8bbbed472e1d6ec21310ec0a&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/b30b06852bc4eacf8bbbed472e1d6ec21310ec0a&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1283] Possible issue with PersistentCollection#getDelete/InsertDiff()</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1283</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Using the following code, when you go from (1, 2) to (1), (2) is deleted as expected. However, if you go from (1, 2) to (2), (1) and (2) are deleted and (2) is then inserted. Is this the desired behaviour? (i.e. 2 extra queries)&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;$bracket-&amp;gt;getTournamentLocations()-&amp;gt;takeSnapshot();

$col = $bracket-&amp;gt;getTournamentLocations()-&amp;gt;unwrap();

$col-&amp;gt;clear();

foreach ($form-&amp;gt;getValue(&apos;tournamentLocations&apos;) as $id) {
    $col-&amp;gt;add($em-&amp;gt;getReference(&apos;Tournaments_Model_TournamentLocation&apos;, $id));
}

$bracket-&amp;gt;getTournamentLocations()-&amp;gt;setDirty(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;);&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="12840">DDC-1283</key>
            <summary>Possible issue with PersistentCollection#getDelete/InsertDiff()</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/reopened.png">Reopened</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="darkangel">Glen Ainscow</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Jul 2011 20:02:02 +0000</created>
                <updated>Thu, 20 Sep 2012 06:20:49 +0000</updated>
                                    <version>2.1</version>
                                <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16211" author="beberlei" created="Tue, 26 Jul 2011 20:27:28 +0000"  >&lt;p&gt;First, you are using internal API therefore you are on your own anyways.&lt;/p&gt;

&lt;p&gt;This is marked as improvment now, the functionality works, it may just be inefficient.&lt;/p&gt;</comment>
                    <comment id="16952" author="guilhermeblanco" created="Fri, 9 Dec 2011 04:43:59 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I&apos;m marking issue as invalid because you&apos;re conceptually wrong.&lt;br/&gt;
What you&apos;re trying to do is telling that a collection of new entities is holded by a collection of Persistent entities.&lt;br/&gt;
The reference internally of PersistentCollection to ArrayCollection means a lot here.&lt;/p&gt;

&lt;p&gt;Correct code would be you to regenerate the collection (a new ArrayCollection) and just assign it to setTournamentLocations($newCollection);&lt;/p&gt;

&lt;p&gt;Does this explanation is enough for you?&lt;/p&gt;

&lt;p&gt;Cheers,&lt;/p&gt;</comment>
                    <comment id="17096" author="darkangel" created="Fri, 23 Dec 2011 18:38:31 +0000"  >&lt;p&gt;Hi Guilherme,&lt;/p&gt;

&lt;p&gt;If I do 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;$locations = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; ArrayCollection();

foreach ($form-&amp;gt;getValue(&apos;tournamentLocations&apos;) as $id) {
    $locations-&amp;gt;add($em-&amp;gt;getReference(&apos;Tournaments_Model_TournamentLocation&apos;, $id));
}

$bracket-&amp;gt;setTournamentLocations($locations);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;... then all the records are deleted, before adding the new records. This is inefficient and causes extra, unnecessary write operations.&lt;/p&gt;

&lt;p&gt;Can&apos;t Doctrine perform diffs when persisting the collection, so that only the necessary deletes and inserts are executed?&lt;/p&gt;</comment>
                    <comment id="17236" author="guilhermeblanco" created="Fri, 13 Jan 2012 06:18:55 +0000"  >&lt;p&gt;We could add it, but I don&apos;t think it worth the effort.&lt;br/&gt;
Main problem with this one is that we use C-level binary comparison to get the diff. That&apos;s what you entities/hash pointers are different.&lt;br/&gt;
We would have to write our own diff-comparator for both collections, which would probably slowdown the entire Doctrine.&lt;/p&gt;

&lt;p&gt;I&apos;d rather consider that it&apos;s not possible to be done at the moment, but I need much more investigation for that. This will be something that I&apos;ll probably only do when I look at this issue again with a lot of time (which is really hard to happen).&lt;/p&gt;

&lt;p&gt;If you have some spare time, feel free to make some attempts.&lt;br/&gt;
Just don&apos;t forget to enable performance tests in Doctrine Unit Test suite.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1245] Check if Entity implements EventSubscriber to allow access to EM</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1245</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;There is often the feature request that the EM should be accessible in entities when events are triggered.&lt;/p&gt;

&lt;p&gt;We should allow entities or repositories to implement EventSubscriber and trigger events accordingly, or find some other scheme to do so.&lt;/p&gt;

&lt;p&gt;Currently event subscribers are called for ALL entities, this could lead to a performance increase when only triggering listeners for entities that need them.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12782">DDC-1245</key>
            <summary>Check if Entity implements EventSubscriber to allow access to EM</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 2 Jul 2011 13:47:14 +0000</created>
                <updated>Sat, 2 Feb 2013 20:01:54 +0000</updated>
                    <resolved>Sat, 2 Feb 2013 20:01:54 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19457" author="fabio.bat.silva" created="Sat, 2 Feb 2013 20:01:54 +0000"  >&lt;p&gt;fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/71a68a5c6fcd49538c3ef2f86d64bcde1958251c&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/71a68a5c6fcd49538c3ef2f86d64bcde1958251c&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>