<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sat May 25 11:58:00 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://doctrine-project.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+DDC+AND+updated%3E%3D-1w+ORDER+BY+updated+DESC&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+DDC+AND+updated%3E%3D-1w+ORDER+BY+updated+DESC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="13" total="13"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DDC-2470] Sql Server error in createQuery using ORDER BY and setMaxResults</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2470</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When executing&lt;/p&gt;

&lt;p&gt;$query = $em-&amp;gt;createQuery(&lt;br/&gt;
			&apos;SELECT m.nombre, m.fechainicio, m.fechafin FROM Bundle:Medicion m&lt;br/&gt;
			JOIN m.estudio e&lt;br/&gt;
			JOIN e.cliente c&lt;br/&gt;
			JOIN c.usuarios u&lt;br/&gt;
			WHERE u.id = :id&lt;br/&gt;
			ORDER BY m.fechainicio DESC&apos;)&lt;br/&gt;
			-&amp;gt;setMaxResults(12)&lt;br/&gt;
			&lt;del&gt;&amp;gt;setParameter(&apos;id&apos;, $user&lt;/del&gt;&amp;gt;getId());&lt;/p&gt;

&lt;p&gt;Get the following error:&lt;/p&gt;

&lt;p&gt;An exception occurred while 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 &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;:&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;El nombre de columna &apos;FECHAINICIO1&apos; no es v&#225;lido.&lt;/p&gt;

&lt;p&gt;Attached the BD model&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://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/blocker.png">Blocker</priority>
                    <status id="1" iconUrl="http://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="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, 24 May 2013 16:27:41 +0000</updated>
                                    <version>2.4</version>
                <version>2.3.4</version>
                                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <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-2469] SQLite handling for ENUM-Fields</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2469</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;SQLite doesn&apos;t support ENUMS!&lt;/p&gt;

&lt;p&gt;But when I try create the schema of the following Entity Doctrine generates this &quot;CREATE TABLE&quot; - Statement:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
CREATE TABLE Entity ([...] NOT NULL, taxation ENUM(&apos;incl&apos;, &apos;excl&apos;), maxNumbe[...]
&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;
class Entity {
...

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string
     *
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, columnDefinition=&lt;span class=&quot;code-quote&quot;&gt;&quot;ENUM(&apos;incl&apos;, &apos;excl&apos;)&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $taxation = self::TAXATION_INCL;

...
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;hr /&gt;
&lt;p&gt;Produces this error:&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;red&quot;&gt;&lt;b&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;HY000&amp;#93;&lt;/span&gt;: General error: 1 near &quot;&apos;incl&apos;&quot;: syntax error&apos;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14986">DDC-2469</key>
            <summary>SQLite handling for ENUM-Fields</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="rosslau@my-hammer.de">Andy Rosslau</reporter>
                        <labels>
                        <label>query</label>
                        <label>schematool</label>
                        <label>sqlite</label>
                    </labels>
                <created>Fri, 24 May 2013 06:45:46 +0000</created>
                <updated>Fri, 24 May 2013 07:35:54 +0000</updated>
                    <resolved>Fri, 24 May 2013 07:35:54 +0000</resolved>
                            <version>Git Master</version>
                                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20431" author="ocramius" created="Fri, 24 May 2013 07:35:45 +0000"  >&lt;p&gt;Usage 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;columnDefinition&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; in annotations or generally metadata mappings is all about vendor specific syntax. `columnDefinition` is designed to allow overriding the default ORM column generated DDL to build vendor specific syntax/types, therefore the issue is invalid&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2235] Single table inheritance discriminator in WHERE when using arbitrary join syntax</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2235</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The condition on the discriminator column is placed in the WHERE clause when using arbitrary join syntax, which renders LEFT JOINs useless.&lt;/p&gt;

&lt;p&gt;Given these classes:&lt;br/&gt;
A - no inheritance&lt;br/&gt;
B1 - abstract, root of a hierarchy, discriminator column is named &apos;type&apos;&lt;br/&gt;
I setup a query builder like this:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$qb-&amp;gt;select(&apos;a.id AS idA, b.id AS idB&apos;)
    -&amp;gt;from(&apos;\Entity\A&apos;, &apos;a&apos;)
    -&amp;gt;leftJoin(&apos;\Entity\B1&apos;, &apos;b&apos;, \Doctrine\ORM\Query\Expr\Join::WITH, &apos;a.something=b.something&apos;);
And the SQL Doctrine generates is something like &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;:
SELECT a.id, b.id FROM a LEFT JOIN b ON (a.something=b.something) WHERE b.type IN (&apos;1&apos;, &apos;2&apos;, &apos;3&apos;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The problems is that the WHERE condition makes the left join useless.&lt;/p&gt;

&lt;p&gt;The condition on the discriminator column should be placed in the JOIN clause to avoid the problem.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14374">DDC-2235</key>
            <summary>Single table inheritance discriminator in WHERE when using arbitrary join syntax</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="4" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/reopened.png">Reopened</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="asm89">Alexander</assignee>
                                <reporter username="jay.eff">Jordi Forns</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Jan 2013 12:45:37 +0000</created>
                <updated>Thu, 23 May 2013 16:01:36 +0000</updated>
                                    <version>2.3</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>3</votes>
                        <watches>8</watches>
                        <comments>
                    <comment id="19526" author="aearsis" created="Sun, 10 Feb 2013 21:33:15 +0000"  >&lt;p&gt;Can this be somehow worked around? If not, it is really serious problem... &lt;/p&gt;</comment>
                    <comment id="19560" author="jay.eff" created="Mon, 18 Feb 2013 16:30:42 +0000"  >&lt;p&gt;I couldn&apos;t find any workaround.&lt;br/&gt;
Trying to force the &apos;type&apos; condition in the join clause resulted useless as Doctrine would add the &apos;where&apos; condition regardless.&lt;/p&gt;</comment>
                    <comment id="19883" author="michelsalib" created="Fri, 22 Mar 2013 10:09:18 +0000"  >&lt;p&gt;Easier way to workaround right now, is to declare a OneToMany from class A to class B on a protected field (no need of getter or setter). That way you can do classic join via relationship transversing and then the condition will be placed in the ON part of the query.&lt;/p&gt;</comment>
                    <comment id="19926" author="kmusiclife" created="Mon, 1 Apr 2013 22:40:03 +0000"  >&lt;p&gt;I could access with below codes. You should use RAW SQL it is easy solution I guess. good luck.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;$qb = $em-&amp;gt;createQueryBuilder();

$qb-&amp;gt;select(&apos;a, b&apos;)
-&amp;gt;from(&apos;YourEntity1&apos;, &apos;a&apos;)
-&amp;gt;leftJoin(&apos;YourEntity2&apos;, &apos;b&apos;, \Doctrine\ORM\Query\Expr\Join::WITH, &apos;a.id = b.relationId&apos;);

$raw_sql = $qb-&amp;gt;where( 
	$qb-&amp;gt;expr()-&amp;gt;in(&apos;a.relationId&apos;, $ids)
)
-&amp;gt;orderBy(&apos;a.updatedAt&apos;, &apos;DESC&apos;)
-&amp;gt;setMaxResults(10)
-&amp;gt;getQuery()-&amp;gt;getSQL();

$conn = $em-&amp;gt;getConnection();
$stmt = $conn-&amp;gt;query($raw_sql);

/* $stmt-&amp;gt;fetchAll(); &lt;span class=&quot;code-comment&quot;&gt;// access as Array */&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="19939" author="beberlei" created="Thu, 4 Apr 2013 18:37:35 +0000"  >&lt;p&gt;Assigned to Alexander&lt;/p&gt;</comment>
                    <comment id="19997" author="beberlei" created="Sun, 14 Apr 2013 09:56:47 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;http://doctrine-project.org/jira/browse/DDC-1940&quot; title=&quot;Doctrine DQL: erroneous sql generation from dql join with &amp;quot;WITH&amp;quot; or &amp;quot;WHERE&amp;quot; clause&quot;&gt;DDC-1940&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20087" author="jay.eff" created="Mon, 22 Apr 2013 09:38:15 +0000"  >&lt;p&gt;Benjamin: this bug doesn&apos;t seem to be a dupe of &lt;a href=&quot;http://doctrine-project.org/jira/browse/DDC-1940&quot; title=&quot;Doctrine DQL: erroneous sql generation from dql join with &amp;quot;WITH&amp;quot; or &amp;quot;WHERE&amp;quot; clause&quot;&gt;DDC-1940&lt;/a&gt;. Actually that issue doesn&apos;t seem to be a bug at all.&lt;/p&gt;

&lt;p&gt;As a reminder, the problem in this issue is that when performing arbitrary left joins on entities that are part of a class hierarchy, the discriminator condition is placed in the where clause instead of the join clause. This means that rows that could not be joined will have null values in the discriminator column and thus will not be returned because of the where condition (which will contain something like &quot; where x.discriminator in (1,2,3) &quot;).&lt;/p&gt;</comment>
                    <comment id="20120" author="tarnfeld" created="Sat, 27 Apr 2013 17:43:18 +0000"  >&lt;p&gt;Has this issue been resolved elsewhere? From reading over &lt;a href=&quot;http://doctrine-project.org/jira/browse/DDC-1940&quot; title=&quot;Doctrine DQL: erroneous sql generation from dql join with &amp;quot;WITH&amp;quot; or &amp;quot;WHERE&amp;quot; clause&quot;&gt;DDC-1940&lt;/a&gt; it doesn&apos;t seem to be a duplicate at all. I&apos;m experiencing the same problem as Jordi and can&apos;t seem to find a solution. Is there any particular reason the `IN ()` predicate is not a part of the join, but instead placed in the main `WHERE` clause?&lt;/p&gt;</comment>
                    <comment id="20122" author="tarnfeld" created="Sun, 28 Apr 2013 17:13:11 +0000"  >&lt;p&gt;I&apos;ve been looking into the root cause of this bug (or feature..) to try and understand why it&apos;s happening, and after trying various possible fixes (a little hard without full understanding of the Doctrine/Query internals) I&apos;ve ended up with a fix that seems to work well for my use case, at least. I&apos;ve not run any of the unit tests (I plan to, and may adjust my fix based on that) but the top revision is my change... &lt;a href=&quot;https://gist.github.com/tarnfeld/a6bb50ec707c7af1c5dc/revisions&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/tarnfeld/a6bb50ec707c7af1c5dc/revisions&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would love some feedback.&lt;/p&gt;

&lt;p&gt;Pull request here: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/656&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/656&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20127" author="jay.eff" created="Mon, 29 Apr 2013 14:56:54 +0000"  >&lt;p&gt;Tom&apos;s fix moves the condition of the discriminator column to the LEFT JOIN, which is exactly what was needed.&lt;/p&gt;

&lt;p&gt;Alexander: could you please give it a look?&lt;/p&gt;</comment>
                    <comment id="20429" author="jay.eff" created="Thu, 23 May 2013 16:01:36 +0000"  >&lt;p&gt;Tom&apos;s proposal seems to fix the issue.&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                <outwardlinks description="duplicates">
                            <issuelink>
            <issuekey id="13875">DDC-1940</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2468] xml schema incomplete</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2468</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;while writing the schema for phpcr-odm i noticed that the orm schema seems to miss some things. not sure if they are just missing in the schema but supported by the xml driver or if the xml driver also misses those:&lt;/p&gt;

&lt;p&gt;cascade-type is missing&lt;/p&gt;

&lt;p&gt;            &amp;lt;xs:element name=&quot;cascade-detach&quot; type=&quot;phpcr:emptyType&quot; minOccurs=&quot;0&quot;/&amp;gt;&lt;/p&gt;

&lt;p&gt;lifecycle-callback-type is missing a bunch of callbacks:&lt;/p&gt;

&lt;p&gt;            &amp;lt;xs:enumeration value=&quot;onFlush&quot;/&amp;gt;&lt;br/&gt;
            &amp;lt;xs:enumeration value=&quot;postFlush&quot;/&amp;gt;&lt;br/&gt;
            &amp;lt;xs:enumeration value=&quot;onClear&quot;/&amp;gt;&lt;br/&gt;
            &amp;lt;xs:enumeration value=&quot;loadClassMetadata&quot;/&amp;gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14985">DDC-2468</key>
            <summary>xml schema incomplete</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://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="dbu">David Buchmann</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 May 2013 15:48:27 +0000</created>
                <updated>Thu, 23 May 2013 15:48:27 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2467] Incorrect work with default values, indexes, autoincrement (patch attached)</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2467</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;If you use in your MySQL database default values, indexes or string primary key, you get incorrect mapping by mapping generator. For get it - just use in database one or more from listed abilities, generate mapping for that and then try to dump-sql with schema-tool:update.&lt;/p&gt;

&lt;p&gt;Hope you fix it. Tnx! &lt;img class=&quot;emoticon&quot; src=&quot;http://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></environment>
            <key id="14982">DDC-2467</key>
            <summary>Incorrect work with default values, indexes, autoincrement (patch attached)</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="and">And</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 May 2013 07:18:52 +0000</created>
                <updated>Thu, 23 May 2013 07:33:00 +0000</updated>
                                    <version>2.3.4</version>
                                                <component>Mapping Drivers</component>
                <component>ORM</component>
                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20425" author="ocramius" created="Thu, 23 May 2013 07:33:00 +0000"  >&lt;p&gt;Marked as minor improvement - thank you for the patch!&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11610" name="ORM.patch" size="5763" author="and" created="Thu, 23 May 2013 07:18:52 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2465] ProxyClass load, and empty ids</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2465</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;If you have lazy association (example many-to-one) that have empty id (for empty i mean empty string and not null) you (correctly) get EntityNotFoundException.&lt;/p&gt;

&lt;p&gt;But i&apos;m working with a system that sometimes put an empty string instead of null in fk fields.&lt;/p&gt;

&lt;p&gt;So i&apos;ve add this little snipped of code __load method in $_proxyClassTemplate, ProxyFactory:&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;// GT, 2013-05-21 If all identifier are empty you not need to &lt;span class=&quot;code-keyword&quot;&gt;try&lt;/span&gt; load
&lt;/span&gt;
        &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;_identifier)) {
            $isEmpty = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
            foreach($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_identifier as $iK =&amp;gt; $iV) {
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!empty($iV))
                    $isEmpty = &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
            }

            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($isEmpty)
                &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt;;
        }
        &lt;span class=&quot;code-comment&quot;&gt;// END GT EDIT&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Osx</environment>
            <key id="14976">DDC-2465</key>
            <summary>ProxyClass load, and empty ids</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="lele19871">Gabriele Tondi</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 May 2013 15:05:57 +0000</created>
                <updated>Wed, 22 May 2013 15:50:15 +0000</updated>
                    <resolved>Tue, 21 May 2013 15:17:56 +0000</resolved>
                            <version>2.3.4</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20407" author="ocramius" created="Tue, 21 May 2013 15:09:03 +0000"  >&lt;p&gt;What does `$this-&amp;gt;_identifier` contain in your failing case?&lt;/p&gt;</comment>
                    <comment id="20408" author="lele19871" created="Tue, 21 May 2013 15:10:04 +0000"  >&lt;p&gt;It contains for 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;
array(
[id] =&amp;gt;
);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Because on db you find an empty string and not a null value.&lt;/p&gt;</comment>
                    <comment id="20409" author="ocramius" created="Tue, 21 May 2013 15:13:25 +0000"  >&lt;p&gt;If I get it correctly, you are using empty strings to emulate NULL references, which is invalid in SQL ( I&apos;ve explained it extensively at &lt;a href=&quot;http://stackoverflow.com/questions/15502408/doctrine-2-use-default-0-values-instead-of-null-for-relation/15511715#15511715&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/15502408/doctrine-2-use-default-0-values-instead-of-null-for-relation/15511715#15511715&lt;/a&gt; )&lt;/p&gt;

&lt;p&gt;Is this what you are doing? Because for any identifier that is not NULL an attempt to load it should be run, regardless of its content.&lt;/p&gt;</comment>
                    <comment id="20410" author="lele19871" created="Tue, 21 May 2013 15:16:32 +0000"  >&lt;p&gt;That&apos;s not me &lt;img class=&quot;emoticon&quot; src=&quot;http://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;It&apos;s the system by which i&apos;m sharing the db.&lt;br/&gt;
It uses MyIsam engine with no fk or index, so i&apos;ve found this way to skip load when on db i&apos;ve empty strings.&lt;/p&gt;

&lt;p&gt;Are there other (maybe cleaner) ways?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Gabriele&lt;/p&gt;</comment>
                    <comment id="20411" author="ocramius" created="Tue, 21 May 2013 15:17:44 +0000"  >&lt;p&gt;No, the only correct way to handle this is to set NULL values for the association meta-columns. Marking as invalid&lt;/p&gt;</comment>
                    <comment id="20412" author="lele19871" created="Tue, 21 May 2013 15:20:51 +0000"  >&lt;p&gt;I can&apos;t find doc about it: &lt;a href=&quot;https://doctrine-orm.readthedocs.org/en/latest/reference/annotations-reference.html?highlight=column#annref-column&quot; class=&quot;external-link&quot;&gt;https://doctrine-orm.readthedocs.org/en/latest/reference/annotations-reference.html?highlight=column#annref-column&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Can you give an example?&lt;/p&gt;</comment>
                    <comment id="20413" author="ocramius" created="Tue, 21 May 2013 15:40:50 +0000"  >&lt;p&gt;`$this-&amp;gt;someAssociation = NULL;`. That&apos;s basically what I mean.&lt;/p&gt;</comment>
                    <comment id="20421" author="lele19871" created="Wed, 22 May 2013 15:38:32 +0000"  >&lt;p&gt;Mmm, didn&apos;t understand.&lt;/p&gt;

&lt;p&gt;Anyway, we&apos;ve tried to fix the old Delphi Monster witch store empty strings instead of nulls... with no results.&lt;/p&gt;

&lt;p&gt;So, here is my workaround, maybe this can be useful for other developers who will be in troubles in the future..&lt;/p&gt;

&lt;p&gt;In &quot;UnitOfWork&quot; class, public method &quot;createEntity&quot;.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;...&amp;#93;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;UnitOfWork.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt; 
&lt;span class=&quot;code-comment&quot;&gt;// TODO: Is &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; even computed right in all cases of composite keys?
&lt;/span&gt;                    foreach ($assoc[&apos;targetToSourceKeyColumns&apos;] as $targetColumn =&amp;gt; $srcColumn) {
                        $joinColumnValue = isset($data[$srcColumn]) ? $data[$srcColumn] : &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;

                        &lt;span class=&quot;code-comment&quot;&gt;// START-EDIT
&lt;/span&gt;
                        &lt;span class=&quot;code-comment&quot;&gt;// GT: our moas store empty string instead of &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; in fk columns.
&lt;/span&gt;                        &lt;span class=&quot;code-comment&quot;&gt;// So, let&apos;s check and handle it as &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;!
&lt;/span&gt;
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (empty($joinColumnValue))
                            $joinColumnValue = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;

                        &lt;span class=&quot;code-comment&quot;&gt;// END-EDIT
&lt;/span&gt;
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($joinColumnValue !== &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;) {
                            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($targetClass-&amp;gt;containsForeignIdentifier) {
                                $associatedId[$targetClass-&amp;gt;getFieldForColumn($targetColumn)] = $joinColumnValue;
                            } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
                                $associatedId[$targetClass-&amp;gt;fieldNames[$targetColumn]] = $joinColumnValue;
                            }
                        }
                    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;...&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Gabriele&lt;/p&gt;</comment>
                    <comment id="20422" author="ocramius" created="Wed, 22 May 2013 15:50:15 +0000"  >&lt;p&gt;&lt;a href=&quot;http://doctrine-project.org/jira/secure/ViewProfile.jspa?name=lele19871&quot; class=&quot;user-hover&quot; rel=&quot;lele19871&quot;&gt;Gabriele Tondi&lt;/a&gt; the ORM does not deal with such architectures (nor with generally invalid usage of RDBMS systems). The only acceptable solution in ORM is with correct NULL values, as it should be, so this patch is invalid.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2208] CASE WHEN ... WHEN doesn&apos;t work</title>
                <link>http://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://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://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-2444] NULL IN CASE WHEN</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2444</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Hi&lt;br/&gt;
In DQL when i use NULL  IN  &quot;CASE WHEN&quot; like this&lt;br/&gt;
&quot;AVG(CASE WHEN g.speed &amp;gt; 0 THEN g.speed ELSE NULL END)&quot;&lt;br/&gt;
 Throw this expestion&lt;br/&gt;
Unexpected &apos;NULL&apos;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14941">DDC-2444</key>
            <summary>NULL IN CASE WHEN</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://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="vahid4134">vahid sohrabloo</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 May 2013 07:56:49 +0000</created>
                <updated>Wed, 22 May 2013 04:21:59 +0000</updated>
                    <resolved>Wed, 22 May 2013 04:21:59 +0000</resolved>
                            <version>2.3.3</version>
                                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20376" author="mvrhov" created="Tue, 14 May 2013 08:21:23 +0000"  >&lt;p&gt;We could say a duplicate of: &lt;a href=&quot;http://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;</comment>
                    <comment id="20418" author="guilhermeblanco" created="Wed, 22 May 2013 04:21:59 +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>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2445] [GH-665] oo 	Add Null in ScalarExpression </title>
                <link>http://doctrine-project.org/jira/browse/DDC-2445</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 vahid-sohrabloo:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14943">DDC-2445</key>
            <summary>[GH-665] oo 	Add Null in ScalarExpression </summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 May 2013 10:40:41 +0000</created>
                <updated>Wed, 22 May 2013 04:21:32 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20416" author="doctrinebot" created="Wed, 22 May 2013 04:21:32 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-665&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/665&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/665&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2466] [GH-676] Update UnitOfWork.php</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2466</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 Kynareth62:&lt;/p&gt;

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

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

&lt;p&gt;Here, if a field (type date or datetime) is defined as id, I have an error because it&apos;s an object and not a string...&lt;/p&gt;

&lt;p&gt;Can you please fix this bug ? Thank you.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14977">DDC-2466</key>
            <summary>[GH-676] Update UnitOfWork.php</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 May 2013 00:08:39 +0000</created>
                <updated>Wed, 22 May 2013 00:44:28 +0000</updated>
                    <resolved>Wed, 22 May 2013 00:43:59 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20414" author="doctrinebot" created="Wed, 22 May 2013 00:43:26 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-676&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/676&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/676&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20415" author="ocramius" created="Wed, 22 May 2013 00:44:28 +0000"  >&lt;p&gt;Related: &lt;a href=&quot;http://doctrine-project.org/jira/browse/DDC-1209&quot; title=&quot;DateTime (and other custom object types) cannot be used in primary key (singular or composite)&quot;&gt;&lt;del&gt;DDC-1209&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;http://doctrine-project.org/jira/browse/DDC-1780&quot; title=&quot;Function createEntity does&amp;#39;t support DateTime identifier&quot;&gt;&lt;del&gt;DDC-1780&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2464] useless index for the middle table of many-to-many relationship</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2464</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have entity A and B, the relationship between A and B is many-to-many. which means Doctrine2 will generate a middle table called AB for me.&lt;/p&gt;

&lt;p&gt;entity A:&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 Station {
    /**
     * @ORM\ManyToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Fun&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;stations&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $funs;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;entity B:&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 Fun {
    /**
     * @ORM\ManyToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Station&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;funs&quot;&lt;/span&gt;)
     * @ORM\JoinTable(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;stations_have_funs&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $stations;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;the schema of middle table stations_have_funs:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
CREATE TABLE `stations_have_funs` (
  `fun_id` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(11) NOT NULL,
  `station_id` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(11) NOT NULL,
  PRIMARY KEY (`fun_id`,`station_id`),
  KEY `IDX_45C921911CA4BE49` (`fun_id`),
  KEY `IDX_45C9219121BDB235` (`station_id`),
  CONSTRAINT `FK_45C921911CA4BE49` FOREIGN KEY (`fun_id`) REFERENCES `funs` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_45C9219121BDB235` FOREIGN KEY (`station_id`) REFERENCES `stations` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;I noticed that there are 2 useless index(fun_id and station_id). Since fun_id and station_id are the primary key of this table. Do we really need 2 extra/duplicated index ?&lt;/p&gt;</description>
                <environment></environment>
            <key id="14975">DDC-2464</key>
            <summary>useless index for the middle table of many-to-many relationship</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://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="scourgen">scourgen</reporter>
                        <labels>
                        <label>ddl</label>
                        <label>schematool</label>
                    </labels>
                <created>Tue, 21 May 2013 09:34:54 +0000</created>
                <updated>Tue, 21 May 2013 09:44:10 +0000</updated>
                                    <version>Git Master</version>
                                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2462] [GH-674] Shortcut for force</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2462</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 TorbenBr:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14970">DDC-2462</key>
            <summary>[GH-674] Shortcut for force</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 20 May 2013 08:07:09 +0000</created>
                <updated>Mon, 20 May 2013 15:44:48 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2463] [GH-675] Implementation for &apos;IsNot&apos;-Comparison</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2463</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 pmattmann:&lt;/p&gt;

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

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

&lt;p&gt;See PR (&lt;a href=&quot;https://github.com/doctrine/collections/pull/11&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/collections/pull/11&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;This is the required implementation for &apos;IsNotNull&apos;-Filters in Collection-Filtering.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14972">DDC-2463</key>
            <summary>[GH-675] Implementation for &apos;IsNot&apos;-Comparison</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 20 May 2013 11:19:03 +0000</created>
                <updated>Mon, 20 May 2013 11:19:03 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>