<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu Jun 20 01:26: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://www.doctrine-project.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+DDC&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</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="1000" total="2461"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DDC-2519] Unable to DQL SELECT PARTIAL entity with association identifier</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2519</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Entity\Person: id, name, etc&lt;br/&gt;
Entity\User: person, admin, etc  (person is the primary and association key)&lt;/p&gt;

&lt;p&gt;Trying DQL: &lt;br/&gt;
 SELECT PARTIAL u.&lt;/p&gt;
{person,admin}
&lt;p&gt; FROM Entity\User u&lt;br/&gt;
will fail.&lt;/p&gt;</description>
                <environment>Ubuntu, OSX, PHP5.4.x</environment>
            <key id="15066">DDC-2519</key>
            <summary>Unable to DQL SELECT PARTIAL entity with association identifier</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="baohx2000">Gordon Forsythe</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Jun 2013 23:37:45 +0000</created>
                <updated>Wed, 19 Jun 2013 23:37:45 +0000</updated>
                                    <version>2.3.4</version>
                                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2518] [GH-704] added badges stable release and total downloads</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2518</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 liuggio:&lt;/p&gt;

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

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


&lt;p&gt;you can see the preview here: &lt;a href=&quot;https://github.com/liuggio/doctrine2/tree/patch-1&quot; class=&quot;external-link&quot;&gt;https://github.com/liuggio/doctrine2/tree/patch-1&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="15064">DDC-2518</key>
            <summary>[GH-704] added badges stable release and total downloads</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, 19 Jun 2013 14:42:45 +0000</created>
                <updated>Wed, 19 Jun 2013 18:38:49 +0000</updated>
                    <resolved>Wed, 19 Jun 2013 18:38:49 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20593" author="doctrinebot" created="Wed, 19 Jun 2013 16:02:42 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-704&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/704&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/704&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20594" author="ocramius" created="Wed, 19 Jun 2013 18:38:49 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/1382d766b09a04d504871bb50d519575ac553136&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/1382d766b09a04d504871bb50d519575ac553136&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2517] [GH-703] Clear visitedCollections</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2517</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 shulcsm:&lt;/p&gt;

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

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

&lt;p&gt;Visited collections are cleared only in commit(). Commit clears up only if it actually has something to do. Processing large amounts of records without changing them cause visitedCollections to grow without any way of clearing.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15063">DDC-2517</key>
            <summary>[GH-703] Clear visitedCollections</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Jun 2013 13:35:15 +0000</created>
                <updated>Wed, 19 Jun 2013 13:35:15 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2516] Undefined offset in ObjectHydrator while working with iterableResult</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2516</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Following this documentation page &lt;a href=&quot;http://doctrine-orm.readthedocs.org/en/2.0.x/reference/batch-processing.html#iterating-large-results-for-data-processing&quot; class=&quot;external-link&quot;&gt;http://doctrine-orm.readthedocs.org/en/2.0.x/reference/batch-processing.html#iterating-large-results-for-data-processing&lt;/a&gt; I tried to create a batch process on 75k entities. But an error came in the ObjectHydrator on line 511 there&apos;s an Undefined offset. Now, i just use the SimpleObjectHydrator and it solve the problem. but i&apos;m wondering if it&apos;s a real bug or just a miss use of Doctrine.&lt;br/&gt;
Reproduce this error could be hard so ask if you want me to give you more informations about it.&lt;/p&gt;</description>
                <environment>using Symfony2</environment>
            <key id="15062">DDC-2516</key>
            <summary>Undefined offset in ObjectHydrator while working with iterableResult</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="johanny">Johanny Clerc-Renaud</reporter>
                        <labels>
                        <label>orm</label>
                    </labels>
                <created>Wed, 19 Jun 2013 12:20:16 +0000</created>
                <updated>Wed, 19 Jun 2013 12:20:16 +0000</updated>
                                    <version>2.3.4</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2515] Schema tool ignores index names in mapping file and uses generated name</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2515</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have defined an index on a foreign key colum in my .dcm.xml mapping file:&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-xml&quot;&gt;
&lt;span class=&quot;code-tag&quot;&gt;&amp;lt;indexes&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;index name=&lt;span class=&quot;code-quote&quot;&gt;&quot;ix_date_created__client_id&quot;&lt;/span&gt; columns=&lt;span class=&quot;code-quote&quot;&gt;&quot;date_created,client_id&quot;&lt;/span&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;index name=&lt;span class=&quot;code-quote&quot;&gt;&quot;ix_user_id&quot;&lt;/span&gt; columns=&lt;span class=&quot;code-quote&quot;&gt;&quot;user_id&quot;&lt;/span&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&quot;code-tag&quot;&gt;&amp;lt;/indexes&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However, the resulting CREATE TABLE statement includes:&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;
    INDEX IDX_4848DD9FA76ED395 (user_id), 
    INDEX IDX_4848DD9F4239E22F (accessgroup_id), 
    INDEX IDX_4848DD9FD2112630 (usergroup_id), 
    INDEX ix_date_created__client_id (date_created, client_id), 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So Doctrine seems to be auto-generating indexes for all foreign key columns. I&apos;m assuming this is a feature, even though I&apos;d argue that there are real-life examples where the mere presence of a foreign key constraint does not justify indexing that column. &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;Anyway, the expected behavior is that Doctrine does not replace existing indexes with generated ones. I will attach a failing test case unless this bug is immediately dismissed as wontfix.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15060">DDC-2515</key>
            <summary>Schema tool ignores index names in mapping file and uses generated name</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="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="hussdl">Daniel Huss</reporter>
                        <labels>
                    </labels>
                <created>Tue, 18 Jun 2013 12:17:50 +0000</created>
                <updated>Tue, 18 Jun 2013 12:17:50 +0000</updated>
                                    <version>2.3.4</version>
                                                <component>ORM</component>
                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

</description>
                <environment></environment>
            <key id="15057">DDC-2513</key>
            <summary>[GH-702] ANSI compliant quote strategy</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Tue, 18 Jun 2013 02:03:12 +0000</created>
                <updated>Tue, 18 Jun 2013 02:03:12 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2512] Lifecycle callbacks</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2512</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I would like to know if the only one thing i need to save an entity in a lifecycle listener is the $unitOfWork-&amp;gt;scheduleForInsert($entity).&lt;/p&gt;

&lt;p&gt;My requirement is to save a log in every action in the DB. So i need to save the old entity and the new entity in the DB. I am making this in the preupdate listener:&lt;/p&gt;

&lt;p&gt;    $log = $this-&amp;gt;util-&amp;gt;createLog($entity-&amp;gt;serialize(),&quot;Current Object&quot;);             &lt;br/&gt;
    $unitOfWork    = $this-&amp;gt;wrapped-&amp;gt;getUnitOfWork();                &lt;br/&gt;
    $unitOfWork-&amp;gt;scheduleForInsert($log);&lt;/p&gt;

&lt;p&gt;But this log is never saved. Do i need something else to persist this new entity?.&lt;/p&gt;

&lt;p&gt;Thanks for your help.&lt;/p&gt;</description>
                <environment>windows xp</environment>
            <key id="15056">DDC-2512</key>
            <summary>Lifecycle callbacks</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="pcastrotigre">Petter Castro</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Jun 2013 21:12:37 +0000</created>
                <updated>Mon, 17 Jun 2013 23:18:32 +0000</updated>
                    <resolved>Mon, 17 Jun 2013 23:18:32 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20586" author="ocramius" created="Mon, 17 Jun 2013 23:17:39 +0000"  >&lt;p&gt;It is not safe to schedule operations while they are happening. Please use the onFlush event instead, as described in &lt;a href=&quot;http://stackoverflow.com/questions/15092965/create-entity-on-entitiy-flush&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/15092965/create-entity-on-entitiy-flush&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Copying the example for reference:&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 YourApp\Subscriber;

use Doctrine\Common\EventSubscriber;
use Doctrine\ORM\Event\OnFlushEventArgs;
use Doctrine\ORM\Events;
use YourApp\Entity\Issue;
use YourApp\Entity\IssueLog;

class IssueUpdateSubscriber &lt;span class=&quot;code-keyword&quot;&gt;implements&lt;/span&gt; EventSubscriber
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function onFlush(OnFlushEventArgs $args)
    {
        $em  = $args-&amp;gt;getEntityManager();
        $uow = $em-&amp;gt;getUnitOfWork();

        foreach ($uow-&amp;gt;getScheduledEntityUpdates() as $updated) {
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($updated &lt;span class=&quot;code-keyword&quot;&gt;instanceof&lt;/span&gt; Issue) {
                $em-&amp;gt;persist(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; IssueLog($updated));
            }
        }

        $uow-&amp;gt;computeChangeSets();
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getSubscribedEvents()
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; array(Events::onFlush);
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="20587" author="ocramius" created="Mon, 17 Jun 2013 23:18:32 +0000"  >&lt;p&gt;Not an issue - unsafe usage of the `preUpdate` event&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2511] [GH-701] list_bugs.php needs to call to getters for protected vars</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2511</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 rbroen:&lt;/p&gt;

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

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

&lt;p&gt;list_bugs.php needs to call to getters for protected vars. This was changed in the &quot;getting-started&quot; code repository, but not in the &quot;getting-started&quot; tutorial.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15054">DDC-2511</key>
            <summary>[GH-701] list_bugs.php needs to call to getters for protected vars</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>Mon, 17 Jun 2013 09:36:34 +0000</created>
                <updated>Mon, 17 Jun 2013 09:41:44 +0000</updated>
                    <resolved>Mon, 17 Jun 2013 09:41:44 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20582" author="doctrinebot" created="Mon, 17 Jun 2013 09:41:36 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-701&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/701&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/701&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20583" author="ocramius" created="Mon, 17 Jun 2013 09:41:44 +0000"  >&lt;p&gt;Merged at &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/a39ceb3159d9716b528c422099c853224a1bc863&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/a39ceb3159d9716b528c422099c853224a1bc863&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2510] [GH-700] Update getting-started.rst</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2510</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 rbroen:&lt;/p&gt;

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

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

&lt;p&gt;The tutorial assumes Doctrine 2.4&lt;/p&gt;</description>
                <environment></environment>
            <key id="15053">DDC-2510</key>
            <summary>[GH-700] Update getting-started.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="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Jun 2013 08:32:11 +0000</created>
                <updated>Mon, 17 Jun 2013 08:40:10 +0000</updated>
                    <resolved>Mon, 17 Jun 2013 08:40:10 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20579" author="doctrinebot" created="Mon, 17 Jun 2013 08:39:51 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-700&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/700&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/700&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20580" author="ocramius" created="Mon, 17 Jun 2013 08:40:10 +0000"  >&lt;p&gt;Merged at &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/1a958f70fdb2aa67d41c76c0f0bde7fb393ed4ab&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/1a958f70fdb2aa67d41c76c0f0bde7fb393ed4ab&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2509] Add CLI detection for the APC check on Console cache commands</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2509</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;There is some instanceof checks on the \Doctrine\ORM\Tools\Console\Command\ClearCache&amp;#42; commands to detect if APC is being used, they were introduced here: &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/8efae0b232210b27200f2709e7fcb24c7f02c5de&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/8efae0b232210b27200f2709e7fcb24c7f02c5de&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I would like to know if it&apos;s possible to add a CLI check too, something 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;&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($cacheDriver &lt;span class=&quot;code-keyword&quot;&gt;instanceof&lt;/span&gt; Cache\ApcCache &amp;amp;&amp;amp; PHP_SAPI === &apos;cli&apos; )&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Yeah, I know that those are CLI commands, and so the check looks like unecessary, however, in the particular case that I found it&apos;s necessary, I&apos;m running the commands under an WebUI:&lt;br/&gt;
Before the modification:&lt;br/&gt;
&lt;img src=&quot;http://i.imgur.com/8a2iVl7.jpg&quot; align=&quot;absmiddle&quot; border=&quot;0&quot; /&gt;&lt;/p&gt;

&lt;p&gt;After:&lt;br/&gt;
&lt;img src=&quot;http://i.imgur.com/LTN1aDa.jpg&quot; align=&quot;absmiddle&quot; border=&quot;0&quot; /&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="15052">DDC-2509</key>
            <summary>Add CLI detection for the APC check on Console cache commands</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="jcm">Jonathan Cardoso Machado</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Jun 2013 01:12:36 +0000</created>
                <updated>Mon, 17 Jun 2013 08:41:24 +0000</updated>
                                    <version>2.3.4</version>
                                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20581" author="ocramius" created="Mon, 17 Jun 2013 08:41:24 +0000"  >&lt;p&gt;CLI commands are not meant to be used in WEB environment (at least not the Symfony CLI ones). You should probably replicate that logic instead.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2508] [GH-699] commented a change that was ahead of stable; added calls to getters</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2508</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 rbroen:&lt;/p&gt;

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

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

&lt;p&gt;CreateHelperSet appears to be a method in 2.4, which is not stable yet and does not correspond with this 2.3 tutorial.&lt;br/&gt;
list_bugs.php was trying to get protected vars.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15051">DDC-2508</key>
            <summary>[GH-699] commented a change that was ahead of stable; added calls to getters</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Sat, 15 Jun 2013 20:27:50 +0000</created>
                <updated>Sun, 16 Jun 2013 17:51:51 +0000</updated>
                    <resolved>Sun, 16 Jun 2013 17:51:51 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20578" author="doctrinebot" created="Sun, 16 Jun 2013 17:50:00 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-699&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/699&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/699&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2507] [GH-698] Fix for [DDC-2506] CTI JOINs and WITH conditionals</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2507</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 mattjanssen:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/698&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/698&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-2506&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2506&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Moved the `SqlWalker::walkConditionalExpression()` out of `walkJoin()` and into `walkJoinAssociationDeclaration()` after the base class JOIN but *&lt;b&gt;before&lt;/b&gt;* the `_generateClassTableInheritanceJoins()`, thus allowing WITH conditions in Class Table Inheritance joins to apply correctly.&lt;/p&gt;

&lt;p&gt;On a side note, I&apos;m not able to get phpunit to run (even on a clean Master) so I&apos;m leaving the testing up to Travis.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15050">DDC-2507</key>
            <summary>[GH-698] Fix for [DDC-2506] CTI JOINs and WITH conditionals</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Jun 2013 16:34:33 +0000</created>
                <updated>Fri, 14 Jun 2013 16:34:33 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2506] WITH Conditionals on Class Table Inheritance LEFT JOINs are inserted incorrectly</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2506</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The following JOIN&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;
JOIN c.ctiRelationship cti WITH cti.id IN (42)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;generates unexpected 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;
LEFT JOIN class_base p1_ ON u1_.cti_id = p1_.id 
LEFT JOIN class_child1 p2_ ON p1_.id = p2_.id
LEFT JOIN class_child2 p3_ ON p1_.id = p3_.id AND (p1_.id IN (42)) 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;when it SHOULD be generating&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;
LEFT JOIN class_base p1_ ON u1_.cti_id = p1_.id AND (p1_.id IN (42)) 
LEFT JOIN class_child1 p2_ ON p1_.id = p2_.id
LEFT JOIN class_child2 p3_ ON p1_.id = p3_.id
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="15049">DDC-2506</key>
            <summary>WITH Conditionals on Class Table Inheritance LEFT JOINs are inserted incorrectly</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="mattjanssen">Matt Janssen</reporter>
                        <labels>
                        <label>dql</label>
                        <label>inheritance</label>
                        <label>joins</label>
                        <label>sql-walker</label>
                    </labels>
                <created>Fri, 14 Jun 2013 16:32:37 +0000</created>
                <updated>Fri, 14 Jun 2013 16:46:34 +0000</updated>
                                    <version>Git Master</version>
                                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20573" author="mattjanssen" created="Fri, 14 Jun 2013 16:46:34 +0000"  >&lt;p&gt;Pull: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/698&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/698&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2505] [GH-697] Fix phpDoc syntax in ClassMetadataInfo.php</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2505</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 michaelperrin:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="15047">DDC-2505</key>
            <summary>[GH-697] Fix phpDoc syntax in ClassMetadataInfo.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="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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Jun 2013 08:00:51 +0000</created>
                <updated>Fri, 14 Jun 2013 13:57:21 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20571" author="doctrinebot" created="Fri, 14 Jun 2013 13:57:21 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-697&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/697&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/697&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2504] [GH-696] extra lazy joined test</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2504</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 Padam87:&lt;/p&gt;

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

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

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

&lt;p&gt;This is just a bug report, not an actual PR, you don&apos;t have to merge.&lt;/p&gt;

&lt;p&gt;When you have a JOINED inheritance, and you have another class, which is related to the parent class of the inheritance, and you only have an association for one of the child classes, EXTRA_LAZY fetch mode creates a fatal error, because it is not joining the parent table to the count query.&lt;/p&gt;

&lt;p&gt;There are many ways around this fortunately, but I thought I should report it anyway.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15046">DDC-2504</key>
            <summary>[GH-696] extra lazy joined test</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Jun 2013 07:49:08 +0000</created>
                <updated>Fri, 14 Jun 2013 07:49:08 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2503] [GH-695] Implemented support for RepositoryFactory.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2503</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 guilhermeblanco:&lt;/p&gt;

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

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

&lt;p&gt;This allows anyone to override the default behavior to load Repositories.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15045">DDC-2503</key>
            <summary>[GH-695] Implemented support for RepositoryFactory.</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, 14 Jun 2013 01:48:26 +0000</created>
                <updated>Tue, 18 Jun 2013 03:14:47 +0000</updated>
                    <resolved>Tue, 18 Jun 2013 03:14:47 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20572" author="doctrinebot" created="Fri, 14 Jun 2013 16:19:50 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-695&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/695&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/695&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20588" author="fabio.bat.silva" created="Tue, 18 Jun 2013 03:14:47 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/7903a2b5139e51b5dd7ed5ae164f7e0f3685dea7&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/7903a2b5139e51b5dd7ed5ae164f7e0f3685dea7&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2502] [GH-694] [DDC-2478] Support null association comparison</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2502</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/694&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/694&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-2478&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2478&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="15044">DDC-2502</key>
            <summary>[GH-694] [DDC-2478] Support null association 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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Thu, 13 Jun 2013 20:53:55 +0000</created>
                <updated>Fri, 14 Jun 2013 04:27:46 +0000</updated>
                    <resolved>Fri, 14 Jun 2013 04:27:46 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20568" author="doctrinebot" created="Fri, 14 Jun 2013 03:12:55 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-694&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/694&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/694&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20570" author="fabio.bat.silva" created="Fri, 14 Jun 2013 04:27:46 +0000"  >&lt;p&gt;Merged : &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-2501] [GH-693] Adding failing test for DDC-2214</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2501</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/693&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/693&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Parameters being bound to an SQL query should have the same type as&lt;br/&gt;
the identifier of the objects being bound to the placeholders of a&lt;br/&gt;
DQL query - this is currently broken with proxies, as this test&lt;br/&gt;
demonstrates.&lt;/p&gt;

&lt;p&gt;This is a demonstration of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2214&quot; title=&quot;extra single quotation in sql when using EntityRepository::findBy&quot;&gt;&lt;del&gt;DDC-2214&lt;/del&gt;&lt;/a&gt;(&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2214&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2214&lt;/a&gt;)&lt;/p&gt;</description>
                <environment></environment>
            <key id="15042">DDC-2501</key>
            <summary>[GH-693] Adding failing test for DDC-2214</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="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 12 Jun 2013 17:55:26 +0000</created>
                <updated>Wed, 12 Jun 2013 19:00:41 +0000</updated>
                    <resolved>Wed, 12 Jun 2013 18:00:41 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20550" author="ocramius" created="Wed, 12 Jun 2013 18:00:41 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2214&quot; title=&quot;extra single quotation in sql when using EntityRepository::findBy&quot;&gt;&lt;del&gt;DDC-2214&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20559" author="doctrinebot" created="Wed, 12 Jun 2013 19:00:41 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-693&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&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>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2500] [GH-692] Query\Parser: support for functions in ORDER BY clause</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2500</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/692&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/692&lt;/a&gt;&lt;/p&gt;

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

</description>
                <environment></environment>
            <key id="15040">DDC-2500</key>
            <summary>[GH-692] Query\Parser: support for functions in ORDER BY 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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 12 Jun 2013 12:31:09 +0000</created>
                <updated>Wed, 12 Jun 2013 13:13:12 +0000</updated>
                    <resolved>Wed, 12 Jun 2013 13:13:12 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20547" author="doctrinebot" created="Wed, 12 Jun 2013 13:08:13 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-692&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/692&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/692&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20548" author="ocramius" created="Wed, 12 Jun 2013 13:13:12 +0000"  >&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;ORDER BY SOME_FUNC()&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; is not portable across all vendors&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2499] [GH-691] IDENTITY function fix for Joined Inheritance</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2499</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 51systems:&lt;/p&gt;

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

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

&lt;p&gt;In a joined inheritance scenario, the identity function implementation assumed the foreign key column was on the table corresponding to the (sub)class named in the select statement. If the relation was on a super-class incorrect sql was generated.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15038">DDC-2499</key>
            <summary>[GH-691] IDENTITY function fix for Joined 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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 12 Jun 2013 00:15:11 +0000</created>
                <updated>Wed, 12 Jun 2013 08:03:17 +0000</updated>
                    <resolved>Wed, 12 Jun 2013 08:03:17 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20539" author="doctrinebot" created="Wed, 12 Jun 2013 04:04:36 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-691&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/691&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/691&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20545" author="ocramius" created="Wed, 12 Jun 2013 08:03:17 +0000"  >&lt;p&gt;Merged at &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/0248f743babbd9b8861ff744a25f006ce2b83f9d&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/0248f743babbd9b8861ff744a25f006ce2b83f9d&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2498] [GH-690] [DDC-2494] Apply type conversion to meta columns</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2498</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/690&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/690&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-2494&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2494&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="15037">DDC-2498</key>
            <summary>[GH-690] [DDC-2494] Apply type conversion to meta columns</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Tue, 11 Jun 2013 17:59:46 +0000</created>
                <updated>Wed, 12 Jun 2013 18:59:07 +0000</updated>
                    <resolved>Wed, 12 Jun 2013 18:59:07 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20557" author="doctrinebot" created="Wed, 12 Jun 2013 18:47:39 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-690&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/690&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/690&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20558" author="ocramius" created="Wed, 12 Jun 2013 18:59:07 +0000"  >&lt;p&gt;Merged at &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/6937061b23ec4de63081efac800415e09dcbcb4f&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/6937061b23ec4de63081efac800415e09dcbcb4f&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2497] When trying to join single-table inheritance classes in DQL or QueryBuilder, Doctrine creates incorrect SQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2497</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When writing a DQL query joining to inherited subclasses, Doctrine incorrectly injects the discriminator in the WHERE clause instead of in the JOIN, where it should be.&lt;br/&gt;
Example:  2 classes extend Person via JOINED table inheritance: EmployedPerson and UnemployedPerson.  I want to create a query where I pull separate class-specific properties form each class:&lt;/p&gt;

&lt;p&gt;SELECT p FROM Person p &lt;br/&gt;
LEFT JOIN EmployedPerson ep WITH ep=p&lt;br/&gt;
LEFT JOIN UnemployedPerson up WITH up=p&lt;/p&gt;

&lt;p&gt;The SQL from this will look something like:&lt;br/&gt;
SELECT .... FROM person p&lt;br/&gt;
LEFT JOIN person ep ON(ep.id=p.id)&lt;br/&gt;
LEFT JOIN person up ON(up.id=p.id)&lt;br/&gt;
WHERE ep.discrim IN(&apos;employed&apos;) AND up.discrim IN(&apos;unemployed&apos;)&lt;/p&gt;

&lt;p&gt;The problem is this query will produce no results if one of the subclasses have no results.&lt;/p&gt;

&lt;p&gt;The fix would be putting the discriminator in the JOIN so the sql would be:&lt;/p&gt;

&lt;p&gt;SELECT .... FROM person p&lt;br/&gt;
LEFT JOIN person ep ON(ep.id=p.id AND ep.discrim IN(&apos;employed&apos;))&lt;br/&gt;
LEFT JOIN person up ON(up.id=p.id AND up.discrim IN(&apos;unemployed&apos;))&lt;/p&gt;


&lt;p&gt;I will try to create a unit test based on the current ones and upload it.&lt;/p&gt;</description>
                <environment>PHP5.4, Mysql stable, ubuntu 12.04</environment>
            <key id="15035">DDC-2497</key>
            <summary>When trying to join single-table inheritance classes in DQL or QueryBuilder, Doctrine creates incorrect SQL</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="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="baohx2000">Gordon Forsythe</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 Jun 2013 23:25:22 +0000</created>
                <updated>Tue, 11 Jun 2013 00:09:10 +0000</updated>
                    <resolved>Tue, 11 Jun 2013 00:09:10 +0000</resolved>
                            <version>2.3.4</version>
                                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20526" author="baohx2000" created="Mon, 10 Jun 2013 23:32:13 +0000"  >&lt;p&gt;Sorry, this is a duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2235&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2235&lt;/a&gt;&lt;br/&gt;
I don&apos;t see where to mark as dupe...&lt;/p&gt;</comment>
                    <comment id="20528" author="ocramius" created="Tue, 11 Jun 2013 00:09:10 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2235&quot; title=&quot;Single table inheritance discriminator in WHERE when using arbitrary join syntax&quot;&gt;DDC-2235&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2496] Unexpected behaviour flushing single entity</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2496</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The following works as expected:&lt;br/&gt;
$existingElement = $repository-&amp;gt;find(1);&lt;br/&gt;
$existingElement-&amp;gt;setSomething(&apos;foo&apos;);&lt;br/&gt;
$newElement = new Element(&apos;bar&apos;);&lt;br/&gt;
$em-&amp;gt;persist($newElement);&lt;br/&gt;
$em-&amp;gt;flush($newElement);&lt;br/&gt;
// The new element is added and the existing is not modified&lt;/p&gt;

&lt;p&gt;The following does not:&lt;br/&gt;
$existingElement = $repository-&amp;gt;find(1);&lt;br/&gt;
$em-&amp;gt;remove(existingElement);&lt;br/&gt;
$newElement = new Element(&apos;bar&apos;);&lt;br/&gt;
$em-&amp;gt;persist($newElement);&lt;br/&gt;
$em-&amp;gt;flush($newElement);&lt;br/&gt;
// The new element is added and the existing is deleted (i didnt flush THAT element)&lt;/p&gt;

&lt;p&gt;The following does not:&lt;br/&gt;
$newElement2 = new Element(&apos;foo&apos;);&lt;br/&gt;
$em-&amp;gt;persist($newElement2);&lt;br/&gt;
$newElement = new Element(&apos;bar&apos;);&lt;br/&gt;
$em-&amp;gt;persist($newElement);&lt;br/&gt;
$em-&amp;gt;flush($newElement);&lt;br/&gt;
// Both elements are persisted, even if I only flushed $newElement&lt;/p&gt;</description>
                <environment></environment>
            <key id="15033">DDC-2496</key>
            <summary>Unexpected behaviour flushing single 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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="hrajchert">Hernan Rajchert</reporter>
                        <labels>
                        <label>orm</label>
                        <label>unitofwork</label>
                    </labels>
                <created>Mon, 10 Jun 2013 21:37:39 +0000</created>
                <updated>Mon, 17 Jun 2013 18:03:51 +0000</updated>
                    <resolved>Wed, 12 Jun 2013 18:07:31 +0000</resolved>
                            <version>2.3.4</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20551" author="hrajchert" created="Wed, 12 Jun 2013 18:04:03 +0000"  >&lt;p&gt;By the way, I noticed in the code that this seems to be &quot;expected behaviour&quot;, but it doesn&apos;t make too much sense, as the idea is to not disturb the original unit of work.&lt;/p&gt;

&lt;p&gt;The problem arises when I call some findOrCreate methods that I&apos;ve done. The idea is that those entities should be there, but not always are, and they usually occur on the middle of some other processing, so if I have some new elements before calling the findOrCreate I dont want them to be inserted until I flush them in particular.&lt;/p&gt;

&lt;p&gt;Right now Im creating a new EntityManager (which involves a new connection), doing the insert there and then merging into the other EntityManager, but the merge is very error prone to the order you merge stuff.&lt;/p&gt;</comment>
                    <comment id="20552" author="ocramius" created="Wed, 12 Jun 2013 18:07:22 +0000"  >&lt;p&gt;Flushing with a given parameter is only about optimizing changeset computation - it is not meant to flush only the new element.&lt;/p&gt;</comment>
                    <comment id="20584" author="hrajchert" created="Mon, 17 Jun 2013 16:33:32 +0000"  >&lt;p&gt;So how would you recommend to resolve the findOrCreate issues?&lt;/p&gt;</comment>
                    <comment id="20585" author="ocramius" created="Mon, 17 Jun 2013 18:03:51 +0000"  >&lt;p&gt;You would have to flush afterwards.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2495] Partial objects not working with STI</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2495</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When I try to create a query retrieving partial objects of a root class in single table inheritance hierarchy, the resulting SQL includes all fields from the whole class hierarchy.&lt;/p&gt;

&lt;p&gt;DQL:&lt;br/&gt;
SELECT partial v.&lt;/p&gt;
{id, setupDate, flipDate}
&lt;p&gt; FROM VIB\FliesBundle\Entity\Vial v WHERE v.id IN (1,2,3,4,5,6,7,8,9,10)&lt;/p&gt;

&lt;p&gt;SQL:&lt;br/&gt;
SELECT v0_.setupDate AS setupDate0, v0_.flipDate AS flipDate1, v0_.id AS id2, v0_.type AS type3, v0_.parent_id AS parent_id4, v0_.position_id AS position_id5, v0_.prevPosition_id AS prevPosition_id6, v0_.incubator_id AS incubator_id7, v0_.stock_id AS stock_id8, v0_.male_id AS male_id9, v0_.virgin_id AS virgin_id10, v0_.targetStock_id AS targetStock_id11, v0_.targetStockVial_id AS targetStockVial_id12 FROM Vial v0_ WHERE (v0_.id IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)) AND v0_.type IN (&apos;vial&apos;, &apos;stock&apos;, &apos;cross&apos;, &apos;injection&apos;)&lt;/p&gt;</description>
                <environment>Symfony2 project, Doctrine ORM with MySQL database backend</environment>
            <key id="15030">DDC-2495</key>
            <summary>Partial objects not working with STI</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="rejsmont">Radoslaw Ejsmont</reporter>
                        <labels>
                        <label>STI</label>
                        <label>dql</label>
                        <label>orm</label>
                        <label>partial</label>
                    </labels>
                <created>Mon, 10 Jun 2013 13:28:21 +0000</created>
                <updated>Tue, 11 Jun 2013 09:17:09 +0000</updated>
                                    <version>2.3.4</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20521" author="fabio.bat.silva" created="Mon, 10 Jun 2013 18:50:01 +0000"  >&lt;p&gt;Could you please provide your entities ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                    <comment id="20532" author="rejsmont" created="Tue, 11 Jun 2013 09:03:44 +0000"  >&lt;p&gt;This is the whole class hierarchy.&lt;/p&gt;</comment>
                    <comment id="20533" author="rejsmont" created="Tue, 11 Jun 2013 09:13:49 +0000"  >&lt;p&gt;I have actually noticed, that the &quot;partial&quot; keyword is ignored even for entities that are not using any inheritance schema. So it seems that this keyword is generally ignored.&lt;/p&gt;

&lt;p&gt;Right now the following query:&lt;/p&gt;

&lt;p&gt;SELECT e, partial p.&lt;/p&gt;
{id}
&lt;p&gt;, o, s FROM VIB\FliesBundle\Entity\StockVial e LEFT JOIN e.parent p LEFT JOIN e.position o LEFT JOIN e.stock s WHERE e.setupDate &amp;gt; :date AND e.trashed = false ORDER BY e.setupDate DESC ORDER BY e.id DESC&lt;/p&gt;

&lt;p&gt;would result in the following SQL:&lt;/p&gt;

&lt;p&gt;SELECT v0_.setupDate AS setupDate0, v0_.flipDate AS flipDate1, v0_.notes AS notes2, v0_.size AS size3, v0_.labelPrinted AS labelPrinted4, v0_.trashed AS trashed5, v0_.temperature AS temperature6, v0_.id AS id7, v1_.id AS id8, r2_.rackRow AS rackRow9, r2_.rackColumn AS rackColumn10, r2_.id AS id11, s3_.name AS name12, s3_.genotype AS genotype13, s3_.notes AS notes14, s3_.vendor AS vendor15, s3_.infoURL AS infoURL16, s3_.verified AS verified17, s3_.id AS id18, v0_.type AS type19, v0_.parent_id AS parent_id20, v0_.position_id AS position_id21, v0_.prevPosition_id AS prevPosition_id22, v0_.incubator_id AS incubator_id23, v0_.stock_id AS stock_id24, v1_.type AS type25, v1_.parent_id AS parent_id26, v1_.position_id AS position_id27, v1_.prevPosition_id AS prevPosition_id28, v1_.incubator_id AS incubator_id29, v1_.stock_id AS stock_id30, v1_.male_id AS male_id31, v1_.virgin_id AS virgin_id32, v1_.targetStock_id AS targetStock_id33, v1_.targetStockVial_id AS targetStockVial_id34, r2_.rack_id AS rack_id35, s3_.sourceCross_id AS sourceCross_id36 FROM Vial v0_ LEFT JOIN Vial v1_ ON v0_.parent_id = v1_.id AND v1_.type IN (&apos;vial&apos;, &apos;stock&apos;, &apos;cross&apos;, &apos;injection&apos;) LEFT JOIN RackPosition r2_ ON v0_.position_id = r2_.id LEFT JOIN Stock s3_ ON v0_.stock_id = s3_.id WHERE (v0_.setupDate &amp;gt; &apos;2013-04-11&apos; AND v0_.trashed = 0) AND v0_.type IN (&apos;stock&apos;) ORDER BY v0_.setupDate DESC, v0_.id DESC&lt;/p&gt;

&lt;p&gt;Please note that ALL properties of parent have been included in the generated SQL.&lt;/p&gt;

&lt;p&gt;You can find the whole project (Symfony2) on github: &lt;a href=&quot;https://github.com/rejsmont/LabDB&quot; class=&quot;external-link&quot;&gt;https://github.com/rejsmont/LabDB&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Best,&lt;/p&gt;

&lt;p&gt;R.&lt;/p&gt;</comment>
                    <comment id="20534" author="rejsmont" created="Tue, 11 Jun 2013 09:16:16 +0000"  >&lt;p&gt;I have noticed that using the setHint(Doctrine\ORM\Query::HINT_FORCE_PARTIAL_LOAD, 1) forces partial load, however then even the entities I want loaded entirely (with proxied references) are partially loaded (i.e. all the references are forced to null, unless explicitly loaded via join). &lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11612" name="CrossVial.php" size="12320" author="rejsmont" created="Tue, 11 Jun 2013 09:03:44 +0000" />
                    <attachment id="11617" name="Entity.php" size="1384" author="rejsmont" created="Tue, 11 Jun 2013 09:03:44 +0000" />
                    <attachment id="11613" name="InjectionVial.php" size="12621" author="rejsmont" created="Tue, 11 Jun 2013 09:03:44 +0000" />
                    <attachment id="11614" name="Stock.php" size="7145" author="rejsmont" created="Tue, 11 Jun 2013 09:03:44 +0000" />
                    <attachment id="11615" name="StockVial.php" size="3301" author="rejsmont" created="Tue, 11 Jun 2013 09:03:44 +0000" />
                    <attachment id="11616" name="Vial.php" size="15161" author="rejsmont" created="Tue, 11 Jun 2013 09:03:44 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2494] Proxy getId not invoke convertToPHPValue on custom type</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2494</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have a custom type tinyint:&lt;br/&gt;
&lt;a href=&quot;https://gist.github.com/entering/3503d7458e5fbe2f6e02&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/entering/3503d7458e5fbe2f6e02&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I was using it a lot and when I updated to doctrine 2.4 beta it break some stuff. At the time i turn all on smallint and solve the problem, now I had time to look into it. &lt;/p&gt;

&lt;p&gt;Example, entity Currency:&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;var&lt;/span&gt; integer
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;tinyint&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;, options={&lt;span class=&quot;code-quote&quot;&gt;&quot;unsigned&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;})
     * @ORM\Id
     * @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\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;temp&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;tinyint&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; $temp;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Entity Campaign:&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;var&lt;/span&gt; Currency
     *
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Currency&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;campaigns&quot;&lt;/span&gt;)
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;currency_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; $currency;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When i have this piece of 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;
var_dump($campaign-&amp;gt;getCurrency()-&amp;gt;getId());
var_dump($campaign-&amp;gt;getCurrency()-&amp;gt;getTemp());
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I get:&lt;br/&gt;
string(1) &quot;1&quot;&lt;br/&gt;
int(5)&lt;/p&gt;

&lt;p&gt;If I turn id into small int:&lt;br/&gt;
int(1)&lt;br/&gt;
int(5)&lt;/p&gt;

&lt;p&gt;If I switch the order to:&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;
var_dump($campaign-&amp;gt;getCurrency()-&amp;gt;getTemp());
var_dump($campaign-&amp;gt;getCurrency()-&amp;gt;getId());
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As expected:&lt;br/&gt;
int(5)&lt;br/&gt;
int(1)&lt;/p&gt;

&lt;p&gt;If I place a var_dump on convertToPHPValue I can see that is not being called on getId when getId is lazy.&lt;/p&gt;

&lt;p&gt;This looks like a bug introduced when getId started being lazy to save queries.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15028">DDC-2494</key>
            <summary>Proxy getId not invoke convertToPHPValue on custom type</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="entering">Eduardo Oliveira</reporter>
                        <labels>
                    </labels>
                <created>Sat, 8 Jun 2013 23:57:51 +0000</created>
                <updated>Wed, 12 Jun 2013 19:04:41 +0000</updated>
                    <resolved>Wed, 12 Jun 2013 19:04:41 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="20515" author="fabio.bat.silva" created="Mon, 10 Jun 2013 17:07:39 +0000"  >&lt;p&gt;Before &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; we ignore custom type fields while looking for &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/2.3/lib/Doctrine/ORM/Proxy/ProxyFactory.php#L293&quot; class=&quot;external-link&quot;&gt;identifier getters&lt;/a&gt;. &lt;br/&gt;
It mean that, when an identifier getter is called the entity will be loaded from database, even though the identifier value is already known.&lt;br/&gt;
Then the Type#convertToPHPValue will be invoked.. &lt;/p&gt;

&lt;p&gt;After we move the proxy generation to &lt;a href=&quot;https://github.com/doctrine/common/blob/master/lib/Doctrine/Common/Proxy/ProxyGenerator.php#L847&quot; class=&quot;external-link&quot;&gt;common&lt;/a&gt; custom types are ignored and the database load its no longer triggered.&lt;/p&gt;</comment>
                    <comment id="20522" author="entering" created="Mon, 10 Jun 2013 19:14:01 +0000"  >&lt;p&gt;I understand the problem, because I was aware that getId() now doesn&apos;t load entity from DB, what is great in performance, I was expecting this for a while.&lt;/p&gt;

&lt;p&gt;For me is really bad I cannot have ID&apos;s as tinyint (custom type), i suppose Doctrine doesn&apos;t support tinyint because is not present in all DB&apos;s, but some DB&apos;s like MySQL support it, I agree that Doctrine doesn&apos;t need to support all types out the box, but custom types should work exactly like native types, shouldn&apos;t be second class citizens.&lt;/p&gt;

&lt;p&gt;If this is a limitation that is difficult to overpass and there are no plans to &quot;fix&quot; it, should be listed here: &lt;a href=&quot;http://docs.doctrine-project.org/en/latest/reference/limitations-and-known-issues.html&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/en/latest/reference/limitations-and-known-issues.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And should be listed as BC in here: &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/UPGRADE.md&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/master/UPGRADE.md&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If there are plans to fix this problem and is just a case of someone put hands on the code I can give it a shot even I&apos;m not completely familiar with Doctrine code.&lt;/p&gt;</comment>
                    <comment id="20523" author="ocramius" created="Mon, 10 Jun 2013 19:23:02 +0000"  >&lt;p&gt;I don&apos;t think the bug is related with lazy loading. Identifiers are never hydrated into proxies anyway.&lt;/p&gt;

&lt;p&gt;What the problem here seems to be is that the type conversion is not applied to meta columns.&lt;/p&gt;

&lt;p&gt;You can check and see if there&apos;s code about type conversion in meta columns.&lt;/p&gt;</comment>
                    <comment id="20524" author="entering" created="Mon, 10 Jun 2013 20:34:37 +0000"  >&lt;p&gt;&quot;What the problem here seems to be is that the type conversion is not applied to meta columns.&quot;&lt;/p&gt;

&lt;p&gt;Marco I&apos;m not sure If I follow you.&lt;/p&gt;

&lt;p&gt;So when ID of entity Currency is a smallint a var_dump($campaign-&amp;gt;getCurrency()) give this: &lt;a href=&quot;https://gist.github.com/entering/5751908&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/entering/5751908&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;
  &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id =&amp;gt;
  string(1) &lt;span class=&quot;code-quote&quot;&gt;&quot;1&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Is a string, the cast is done on getId()&lt;/p&gt;

&lt;p&gt;Looking at the proxy created:&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;
    /**
     * {@inheritDoc}
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getId()
    {
       	&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__ === &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; (&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;)  parent::getId();
        }

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;__initializer__ &amp;amp;&amp;amp; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;__initializer__-&amp;gt;__invoke($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;, &apos;getId&apos;, array());

        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; parent::getId();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The cast is written here: &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/2.3/lib/Doctrine/ORM/Proxy/ProxyFactory.php#L259&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/2.3/lib/Doctrine/ORM/Proxy/ProxyFactory.php#L259&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Just to be sure I placed a var_dump inside convertToPHPValue of SmallIntType and on getId() is not called, but if I force the load of entity from DB (code below) converToPHPValue is called.&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;
var_dump($campaign-&amp;gt;getCurrency()-&amp;gt;getCode());
var_dump($campaign-&amp;gt;getCurrency()-&amp;gt;getId());
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So the problem here is that convertToPHPValue is never called on getId() on proxy when entity is not initialized, the problem is masked with the cast &quot;written on hand&quot; inside the getId().&lt;/p&gt;

&lt;p&gt;The way I see it the getId() on proxy should all the time call convertToPHPValue, that way it would be correct with all types (native and custom).&lt;/p&gt;

&lt;p&gt;The proxy with tinyint:&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;
    /**
     * {@inheritDoc}
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getId()
    {
        &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__ === &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt;  parent::getId();
        }


        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;__initializer__ &amp;amp;&amp;amp; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;__initializer__-&amp;gt;__invoke($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;, &apos;getId&apos;, array());

        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; parent::getId();
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Before custom tinyint was working on Identifiers because getId() would need to load entity from DB, the entity would be hydrate and the convertToPHPValue called at that time, now getId() doesn&apos;t load entity from DB so is never called.&lt;/p&gt;

&lt;p&gt;To me a cast (int) on proxy that is decided according the name type is a ugly hack, inside if ($this-&amp;gt;_&lt;em&gt;isInitialized&lt;/em&gt;_ === false) it should call all the time convertToPHPValue.&lt;/p&gt;</comment>
                    <comment id="20538" author="fabio.bat.silva" created="Tue, 11 Jun 2013 18:01:41 +0000"  >&lt;p&gt;A possible solution : &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/690&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/690&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20562" author="fabio.bat.silva" created="Wed, 12 Jun 2013 19:04:41 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/6937061b23ec4de63081efac800415e09dcbcb4f&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/6937061b23ec4de63081efac800415e09dcbcb4f&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<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-2492] [GH-688] Implement QuoteStrategy on SqlWalker walkRangeVariableDeclaration</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2492</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 johnbrown:&lt;/p&gt;

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

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

&lt;p&gt;Based on:&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1845&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1845&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/cb72219b118c158c9b5344c4b81ff2b1a9149ab0&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/cb72219b118c158c9b5344c4b81ff2b1a9149ab0&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="15026">DDC-2492</key>
            <summary>[GH-688] Implement QuoteStrategy on SqlWalker walkRangeVariableDeclaration</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Thu, 6 Jun 2013 22:13:32 +0000</created>
                <updated>Wed, 12 Jun 2013 19:05:56 +0000</updated>
                    <resolved>Wed, 12 Jun 2013 19:05:56 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20561" author="doctrinebot" created="Wed, 12 Jun 2013 19:03:30 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-688&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/688&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/688&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20563" author="ocramius" created="Wed, 12 Jun 2013 19:05:56 +0000"  >&lt;p&gt;Merged at &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/6ef48561baa6cd6e3da1304d7d815883be9a9af1&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/6ef48561baa6cd6e3da1304d7d815883be9a9af1&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

&lt;p&gt;Fixed some broken rendering on &lt;a href=&quot;http://docs.doctrine-project.org/en/latest/reference/yaml-mapping.html&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/en/latest/reference/yaml-mapping.html&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="15024">DDC-2491</key>
            <summary>[GH-687] Fixed rendering</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Thu, 6 Jun 2013 08:36:34 +0000</created>
                <updated>Thu, 6 Jun 2013 08:53:19 +0000</updated>
                    <resolved>Thu, 6 Jun 2013 08:53:19 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20488" author="doctrinebot" created="Thu, 6 Jun 2013 08:51:57 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-687&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/687&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/687&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20489" author="ocramius" created="Thu, 6 Jun 2013 08:53:19 +0000"  >&lt;p&gt;Merged at &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/5c7b98b2a990a1d7a6140e2c875f5ab6c3dc6f9f&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/5c7b98b2a990a1d7a6140e2c875f5ab6c3dc6f9f&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2490] EAGER associations are sometimes fetched through a Proxy non-eagerly</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2490</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In the UOW deferred eager load only works for single identifier classes.  But the implementation of deferred eager load uses a Proxy which lazy loads.  A boolean condition must be added to only use this deferred approach for non-EAGER relationships.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15021">DDC-2490</key>
            <summary>EAGER associations are sometimes fetched through a Proxy non-eagerly</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="tom_anderson">Tom Anderson</reporter>
                        <labels>
                    </labels>
                <created>Wed, 5 Jun 2013 17:13:28 +0000</created>
                <updated>Thu, 6 Jun 2013 03:43:24 +0000</updated>
                    <resolved>Thu, 6 Jun 2013 03:43:24 +0000</resolved>
                            <version>Git Master</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20487" author="tom_anderson" created="Thu, 6 Jun 2013 03:43:13 +0000"  >&lt;p&gt;This was caused because I was changing entities in postLoad based on == $entityClass vs instanceOf $entityClass so Proxies were not being processed in my function.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2489] Missing semicolon in schema update tool, using dump-sql argument</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2489</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When executing the schema-tool update script, using the --dump-sql argument (e.g.  &quot;app/console  doctrine:schema:update --dump-sql&quot; in a symfony2 project), the semicolon behind the last query is missing.&lt;/p&gt;
</description>
                <environment></environment>
            <key id="15020">DDC-2489</key>
            <summary>Missing semicolon in schema update tool, using dump-sql argument</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="rj_bijl">Robert-Jan</reporter>
                        <labels>
                        <label>Cli</label>
                        <label>schematool</label>
                    </labels>
                <created>Wed, 5 Jun 2013 13:37:14 +0000</created>
                <updated>Wed, 12 Jun 2013 04:26:25 +0000</updated>
                    <resolved>Wed, 12 Jun 2013 04:26:25 +0000</resolved>
                                                            <component>ORM</component>
                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20540" author="guilhermeblanco" created="Wed, 12 Jun 2013 04:26:25 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/0d834d0bd4015de2c103a03592c1543399f1b363&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/0d834d0bd4015de2c103a03592c1543399f1b363&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-2487] UnitOfWork::getEntityIdentifier() contains objects when custom mapping types are part of an entity&apos;s identity</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2487</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I&apos;m using a custom mapping type for a &lt;tt&gt;LocalDate&lt;/tt&gt; class (mapped to a &lt;tt&gt;DATE&lt;/tt&gt; field in the MySQL database).&lt;/p&gt;

&lt;p&gt;Given the following 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;
/**
 * @Entity
 */
class Timeslot
{
    /**
     * @Id
     * @ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Restaurant&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $restaurant;

    /**
     * @Id
     * @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;localdate&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $date;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When &lt;tt&gt;var_export()&lt;/tt&gt; -ing the result of &lt;tt&gt;UnitOfWork::getEntityIdentifier()&lt;/tt&gt; on an instance of this class, the result is similar to:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
array(
	&apos;restaurant&apos; =&amp;gt; &apos;5&apos;,
	&apos;date&apos; =&amp;gt; LocalDate::__set_state(array(&apos;year&apos; =&amp;gt; 2013, &apos;month&apos; =&amp;gt; 6, &apos;day&apos; =&amp;gt; 26))
)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is a bit weird, because as far as I understand it, it should return the identity as it maps to database fields: &lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
array(
	&apos;restaurant&apos; =&amp;gt; &apos;5&apos;,
	&apos;date&apos; =&amp;gt; &apos;2013-06-26&apos;
)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If we take the &lt;tt&gt;$restaurant&lt;/tt&gt; example, it returns the restaurant ID, and not the &lt;tt&gt;Restaurant&lt;/tt&gt; entity, so my opinion is that it should be the same for &lt;tt&gt;$date&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Shouldn&apos;t the &lt;tt&gt;UnitOfWork&lt;/tt&gt; use &lt;tt&gt;Type::convertToDatabaseValue()&lt;/tt&gt; on custom mapping types to infer their value, when computing the identity of an entity?&lt;/p&gt;
</description>
                <environment></environment>
            <key id="15016">DDC-2487</key>
            <summary>UnitOfWork::getEntityIdentifier() contains objects when custom mapping types are part of an entity&apos;s identity</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="benjamin">Benjamin Morel</reporter>
                        <labels>
                        <label>identity</label>
                    </labels>
                <created>Tue, 4 Jun 2013 13:35:55 +0000</created>
                <updated>Tue, 4 Jun 2013 14:42:17 +0000</updated>
                                    <version>2.3.4</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20472" author="ocramius" created="Tue, 4 Jun 2013 14:13:37 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=benjamin&quot; class=&quot;user-hover&quot; rel=&quot;benjamin&quot;&gt;Benjamin Morel&lt;/a&gt; why would getEntityIdentifier convert types? The UoW doesn&apos;t worry about the DBAL representation of the objects - actually, the UoW doesn&apos;t know of the DBAL at all.&lt;/p&gt;</comment>
                    <comment id="20473" author="benjamin" created="Tue, 4 Jun 2013 14:33:49 +0000"  >&lt;p&gt;Your point is valid, but that&apos;s still annoying. Why would getEntityIdentifier() return objects?&lt;br/&gt;
By the way, &lt;tt&gt;UnitOfWork&lt;/tt&gt; is aware of &lt;tt&gt;EntityManager&lt;/tt&gt;, and thus the &lt;tt&gt;Connection&lt;/tt&gt;, and thus the &lt;tt&gt;Platform&lt;/tt&gt;!&lt;br/&gt;
It does use the &lt;tt&gt;Connection&lt;/tt&gt; in &lt;tt&gt;commit()&lt;/tt&gt;.&lt;/p&gt;</comment>
                    <comment id="20474" author="ocramius" created="Tue, 4 Jun 2013 14:38:28 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=benjamin&quot; class=&quot;user-hover&quot; rel=&quot;benjamin&quot;&gt;Benjamin Morel&lt;/a&gt; that is because that is the identifier in your object. It&apos;s composed by the identifier of an associated entity and a datetime object (scalar)&lt;/p&gt;</comment>
                    <comment id="20475" author="benjamin" created="Tue, 4 Jun 2013 14:42:17 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=ocramius&quot; class=&quot;user-hover&quot; rel=&quot;ocramius&quot;&gt;Marco Pivetta&lt;/a&gt; Then why does it return the restaurant ID, and not the &lt;tt&gt;Restaurant&lt;/tt&gt; object?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2486] Getting started does not work with current release</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2486</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The tutorial states: &quot;This tutorial assumes you work with Doctrine 2.3 and above. Some of the code will not work with lower versions.&quot;&lt;/p&gt;

&lt;p&gt;I&apos;m using 2.3.4&lt;/p&gt;

&lt;p&gt;When running &quot;php vendor/bin/doctrine orm:schema-tool:create&quot;&lt;/p&gt;

&lt;p&gt;this happens:&lt;/p&gt;

&lt;p&gt;PHP Fatal error:  Call to undefined method Doctrine\ORM\Tools\Console\ConsoleRunner::createHelperSet() in /var/www/project/cli-config.php on line 5&lt;br/&gt;
PHP Stack trace:&lt;br/&gt;
PHP   1. &lt;/p&gt;
{main}() /var/www/project/vendor/doctrine/orm/bin/doctrine:0&lt;br/&gt;
PHP   2. include() /var/www/project/vendor/doctrine/orm/bin/doctrine:4&lt;br/&gt;
PHP   3. require() /var/www/project/vendor/doctrine/orm/bin/doctrine.php:31&lt;br/&gt;
&lt;br/&gt;
Fatal error: Call to undefined method Doctrine\ORM\Tools\Console\ConsoleRunner::createHelperSet() in /var/www/project/cli-config.php on line 5&lt;br/&gt;
&lt;br/&gt;
Call Stack:&lt;br/&gt;
    0.0001     619840   1. {main}
&lt;p&gt;() /var/www/project/vendor/doctrine/orm/bin/doctrine:0&lt;br/&gt;
    0.0003     632072   2. include(&apos;/var/www/project/vendor/doctrine/orm/bin/doctrine.php&apos;) /var/www/project/vendor/doctrine/orm/bin/doctrine:4&lt;br/&gt;
    0.0012     730208   3. require(&apos;/var/www/project/cli-config.php&apos;) /var/www/project/vendor/doctrine/orm/bin/doctrine.php:31&lt;/p&gt;

&lt;p&gt;This is because some commits are not yet in the release. The current GIT version probably works but is not an option for me.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15015">DDC-2486</key>
            <summary>Getting started does not work with current release</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="haggi">Julian Picht</reporter>
                        <labels>
                    </labels>
                <created>Tue, 4 Jun 2013 10:57:42 +0000</created>
                <updated>Tue, 11 Jun 2013 17:02:36 +0000</updated>
                                    <version>2.3.4</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20536" author="goatrider" created="Tue, 11 Jun 2013 15:43:02 +0000"  >&lt;p&gt;I&apos;m seeing this problem too. Kinda hard to learn Doctrine when the tutorial is brain dead.&lt;/p&gt;</comment>
                    <comment id="20537" author="goatrider" created="Tue, 11 Jun 2013 17:02:36 +0000"  >&lt;p&gt;&quot;CreateHelperSet&quot; appears to be a method in 2.4. I adapted the &quot;2.3 configuring the command line&quot; code to make my &quot;cli-config.php&quot; file read like this, and it appears to work:&lt;/p&gt;

&lt;p&gt;&amp;lt;?php&lt;br/&gt;
// cli-config.php&lt;br/&gt;
require_once &quot;bootstrap.php&quot;;&lt;/p&gt;

&lt;p&gt;$em = $entityManager;&lt;/p&gt;

&lt;p&gt;$helperSet = new \Symfony\Component\Console\Helper\HelperSet(array(&lt;br/&gt;
    &apos;db&apos; =&amp;gt; new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($em-&amp;gt;getConnection()),&lt;br/&gt;
    &apos;em&apos; =&amp;gt; new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($em)&lt;br/&gt;
));&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2485] [GH-685] Functional ticket for DDC-2484</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2485</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 TomHAnderson:&lt;/p&gt;

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

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

&lt;p&gt;This shows how the postLoad can change an entity but associations are not passed through postLoad&lt;/p&gt;</description>
                <environment></environment>
            <key id="15013">DDC-2485</key>
            <summary>[GH-685] Functional ticket for DDC-2484</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 3 Jun 2013 22:58:57 +0000</created>
                <updated>Mon, 3 Jun 2013 22:58:57 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2484] Lazy loaded associated entities do not trigger the postLoad event</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2484</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;An entity retrieved with $entity = $em-&amp;gt;find will correctly trigger the postLoad event but an entity associated with that entity $association = $entity-&amp;gt;association which is lazy loaded will retrieve and return the associated entity without triggering postLoad.  Eager loading does follow the lifecycle path of triggering postLoad.&lt;/p&gt;

&lt;p&gt;Functional Test:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/685&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/685&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="15012">DDC-2484</key>
            <summary>Lazy loaded associated entities do not trigger the postLoad event</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="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="tom_anderson">Tom Anderson</reporter>
                        <labels>
                        <label>event</label>
                        <label>orm</label>
                    </labels>
                <created>Mon, 3 Jun 2013 22:13:52 +0000</created>
                <updated>Thu, 13 Jun 2013 13:55:17 +0000</updated>
                                    <version>Git Master</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20520" author="fabio.bat.silva" created="Mon, 10 Jun 2013 18:29:59 +0000"  >&lt;p&gt;Hi Tom,&lt;/p&gt;

&lt;p&gt;You CANNOT check the entity class by using get_class, doctrine uses the &lt;a href=&quot;http://en.wikipedia.org/wiki/Proxy_pattern&quot; class=&quot;external-link&quot;&gt;pattern proxy&lt;/a&gt; to delay the load from database.&lt;/p&gt;

&lt;p&gt;Then &lt;b&gt;$args-&amp;gt;getEntity()&lt;/b&gt; might be a different class that extends your entity&lt;br/&gt;
In this case you should always check using instanceof :&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 = $args-&amp;gt;getEntity();

&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($entity &lt;span class=&quot;code-keyword&quot;&gt;instanceof&lt;/span&gt; DDC2484_Car) {
    $entity-&amp;gt;setBrand(&apos;BMW&apos;);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Also when you try to load the same entity more than once :&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;
$eagerDriver-&amp;gt;getCar();
$lazyDriver-&amp;gt;getCar();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The entity will be cached at the first time, triggering onLoad just once.&lt;/p&gt;

&lt;p&gt;It means that the entity will be always the same instance, &lt;br/&gt;
it&apos;s not loaded from database untill you clean up the entity manager.&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;assertSame($eagerDriver-&amp;gt;getCar(), $lazyDriver-&amp;gt;getCar());&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2483] [GH-684] Cancel load entity exception</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2483</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 TomHAnderson:&lt;/p&gt;

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

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

&lt;p&gt;Gives the developer an exception to throw in postLoad which will cancel the loading of the entity into the EntityManager&lt;/p&gt;</description>
                <environment></environment>
            <key id="15011">DDC-2483</key>
            <summary>[GH-684] Cancel load entity exception</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, 3 Jun 2013 21:50:57 +0000</created>
                <updated>Mon, 10 Jun 2013 17:09:23 +0000</updated>
                    <resolved>Mon, 10 Jun 2013 17:09:23 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20506" author="doctrinebot" created="Sat, 8 Jun 2013 16:30:23 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-684&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/684&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/684&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20516" author="fabio.bat.silva" created="Mon, 10 Jun 2013 17:09:23 +0000"  >&lt;p&gt;See &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/684&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/684&lt;/a&gt; for more information&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2482] [GH-683] Explicitely state what the problem is</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2482</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 greg0ire:&lt;/p&gt;

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

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

&lt;p&gt;People like me think the problem is that there is no association&lt;br/&gt;
mapping, when the problem in fact could be that there also is a field&lt;br/&gt;
mapping on the property.&lt;br/&gt;
This message makes it clearer why we are getting an error message.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15009">DDC-2482</key>
            <summary>[GH-683] Explicitely state what the problem is</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 3 Jun 2013 10:15:19 +0000</created>
                <updated>Mon, 3 Jun 2013 10:38:08 +0000</updated>
                    <resolved>Mon, 3 Jun 2013 10:37:57 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20467" author="doctrinebot" created="Mon, 3 Jun 2013 10:37:45 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-683&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/683&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/683&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20468" author="ocramius" created="Mon, 3 Jun 2013 10:37:57 +0000"  >&lt;p&gt;Merged at &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/3d6436c2f337d9e276c232e81a0e444edca98c8f&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/3d6436c2f337d9e276c232e81a0e444edca98c8f&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2481] [GH-682] onLoad Event</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2481</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 TomHAnderson:&lt;/p&gt;

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

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

&lt;p&gt;This PR implements the onLoad event which provides a mutable entity and entity load cancellation.  &lt;/p&gt;</description>
                <environment></environment>
            <key id="15008">DDC-2481</key>
            <summary>[GH-682] onLoad Event</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="4">Incomplete</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 3 Jun 2013 06:36:57 +0000</created>
                <updated>Mon, 3 Jun 2013 20:26:27 +0000</updated>
                    <resolved>Mon, 3 Jun 2013 20:26:27 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20470" author="doctrinebot" created="Mon, 3 Jun 2013 19:21:39 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-682&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/682&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/682&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20471" author="ocramius" created="Mon, 3 Jun 2013 20:26:27 +0000"  >&lt;p&gt;Closed in favour of another approach.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2480] Filter stops working after upgrade to Symfony 2.3rc1</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2480</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In our project we have two associated entities &quot;portal&quot; and &quot;object_data&quot;. To get all object_data of an object that belong to a portal, we use filtering code like this since symfony 2.0:&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;
        $object_data = $object-&amp;gt;getObjectData()-&amp;gt;filter(
            function ($current_object_data) use ($portal) {
                &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $current_object_data-&amp;gt;getPortal() === $portal;
            }
        )-&amp;gt;first();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Up to now, this worked just fine. When upgrading from Symfony 2.2 to 2.3rc1, this code stopped working, the comparison will always be false. I also received a PHP error message in another place about the portal entity not being convertible to a string:&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 Catchable fatal error:  &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt; of class ...\\Entity\\Portal 
could not be converted to string in /.../vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php on line 1211
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I assume these problems are related. Since the code worked just fine from Symfony 2.0 to 2.2, I assume that this might be a regression. Could you kindly take a look at this and perhaps let me know if I did anything wrong?&lt;/p&gt;

&lt;p&gt;We use direct entity comparisons in many places in our code, rather than comparing the ids of the entities directly, and so far it worked just fine.&lt;/p&gt;

&lt;p&gt;Thanks a lot!&lt;/p&gt;</description>
                <environment>Mac OS, Symfony 2.3rc1</environment>
            <key id="15006">DDC-2480</key>
            <summary>Filter stops working after upgrade to Symfony 2.3rc1</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="mgruner">Martin Gruner</reporter>
                        <labels>
                        <label>orm</label>
                        <label>regression</label>
                    </labels>
                <created>Sat, 1 Jun 2013 12:12:35 +0000</created>
                <updated>Thu, 13 Jun 2013 15:30:32 +0000</updated>
                    <resolved>Thu, 13 Jun 2013 15:30:32 +0000</resolved>
                            <version>2.3.4</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20464" author="ocramius" created="Mon, 3 Jun 2013 08:26:30 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=mgruner&quot; class=&quot;user-hover&quot; rel=&quot;mgruner&quot;&gt;Martin Gruner&lt;/a&gt; the issue is incomplete - can you provide a failing example or even better a test case?&lt;/p&gt;</comment>
                    <comment id="20566" author="mgruner" created="Thu, 13 Jun 2013 15:30:32 +0000"  >&lt;p&gt;Sorry for the delay. This issue was caused by a bug about aliased services in symfony 2.3.0 and is fixed in 2.3.1. We likely had more than one instance of the entity manager present leading to the wrong behaviour.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2479] Add possibility to only query for root entities in a class table inheritance</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2479</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;It is not possible to query for root/topmost class entities (only) in a class table inheritance situation without extra JOINs to the child entities/classes.&lt;/p&gt;

&lt;p&gt;E.g.&lt;br/&gt;
Person -&amp;gt; root entity/class&lt;br/&gt;
Employee -&amp;gt; child entity/class extending Person&lt;/p&gt;

&lt;p&gt;The DQL:&lt;/p&gt;

&lt;p&gt;SELECT p&lt;br/&gt;
FROM Person p;&lt;/p&gt;

&lt;p&gt;also joins Employee even though I am not interested in Employee properties.&lt;/p&gt;


&lt;p&gt;Person is the base class in this use case and it should be possible to only retrieve those information. Thinking of OOP, if I instanciate Person I do not have any reference to its child either.&lt;br/&gt;
This is especially useful for large base tables where you want to only retrieve base information without inferring the childs.&lt;/p&gt;

&lt;p&gt;IMO the DQL should be modified to allow selecting root/base information only, similar to the INSTANCE OF operator, that allows selecting specific childs only.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15004">DDC-2479</key>
            <summary>Add possibility to only query for root entities in a class table inheritance</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="deeky666">Steve M&#252;ller</reporter>
                        <labels>
                        <label>dql,</label>
                        <label>inheritance</label>
                    </labels>
                <created>Thu, 30 May 2013 19:32:05 +0000</created>
                <updated>Thu, 30 May 2013 19:32:05 +0000</updated>
                                                                    <component>DQL</component>
                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <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-2477] [GH-681] Sequence generator fix</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2477</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 lighthart:&lt;/p&gt;

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

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

&lt;p&gt;$this-&amp;gt;_sequenceName=$em-&amp;gt;getClassMetadata(get_class($entity))-&amp;gt;sequenceGeneratorDefinition&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;sequenceName&amp;#39;&amp;#93;&lt;/span&gt;;&lt;/p&gt;

&lt;p&gt;The sequence generator does not read the class metadata, so if there is table remapping via event listeners, any new entity won&apos;t have the appropriate changes in table names.&lt;/p&gt;

&lt;p&gt;This pull request adds a remap the Sequence Generator to read the class metadata to determine the sequence name if there is an entity passed to the generate function.&lt;/p&gt;

&lt;p&gt;Tests: 1854, Assertions: 6224, Skipped: 96.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15002">DDC-2477</key>
            <summary>[GH-681] Sequence generator fix</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 May 2013 17:41:46 +0000</created>
                <updated>Wed, 29 May 2013 17:41:46 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2476] [GH-680] [wip] better reverse engineers the mapping metadata from a database</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2476</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 bronze1man:&lt;/p&gt;

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

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

&lt;ol&gt;
	&lt;li&gt;The problem:&lt;br/&gt;
1.use symfony2 doctrine:mapping:import from msyql database to annotation&lt;br/&gt;
2.use symfony2 doctrine:schema:update will see a lot of sql update about just import database schema.&lt;br/&gt;
3.this PR fix eliminate some of those sql update...&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;has fixed problem:&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
	&lt;li&gt;column default&lt;/li&gt;
	&lt;li&gt;column unsigned (add test)&lt;/li&gt;
	&lt;li&gt;column comment&lt;/li&gt;
	&lt;li&gt;column type decimal with precision and scale&lt;/li&gt;
	&lt;li&gt;table with simple index&lt;/li&gt;
	&lt;li&gt;table with unique index&lt;/li&gt;
&lt;/ul&gt;

</description>
                <environment></environment>
            <key id="15000">DDC-2476</key>
            <summary>[GH-680] [wip] better reverse engineers the mapping metadata from a database</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 May 2013 02:51:45 +0000</created>
                <updated>Wed, 12 Jun 2013 05:56:36 +0000</updated>
                    <resolved>Wed, 12 Jun 2013 05:56:36 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20542" author="doctrinebot" created="Wed, 12 Jun 2013 05:56:27 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-680&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/680&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/680&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20543" author="guilhermeblanco" created="Wed, 12 Jun 2013 05:56:27 +0000"  >&lt;p&gt;Fixed: &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/3d86c82a7fb51875d1b6c66b865134c9ccf1a878&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/3d86c82a7fb51875d1b6c66b865134c9ccf1a878&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20544" author="guilhermeblanco" created="Wed, 12 Jun 2013 05:56:36 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/3d86c82a7fb51875d1b6c66b865134c9ccf1a878&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/3d86c82a7fb51875d1b6c66b865134c9ccf1a878&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-2474] [GH-679] Fix getting started doc to work with current version</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2474</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 ajgarlag:&lt;/p&gt;

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

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

&lt;p&gt;The `cli-config.php` example provided at the getting started tutorial does not work with doctrine 2.4.&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14997">DDC-2474</key>
            <summary>[GH-679] Fix getting started doc to work with current version</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 May 2013 06:54:49 +0000</created>
                <updated>Tue, 28 May 2013 07:38:03 +0000</updated>
                    <resolved>Tue, 28 May 2013 07:36:51 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20451" author="doctrinebot" created="Tue, 28 May 2013 07:36:25 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-679&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/679&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/679&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20452" author="ocramius" created="Tue, 28 May 2013 07:36:51 +0000"  >&lt;p&gt;Merged at &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/4e8b787d072fe48e798a1bd5cd05f08e9a083525&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/4e8b787d072fe48e798a1bd5cd05f08e9a083525&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2473] [GH-678] Fix an instance of doubled words in the docs</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2473</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 jbafford:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14995">DDC-2473</key>
            <summary>[GH-678] Fix an instance of doubled words in the docs</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 27 May 2013 15:40:08 +0000</created>
                <updated>Mon, 27 May 2013 15:52:18 +0000</updated>
                    <resolved>Mon, 27 May 2013 15:52:18 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20447" author="doctrinebot" created="Mon, 27 May 2013 15:51:44 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-678&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/678&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/678&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20448" author="ocramius" created="Mon, 27 May 2013 15:52:18 +0000"  >&lt;p&gt;merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2472] [GH-677] Type fix in ORM\PersistentCollection</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2472</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 michaldudek:&lt;/p&gt;

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

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

&lt;p&gt;The ```ORM\PersistentCollection``` class accepts anything as 3rd argument to its constructor while it should be either array or ```Collection``` object. The ```$this-&amp;gt;coll``` phpdoc says that it&apos;s a ```Collection``` while the constructor&apos;s phpdoc says it&apos;s an array.&lt;/p&gt;

&lt;p&gt;The class assumes ```Collection``` but there isn&apos;t any type check at all. I have added conversion of array into ```ArrayCollection``` in the constructor as in some (very unclear) cases it likes to die with a fatal error:&lt;/p&gt;

&lt;p&gt;```Fatal error: Call to a member function add() on a non-object in Doctrine/ORM/PersistentCollection.php on line 169```&lt;/p&gt;</description>
                <environment></environment>
            <key id="14993">DDC-2472</key>
            <summary>[GH-677] Type fix in ORM\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="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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 27 May 2013 15:01:39 +0000</created>
                <updated>Mon, 27 May 2013 15:52:26 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20449" author="doctrinebot" created="Mon, 27 May 2013 15:52:26 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-677&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/677&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/677&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2471] Incorrect EQ/NEQ null handling of criteria</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2471</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description></description>
                <environment></environment>
            <key id="14990">DDC-2471</key>
            <summary>Incorrect EQ/NEQ null handling of criteria</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="asm89">Alexander</assignee>
                                <reporter username="asm89">Alexander</reporter>
                        <labels>
                    </labels>
                <created>Sun, 26 May 2013 05:46:23 +0000</created>
                <updated>Sun, 26 May 2013 07:17:03 +0000</updated>
                    <resolved>Sun, 26 May 2013 07:16:39 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20442" author="asm89" created="Sun, 26 May 2013 07:17:03 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/e5de0dad7ef502037a6f45eded0e02e8b5ebdf47&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/e5de0dad7ef502037a6f45eded0e02e8b5ebdf47&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-2469] SQLite handling for ENUM-Fields</title>
                <link>http://www.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://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="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-2468] xml schema incomplete</title>
                <link>http://www.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://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="dbu">David Buchmann</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 May 2013 15:48:27 +0000</created>
                <updated>Sun, 26 May 2013 04:44:59 +0000</updated>
                    <resolved>Sun, 26 May 2013 04:44:59 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20433" author="beberlei" created="Sun, 26 May 2013 04:41:37 +0000"  >&lt;p&gt;These are not lifecycle events? I am not sure they are necessary here.&lt;/p&gt;</comment>
                    <comment id="20434" author="beberlei" created="Sun, 26 May 2013 04:44:59 +0000"  >&lt;p&gt;Fixed cascade-detach missing&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2467] Incorrect work with default values, indexes, autoincrement (patch attached)</title>
                <link>http://www.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://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></environment>
            <key id="14982">DDC-2467</key>
            <summary>Incorrect work with default values, indexes, autoincrement (patch attached)</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="and">And</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 May 2013 07:18:52 +0000</created>
                <updated>Tue, 28 May 2013 17:02:36 +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>
                    <comment id="20454" author="and" created="Tue, 28 May 2013 16:06:30 +0000"  >&lt;p&gt;When it will be merged? Maybe, planned version?&lt;/p&gt;</comment>
                    <comment id="20455" author="ocramius" created="Tue, 28 May 2013 16:15:24 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=and&quot; class=&quot;user-hover&quot; rel=&quot;and&quot;&gt;And&lt;/a&gt; such a patch requires failing tests before being applied - that&apos;s up to whoever picks it up.&lt;/p&gt;</comment>
                    <comment id="20456" author="and" created="Tue, 28 May 2013 16:18:48 +0000"  >&lt;p&gt;So if I add patch with tests - it will be merged? =)&lt;/p&gt;</comment>
                    <comment id="20457" author="ocramius" created="Tue, 28 May 2013 17:02:36 +0000"  >&lt;p&gt;Most probably - you can open a pull request against the current ORM master for that&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-2466] [GH-676] Update UnitOfWork.php</title>
                <link>http://www.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://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="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://www.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://www.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-2465] ProxyClass load, and empty ids</title>
                <link>http://www.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://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="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://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;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://www.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-2464] useless index for the middle table of many-to-many relationship</title>
                <link>http://www.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://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="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-2463] [GH-675] Implementation for &apos;IsNot&apos;-Comparison</title>
                <link>http://www.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://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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 20 May 2013 11:19:03 +0000</created>
                <updated>Sun, 26 May 2013 07:17:57 +0000</updated>
                    <resolved>Sun, 26 May 2013 07:17:57 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20443" author="asm89" created="Sun, 26 May 2013 07:17:57 +0000"  >&lt;p&gt;Already fixed with:&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2471&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2471&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2462] [GH-674] Shortcut for force</title>
                <link>http://www.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://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="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-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-2459] ANSI compliant quote strategy.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2459</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In order to simplify and speed up the sql generation&lt;br/&gt;
an ANSI quote strategy would be useful.&lt;/p&gt;

&lt;p&gt;The implementation would be something 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;
&amp;lt;?php
class AnsiQuoteStrategy &lt;span class=&quot;code-keyword&quot;&gt;implements&lt;/span&gt; \Doctrine\ORM\Mapping\QuoteStrategy
{
    /**
     * {@inheritdoc}
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getColumnName($fieldName, ClassMetadata $class, AbstractPlatform $platform)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $class-&amp;gt;fieldMappings[$fieldName][&apos;columnName&apos;];
    }

    /**
     * {@inheritdoc}
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getTableName(ClassMetadata $class, AbstractPlatform $platform)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $class-&amp;gt;table[&apos;name&apos;];
    }

    /**
     * {@inheritdoc}
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getSequenceName(array $definition, ClassMetadata $class, AbstractPlatform $platform)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $definition[&apos;sequenceName&apos;];
    }

    /**
     * {@inheritdoc}
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getJoinColumnName(array $joinColumn, ClassMetadata $class, AbstractPlatform $platform)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $joinColumn[&apos;name&apos;];
    }

    /**
     * {@inheritdoc}
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getReferencedJoinColumnName(array $joinColumn, ClassMetadata $class, AbstractPlatform $platform)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $joinColumn[&apos;referencedColumnName&apos;];
    }

    /**
     * {@inheritdoc}
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getJoinTableName(array $association, ClassMetadata $class, AbstractPlatform $platform)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $association[&apos;joinTable&apos;][&apos;name&apos;];
    }

    /**
     * {@inheritdoc}
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getIdentifierColumnNames(ClassMetadata $class, AbstractPlatform $platform)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $class-&amp;gt;identifier;
    }

    /**
     * {@inheritdoc}
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getColumnAlias($columnName, $counter, AbstractPlatform $platform, ClassMetadata $class = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $platform-&amp;gt;getSQLResultCashing($columnName . $counter);
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14967">DDC-2459</key>
            <summary>ANSI compliant quote strategy.</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="fabio.bat.silva">Fabio B. Silva</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 May 2013 17:31:41 +0000</created>
                <updated>Fri, 17 May 2013 17:35:45 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <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-2455] Setting classes in the entity manager</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2455</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I am creating my own bundle in Sf2 which will be used for third libraries, but I need to provide some simple and complex queries from this. &lt;br/&gt;
For simple queries i have no problem because I set the repository with the class from the third library.&lt;br/&gt;
Something like this:&lt;/p&gt;

&lt;p&gt;    $this-&amp;gt;repository = $this-&amp;gt;em-&amp;gt;getRepository($className);&lt;br/&gt;
    $result = $this-&amp;gt;repository&lt;br/&gt;
                -&amp;gt;createQueryBuilder(&quot;c&quot;)&lt;br/&gt;
                -&amp;gt;select(&apos;c, d, e&apos;)&lt;br/&gt;
                -&amp;gt;join(&quot;c.groups&quot;, &quot;d&quot;)&lt;br/&gt;
                -&amp;gt;join(&quot;d.users&quot;, &quot;e&quot;)&lt;br/&gt;
                -&amp;gt;where(&quot;e.id = :userId&quot;)&lt;br/&gt;
                -&amp;gt;setParameter(&quot;userId&quot;, $userId);&lt;/p&gt;

&lt;p&gt;    return $result-&amp;gt;getQuery()-&amp;gt;getResult();&lt;/p&gt;

&lt;p&gt;But when I need complex queries i have to work with the Entity Manager instead of working with the Repository. So tables are named as MyBundle (Group), but not how the third library named (sf_group). As a consequence the SQL throws an error saying that my table does not exist.&lt;br/&gt;
This is how I am trying to retrieve:&lt;/p&gt;

&lt;p&gt;    $query = $this-&amp;gt;em-&amp;gt;createQuery(&quot;SELECT p FROM Groups p&quot;);&lt;/p&gt;

&lt;p&gt;I sent the className as the entity to avoid this. Something like:&lt;/p&gt;

&lt;p&gt;    $query = $this-&amp;gt;em-&amp;gt;createQuery(&quot;SELECT p FROM &quot;.$this-&amp;gt;className.&quot; p&quot;);&lt;/p&gt;

&lt;p&gt;However i need a lot of queries with JOINs, so i would have to change every entity name, which is not convenient.&lt;/p&gt;

&lt;p&gt;What another way could I implemment this?&lt;/p&gt;

&lt;p&gt;Thanks for your help.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14962">DDC-2455</key>
            <summary>Setting classes in the entity manager</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="pcastrotigre">Petter Castro</reporter>
                        <labels>
                        <label>entitymanager</label>
                    </labels>
                <created>Thu, 16 May 2013 17:02:30 +0000</created>
                <updated>Sun, 26 May 2013 05:30:38 +0000</updated>
                    <resolved>Sun, 26 May 2013 05:30:38 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20438" author="beberlei" created="Sun, 26 May 2013 05:30:38 +0000"  >&lt;p&gt;This is a question for the mailinglist.&lt;/p&gt;

&lt;p&gt;createQueryBuilder() and createQuery() have exactly the same functionality. Just a different API. You can do the same with both.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2454] To-Many OrderBy mechanism should allow many-to-one associations</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2454</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 ProductCategory
{
    /**
     * Store
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Store
     *
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Store&quot;&lt;/span&gt;)
     * @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;store_id&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;store_id&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $Store;

    /**
     * storeId (&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ordering in Product::ProductCategories only)
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;store_id&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;private&lt;/span&gt; $storeId;
...

class Product
{
    /**
     * Associated categories
     *
     * @&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;ProductCategory&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;Product&quot;&lt;/span&gt;)
     * @ORM\OrderBy({&lt;span class=&quot;code-quote&quot;&gt;&quot;storeId&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;ASC&quot;&lt;/span&gt;})
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $ProductCategories;
}
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;If it is possible now to sort the ProductCategories collection by the storeId field, it should also be possible to sort them by the Store association. Currently a set of two fields is required: Store as a regular Many-To-One association and if a need arises to be able to use it to sort the One-To-Many collections then storeId needs to be added to the ProductCategory entity. In that case the ProductCategory entity does not pass the schema validation but is perfectly usable.&lt;/p&gt;

&lt;p&gt;This should be allowed:&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 Product
{
    /**
     * Associated categories
     *
     * @&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;ProductCategory&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;Product&quot;&lt;/span&gt;)
     * @ORM\OrderBy({&lt;span class=&quot;code-quote&quot;&gt;&quot;Store&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;ASC&quot;&lt;/span&gt;})
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $ProductCategories;
}

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14961">DDC-2454</key>
            <summary>To-Many OrderBy mechanism should allow many-to-one associations</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="deatheriam">Oleg Namaka</reporter>
                        <labels>
                        <label>association</label>
                        <label>orderBy</label>
                    </labels>
                <created>Thu, 16 May 2013 16:55:59 +0000</created>
                <updated>Thu, 16 May 2013 17:27:53 +0000</updated>
                                                                    <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2453] [GH-668] [WIP] Adding failing test for DDC-2452</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2453</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/668&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/668&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;DQL joins between JTI entities produce invalid SQL when additional conditions are inserted via WITH clause&lt;/p&gt;

&lt;p&gt;Still working on a fix&lt;/p&gt;</description>
                <environment></environment>
            <key id="14959">DDC-2453</key>
            <summary>[GH-668] [WIP] Adding failing test for DDC-2452</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="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 May 2013 14:31:41 +0000</created>
                <updated>Thu, 16 May 2013 14:36:08 +0000</updated>
                    <resolved>Thu, 16 May 2013 14:36:08 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20389" author="ocramius" created="Thu, 16 May 2013 14:36:08 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2452&quot; title=&quot;Additional `WITH` condition in joins between JTI roots cause invalid SQL to be produced&quot;&gt;DDC-2452&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-2450] Exception throwen when use --dump-sql</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2450</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;
php app/console doctrine:schema:update --dump-sql &amp;gt; a.sql



  [Doctrine\DBAL\Schema\SchemaException]
  The table with name &apos;xxx.message76&apos; already exists.



doctrine:schema:update [--complete] [--dump-sql] [--force] [--em[=&lt;span class=&quot;code-quote&quot;&gt;&quot;...&quot;&lt;/span&gt;]]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>symfony 2.3-dev</environment>
            <key id="14956">DDC-2450</key>
            <summary>Exception throwen when use --dump-sql</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="7">Can&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="koc">Konstantin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 May 2013 09:41:46 +0000</created>
                <updated>Thu, 16 May 2013 11:34:45 +0000</updated>
                    <resolved>Thu, 16 May 2013 10:34:10 +0000</resolved>
                            <version>2.3.4</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20386" author="ocramius" created="Thu, 16 May 2013 10:34:10 +0000"  >&lt;p&gt;The DBAL can only extract schema definitions from the current DB, so it won&apos;t know if there are tables in other databases that are already existing&lt;/p&gt;</comment>
                    <comment id="20387" author="koc" created="Thu, 16 May 2013 11:04:39 +0000"  >&lt;p&gt;I haven&apos;t this exception week ago. What I&apos;d changed? How can I fix it?&lt;/p&gt;</comment>
                    <comment id="20388" author="ocramius" created="Thu, 16 May 2013 11:34:45 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=koc&quot; class=&quot;user-hover&quot; rel=&quot;koc&quot;&gt;Konstantin&lt;/a&gt; what platform are you currently on? Can you provide the mappings to reproduce the problem?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2449] Amazon Redshift Support</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2449</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;It would be nice to get doctrine compatible with Amazon Redshift. It uses a Postgres connector but there are some differences. I&apos;m currently facing an issue with the primary id, in Redshift the generation of an id is different from Postgres and so I&apos;m getting errors associated with generating an id.&lt;/p&gt;

&lt;p&gt;Here are some references that might be useful:&lt;br/&gt;
node-orm faced the same issue and seems like they figured it out: &lt;a href=&quot;https://github.com/dresende/node-orm2/issues/39&quot; class=&quot;external-link&quot;&gt;https://github.com/dresende/node-orm2/issues/39&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Amazon Manual:&lt;br/&gt;
&lt;a href=&quot;http://awsdocs.s3.amazonaws.com/redshift/latest/redshift-dg.pdf&quot; class=&quot;external-link&quot;&gt;http://awsdocs.s3.amazonaws.com/redshift/latest/redshift-dg.pdf&lt;/a&gt;&lt;/p&gt;</description>
                <environment>Amazon Redshift</environment>
            <key id="14955">DDC-2449</key>
            <summary>Amazon Redshift Support</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="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="kfuchs">Kirill F</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 May 2013 23:08:21 +0000</created>
                <updated>Wed, 15 May 2013 23:09:12 +0000</updated>
                                                                    <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2448] orm:schema-tool:update reports already updated NUMERIC fields</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2448</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have a table defined in this way:&lt;/p&gt;

&lt;p&gt;CREATE TABLE `my_table` (&lt;br/&gt;
  `id` int(10) NOT NULL AUTO_INCREMENT,&lt;br/&gt;
  `subtotal` decimal(10,2) DEFAULT NULL,&lt;br/&gt;
  PRIMARY KEY (`id`)&lt;br/&gt;
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;&lt;/p&gt;

&lt;p&gt;When I run&lt;br/&gt;
    php doctrine.php  orm:schema-tool:update --dump-sql&lt;/p&gt;

&lt;p&gt;I get&lt;br/&gt;
ALTER TABLE my_table CHANGE subtotal subtotal NUMERIC(10, 2) DEFAULT NULL;&lt;/p&gt;

&lt;p&gt;While of course the field is already updated. The same happens in SQL Server 2008 and Postgres 9.&lt;/p&gt;</description>
                <environment>PHP 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli) (built: Mar 11 2013 14:31:48) &lt;br/&gt;
Mysql version: 5.5.31-0ubuntu0.12.04.1 (Ubuntu)</environment>
            <key id="14948">DDC-2448</key>
            <summary>orm:schema-tool:update reports already updated NUMERIC fields</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="osvi">Francesco Montefoschi</reporter>
                        <labels>
                    </labels>
                <created>Tue, 14 May 2013 09:09:13 +0000</created>
                <updated>Tue, 14 May 2013 09:09:13 +0000</updated>
                                    <version>2.3.4</version>
                                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2447] [GH-667] DQL: Allow parameter name to start with any allowed character</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2447</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 juzna:&lt;/p&gt;

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

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

&lt;p&gt;Especially, do not require it to start with a letter. A *&lt;b&gt;number&lt;/b&gt;* is good enough as well. Why is was it not enabled anyway?&lt;/p&gt;

&lt;p&gt;It&apos;s most useful when parameter names are auto generated, e.g. using sha1 or md5. &lt;/p&gt;</description>
                <environment></environment>
            <key id="14946">DDC-2447</key>
            <summary>[GH-667] DQL: Allow parameter name to start with any allowed character</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 May 2013 19:55:24 +0000</created>
                <updated>Mon, 13 May 2013 20:08:16 +0000</updated>
                    <resolved>Mon, 13 May 2013 20:08:16 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20373" author="doctrinebot" created="Mon, 13 May 2013 19:59:08 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-667&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/667&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/667&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-2445] [GH-665] oo 	Add Null in ScalarExpression </title>
                <link>http://www.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://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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 May 2013 10:40:41 +0000</created>
                <updated>Sun, 26 May 2013 04:46:29 +0000</updated>
                    <resolved>Sun, 26 May 2013 04:46:29 +0000</resolved>
                                                                    <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-2444] NULL IN CASE WHEN</title>
                <link>http://www.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://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="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://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;</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-2443] [GH-664] ClassMetadaInfo rename setIdentifierValues() to assignIdentifier()</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2443</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 entering:&lt;/p&gt;

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

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

&lt;p&gt;I saw this @todo so i changed name of method and occurrences on code and documentation.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14850">DDC-2443</key>
            <summary>[GH-664] ClassMetadaInfo rename setIdentifierValues() to assignIdentifier()</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="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>Fri, 10 May 2013 00:51:49 +0000</created>
                <updated>Fri, 10 May 2013 00:58:15 +0000</updated>
                    <resolved>Fri, 10 May 2013 00:58:15 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20262" author="doctrinebot" created="Fri, 10 May 2013 00:57:04 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-664&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/664&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/664&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20263" author="ocramius" created="Fri, 10 May 2013 00:58:15 +0000"  >&lt;p&gt;Cannot fix in 2.x&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-2440] composer.json is wrong</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2440</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In composer.json for doctrine/doctrine-orm-module there is the following require:&lt;br/&gt;
&quot;doctrine/doctrine-module&quot;: &quot;0.8.*&quot;&lt;/p&gt;

&lt;p&gt;However &quot;0.8.*&quot; does not exist, it should be &quot;0.8.x-dev&quot; or &quot;dev-master&quot;. The later would then use the branch alias. Either way this needs changing, because it&apos;s stopping the package from being installed or updated.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14846">DDC-2440</key>
            <summary>composer.json is wrong</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="r-nicol">Richard Nicol</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 May 2013 15:37:15 +0000</created>
                <updated>Thu, 9 May 2013 22:06:31 +0000</updated>
                    <resolved>Thu, 9 May 2013 16:01:39 +0000</resolved>
                            <version>Git Master</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="20249" author="beberlei" created="Thu, 9 May 2013 16:01:39 +0000"  >&lt;p&gt;Please open the ticket on the Doctrine ORM Module, this is the ORM bug tracker.&lt;/p&gt;</comment>
                    <comment id="20250" author="r-nicol" created="Thu, 9 May 2013 16:07:24 +0000"  >&lt;p&gt;Sorry my mistake! I have opened an issue on github here: &lt;a href=&quot;https://github.com/doctrine/DoctrineORMModule/issues/219&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/DoctrineORMModule/issues/219&lt;/a&gt; in case anyone ends up here.&lt;/p&gt;

&lt;p&gt;Cheers.&lt;/p&gt;</comment>
                    <comment id="20260" author="ocramius" created="Thu, 9 May 2013 22:06:31 +0000"  >&lt;p&gt;DoctrineModule has a 0.8.x branch. Closing&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-2437] [GH-660] Fixed critical bug with position indexBy in DQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2437</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 vlastv:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14843">DDC-2437</key>
            <summary>[GH-660] Fixed critical bug with position indexBy in DQL</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, 8 May 2013 23:34:09 +0000</created>
                <updated>Thu, 9 May 2013 09:09:56 +0000</updated>
                    <resolved>Thu, 9 May 2013 09:09:56 +0000</resolved>
                                            <fixVersion>2.3.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20232" author="doctrinebot" created="Thu, 9 May 2013 09:08:30 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-660&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/660&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/660&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2436] Inheritance on mappedSuperClass</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2436</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Sometimes is necessary some associations(many to many) in the mappedSuperClass. This associations should not be lost (inversedBy side and mappedBy ). The only one way to get this, was to implement an abstract class as Single Inheritance Table and then the mappedSuperClass inherit of this. But this is not optimum, because we are losing the OOP, creating classes which should not exist.&lt;/p&gt;

&lt;p&gt;I realized of this when i was creating my bundle to be used for some projects, but I needed each project could extends from my class and add some properties or methods according their needs.&lt;/p&gt;

&lt;p&gt;This is the link where you can see more details of this:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://stackoverflow.com/questions/16405556/mapped-super-class-symfony2-2&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/16405556/mapped-super-class-symfony2-2&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for your attention.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14842">DDC-2436</key>
            <summary>Inheritance on mappedSuperClass</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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="pcastrotigre">Petter Castro</reporter>
                        <labels>
                        <label>mappedsuperclass</label>
                    </labels>
                <created>Wed, 8 May 2013 21:25:43 +0000</created>
                <updated>Fri, 10 May 2013 16:55:33 +0000</updated>
                    <resolved>Fri, 10 May 2013 01:12:25 +0000</resolved>
                                                            <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20264" author="ocramius" created="Fri, 10 May 2013 01:12:25 +0000"  >&lt;p&gt;Mapped superclasses cannot be referenced as they are only meant to provide some simplification by allowing inherited mappings in child classes.&lt;/p&gt;

&lt;p&gt;If you want to enforce some kind of association in third party libraries, you can define interfaces and reference those: then, with a listener (during the onLoadMetadata event), replace the interfaces in mappings with (configured) concrete class names.&lt;/p&gt;</comment>
                    <comment id="20268" author="pcastrotigre" created="Fri, 10 May 2013 16:08:54 +0000"  >&lt;p&gt;I did it, and everything worked perfectly. However, is there a way to dynamically change the &quot;resolve_target_entities&quot; inside my LoadClassMetadata or inside my php code?. &lt;br/&gt;
I would like the user makes this configurations with params from my bundle. In background, my bundle will configure these params for doctrine.&lt;br/&gt;
Could i do that?&lt;/p&gt;

&lt;p&gt;Thanks again for your attention.&lt;/p&gt;</comment>
                    <comment id="20269" author="pcastrotigre" created="Fri, 10 May 2013 16:25:10 +0000"  >&lt;p&gt;I was thinking in duplicate some code of yours. Exactly 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;
$def = $container-&amp;gt;findDefinition(&apos;doctrine.orm.listeners.resolve_target_entity&apos;);
foreach ($config[&apos;resolve_target_entities&apos;] as $name =&amp;gt; $implementation) {
     $def-&amp;gt;addMethodCall(&apos;addResolveTargetEntity&apos;, array(
     $name, $implementation, array()
     ));
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="20270" author="ocramius" created="Fri, 10 May 2013 16:42:22 +0000"  >&lt;p&gt;That&apos;s exactly how this has to be done.&lt;/p&gt;</comment>
                    <comment id="20271" author="pcastrotigre" created="Fri, 10 May 2013 16:47:55 +0000"  >&lt;p&gt;I did but there is a problem.... The service doctrine.orm.listeners.resolve_target_entity is not public. So i can&apos;t use it in my bundle. I wouldn&apos;t like to duplicate all code from this Service. How could I do?&lt;/p&gt;</comment>
                    <comment id="20272" author="ocramius" created="Fri, 10 May 2013 16:49:44 +0000"  >&lt;p&gt;That&apos;s an issue for the DoctrineBundle, not for the ORM.&lt;/p&gt;</comment>
                    <comment id="20273" author="pcastrotigre" created="Fri, 10 May 2013 16:55:33 +0000"  >&lt;p&gt;Ok thanks a lot for your help. I will redirect my question to them.&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-2434] Error generating entities using annotation docblock (in php). Attribute &quot;fetch&quot; is not being generated by Class EntityGenerator</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2434</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In this part of the code that begins on line 1047 which is generated lines docblock but not being generated attribute fetch.&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;
            $type = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;
            &lt;span class=&quot;code-keyword&quot;&gt;switch&lt;/span&gt; ($associationMapping[&apos;type&apos;]) {
                &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; ClassMetadataInfo::ONE_TO_ONE:
                    $type = &apos;OneToOne&apos;;
                    &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
                &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; ClassMetadataInfo::MANY_TO_ONE:
                    $type = &apos;ManyToOne&apos;;
                    &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
                &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; ClassMetadataInfo::ONE_TO_MANY:
                    $type = &apos;OneToMany&apos;;
                    &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
                &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; ClassMetadataInfo::MANY_TO_MANY:
                    $type = &apos;ManyToMany&apos;;
                    &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
            }
            $typeOptions = array();

            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (isset($associationMapping[&apos;targetEntity&apos;])) {
                $typeOptions[] = &apos;targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;&apos; . $associationMapping[&apos;targetEntity&apos;] . &apos;&quot;&lt;/span&gt;&apos;;
            }

            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (isset($associationMapping[&apos;inversedBy&apos;])) {
                $typeOptions[] = &apos;inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;&apos; . $associationMapping[&apos;inversedBy&apos;] . &apos;&quot;&lt;/span&gt;&apos;;
            }

            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (isset($associationMapping[&apos;mappedBy&apos;])) {
                $typeOptions[] = &apos;mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;&apos; . $associationMapping[&apos;mappedBy&apos;] . &apos;&quot;&lt;/span&gt;&apos;;
            }

            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($associationMapping[&apos;cascade&apos;]) {
                $cascades = array();

                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($associationMapping[&apos;isCascadePersist&apos;]) $cascades[] = &apos;&lt;span class=&quot;code-quote&quot;&gt;&quot;persist&quot;&lt;/span&gt;&apos;;
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($associationMapping[&apos;isCascadeRemove&apos;]) $cascades[] = &apos;&lt;span class=&quot;code-quote&quot;&gt;&quot;remove&quot;&lt;/span&gt;&apos;;
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($associationMapping[&apos;isCascadeDetach&apos;]) $cascades[] = &apos;&lt;span class=&quot;code-quote&quot;&gt;&quot;detach&quot;&lt;/span&gt;&apos;;
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($associationMapping[&apos;isCascadeMerge&apos;]) $cascades[] = &apos;&lt;span class=&quot;code-quote&quot;&gt;&quot;merge&quot;&lt;/span&gt;&apos;;
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($associationMapping[&apos;isCascadeRefresh&apos;]) $cascades[] = &apos;&lt;span class=&quot;code-quote&quot;&gt;&quot;refresh&quot;&lt;/span&gt;&apos;;

                $typeOptions[] = &apos;cascade={&apos; . implode(&apos;,&apos;, $cascades) . &apos;}&apos;;
            }

            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (isset($associationMapping[&apos;orphanRemoval&apos;]) &amp;amp;&amp;amp; $associationMapping[&apos;orphanRemoval&apos;]) {
                $typeOptions[] = &apos;orphanRemoval=&apos; . ($associationMapping[&apos;orphanRemoval&apos;] ? &apos;&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;&apos; : &apos;&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;&apos;);
            }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Below is one possible solution.&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;
            $typesFetch = array(
                2 =&amp;gt; &apos;LAZY&apos;,
                3 =&amp;gt; &apos;EAGER&apos;,
                4 =&amp;gt; &apos;EXTRA_LAZY&apos;
            );

            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(isset($associationMapping[&apos;fetch&apos;])) {
                $typeOptions[] = &apos;fetch=&lt;span class=&quot;code-quote&quot;&gt;&quot;&apos; . $typesFetch[$associationMapping[&apos;fetch&apos;]] . &apos;&quot;&lt;/span&gt;&apos;;
            }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Tanks&lt;/p&gt;
</description>
                <environment>Windows xp, Apache 2.2 and PHP 5.3.15</environment>
            <key id="14839">DDC-2434</key>
            <summary>Error generating entities using annotation docblock (in php). Attribute &quot;fetch&quot; is not being generated by Class EntityGenerator</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="coisa2004">Andr&#233; Ant&#244;nio Lemos de Moraes</reporter>
                        <labels>
                    </labels>
                <created>Tue, 7 May 2013 19:22:15 +0000</created>
                <updated>Thu, 9 May 2013 08:56:59 +0000</updated>
                    <resolved>Thu, 9 May 2013 08:56:59 +0000</resolved>
                            <version>2.3.3</version>
                                <fixVersion>2.3.4</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20230" author="beberlei" created="Thu, 9 May 2013 08:45:02 +0000"  >&lt;p&gt;Highlighted code&lt;/p&gt;</comment>
                    <comment id="20231" author="beberlei" created="Thu, 9 May 2013 08:56:59 +0000"  >&lt;p&gt;Fixed and will be included in 2.3.4 release&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2433] [GH-659] [wip] Pr mapping import</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2433</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 bronze1man:&lt;/p&gt;

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

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

&lt;p&gt;fix 5 bug of command 1.doctrine:mapping:import then 2.doctrine:schema:update&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;column default&lt;/li&gt;
	&lt;li&gt;column unsigned&lt;/li&gt;
	&lt;li&gt;column type char&lt;/li&gt;
	&lt;li&gt;table without auto_increment&lt;/li&gt;
	&lt;li&gt;column comment&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;wip -&amp;gt; follow rule of contribute to doctrine&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;add patch on master&lt;/li&gt;
	&lt;li&gt;add test&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="14837">DDC-2433</key>
            <summary>[GH-659] [wip] Pr mapping import</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Tue, 7 May 2013 13:40:30 +0000</created>
                <updated>Wed, 12 Jun 2013 04:32:20 +0000</updated>
                    <resolved>Thu, 9 May 2013 11:47:47 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20239" author="beberlei" created="Thu, 9 May 2013 11:47:47 +0000"  >&lt;p&gt;Pull Request was deleted.&lt;/p&gt;</comment>
                    <comment id="20541" author="doctrinebot" created="Wed, 12 Jun 2013 04:32:20 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-659&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/659&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/659&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-2431] XML Not parsed</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2431</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When i try to generate my entities mapping in Symfony2 using XML I always get the same error:&lt;/p&gt;

&lt;p&gt;Element &apos;&lt;/p&gt;
{http://doctrine-project.org/schemas/orm/doctrine-mapping}
&lt;p&gt;doctrine-mapping&apos;: No matching global declaration avail  &lt;br/&gt;
  able for the validation root&lt;/p&gt;

&lt;p&gt;I am not adding any column, because first i need to validate the XML which I can&apos;t.&lt;/p&gt;

&lt;p&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;br/&gt;
&amp;lt;orm:doctrine-mapping&lt;br/&gt;
    xmlns:xsi=&apos;http://www.w3.org/2001/XMLSchema-instance&apos;&lt;br/&gt;
    xmlns:orm=&apos;http://doctrine-project.org/schemas/orm/doctrine-mapping&apos;&lt;br/&gt;
    xsi:schemaLocation=&apos;http://doctrine-project.org/schemas/orm/doctrine-mapping &lt;a href=&quot;http://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd&lt;/a&gt;&apos;&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;/orm:doctrine-mapping&amp;gt;&lt;/p&gt;

&lt;p&gt;As you can figure out, my XML is very simple. I am doing just for the validation testing. After this could be validated, I will map my entities.&lt;/p&gt;

&lt;p&gt;Thanks for your help.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Peter&lt;/p&gt;</description>
                <environment>Ubuntu 13.04, Symfony2</environment>
            <key id="14833">DDC-2431</key>
            <summary>XML Not parsed</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="pcastrotigre">Petter Castro</reporter>
                        <labels>
                        <label>orm</label>
                        <label>xml</label>
                    </labels>
                <created>Sun, 5 May 2013 18:20:37 +0000</created>
                <updated>Thu, 9 May 2013 10:13:50 +0000</updated>
                    <resolved>Thu, 9 May 2013 10:13:50 +0000</resolved>
                            <version>2.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20234" author="beberlei" created="Thu, 9 May 2013 10:13:50 +0000"  >&lt;p&gt;The Doctrine XSD hooks itself into the global namespace, see &lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/xml-mapping.html&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/xml-mapping.html&lt;/a&gt; for usage. It should work when you loose the &quot;xmlns:orm&quot; and define the tags as &quot;&amp;lt;doctrine-mapping&amp;gt;&quot;&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-2428] [GH-658] UPDATE clause supports ORDER BY and LIMIT</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2428</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 tomglue:&lt;/p&gt;

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

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

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

&lt;p&gt;I wanted get some feedback on what you thought about supporting ORDER BY and LIMIT for UPDATE statements.&lt;/p&gt;

&lt;p&gt;Is there a reason this has not already been implemented?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</description>
                <environment></environment>
            <key id="14830">DDC-2428</key>
            <summary>[GH-658] UPDATE clause supports ORDER BY and LIMIT</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Sun, 5 May 2013 10:35:40 +0000</created>
                <updated>Sun, 5 May 2013 16:32:13 +0000</updated>
                    <resolved>Sun, 5 May 2013 16:32:13 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20216" author="doctrinebot" created="Sun, 5 May 2013 16:32:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-658&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/658&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/658&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2427] Not working orphanRemoval (OneToMany)</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2427</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Not working orphanRemoval (OneToMany). The element from target entity deleted but still available. I Not get any error, just not deleted.&lt;/p&gt;

&lt;p&gt;Configuration example: &lt;/p&gt;

&lt;p&gt;class SecurityForm implements SecurityEntityInterface&lt;br/&gt;
{&lt;br/&gt;
   ...&lt;/p&gt;

&lt;p&gt;    /**&lt;br/&gt;
     *&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@ORM\OneToMany(targetEntity=&quot;SecurityFormField&quot;, mappedBy=&quot;form&quot;, cascade=
{&quot;persist&quot;}
&lt;p&gt;, orphanRemoval=true)&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;@ORM\OrderBy(
{&quot;order&quot; = &quot;ASC&quot;}
&lt;p&gt;)&lt;br/&gt;
     */&lt;br/&gt;
    private $formFields;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


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

&lt;p&gt;}&lt;/p&gt;</description>
                <environment></environment>
            <key id="14828">DDC-2427</key>
            <summary>Not working orphanRemoval (OneToMany)</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="zion03">Dmitry</reporter>
                        <labels>
                        <label>orm</label>
                    </labels>
                <created>Fri, 3 May 2013 23:13:00 +0000</created>
                <updated>Sat, 4 May 2013 10:45:21 +0000</updated>
                    <resolved>Sat, 4 May 2013 10:45:21 +0000</resolved>
                            <version>2.3</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20199" author="beberlei" created="Sat, 4 May 2013 10:44:51 +0000"  >&lt;p&gt;Works for me, see code attached&lt;/p&gt;</comment>
                    <comment id="20200" author="beberlei" created="Sat, 4 May 2013 10:45:21 +0000"  >&lt;p&gt;Please provide a failing testcase if you wan&apos;t to reopen the ticket.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11525" name="DDC2427Test.php" size="1101" author="beberlei" created="Sat, 4 May 2013 10:44:51 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2426] XML Mapping XSD: Missing length attribute for complexType id</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2426</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The xsd file for the doctrine XML mapping specification does not allow the complexType id to contain a length property.&lt;/p&gt;

&lt;p&gt;This prevents IDEs from giving proper auto-completion for the &amp;lt;id&amp;gt; element.&lt;/p&gt;

&lt;p&gt;To fix, simply add the following at line 332 of the xsd:&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;xs:attribute name=&lt;span class=&quot;code-quote&quot;&gt;&quot;length&quot;&lt;/span&gt; type=&lt;span class=&quot;code-quote&quot;&gt;&quot;xs:NMTOKEN&quot;&lt;/span&gt; /&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14827">DDC-2426</key>
            <summary>XML Mapping XSD: Missing length attribute for complexType 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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="amoore">Andrew Moore</reporter>
                        <labels>
                    </labels>
                <created>Fri, 3 May 2013 20:00:51 +0000</created>
                <updated>Sat, 4 May 2013 11:00:25 +0000</updated>
                    <resolved>Sat, 4 May 2013 11:00:25 +0000</resolved>
                            <version>2.3.3</version>
                                <fixVersion>2.3.4</fixVersion>
                                <component>Documentation</component>
                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2425] Parent entity sometimes fails to load when validating/updating schema.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2425</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Should not have reported, was a stupid mistake on my part.&lt;/p&gt;</description>
                <environment>Debian 6.0.6 x64</environment>
            <key id="14826">DDC-2425</key>
            <summary>Parent entity sometimes fails to load when validating/updating schema.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/trivial.png">Trivial</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="selosindis">Scott Gibson</reporter>
                        <labels>
                        <label>Cli</label>
                        <label>orm</label>
                        <label>schematool</label>
                    </labels>
                <created>Fri, 3 May 2013 19:41:55 +0000</created>
                <updated>Fri, 3 May 2013 20:17:09 +0000</updated>
                    <resolved>Fri, 3 May 2013 20:17:09 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2424] Removing an inherited entity via a delete cascade constraint does not remove the parent row</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2424</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;For a parent class:&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\Entity
 * @ORM\Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;Base&quot;&lt;/span&gt;)
 * @ORM\InheritanceType(&lt;span class=&quot;code-quote&quot;&gt;&quot;JOINED&quot;&lt;/span&gt;)
 * @ORM\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;)
 * @ORM\DiscriminatorMap({&lt;span class=&quot;code-quote&quot;&gt;&quot;child1&quot;&lt;/span&gt; = &lt;span class=&quot;code-quote&quot;&gt;&quot;Child1&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;child2&quot;&lt;/span&gt; = &lt;span class=&quot;code-quote&quot;&gt;&quot;Child2&quot;&lt;/span&gt;})
 */
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;and simple Child1 &amp;amp; Child2 entities.&lt;/p&gt;

&lt;p&gt;With another entity (let&apos;s call it ExternalEntity) having a bidirectional OneToOne relation owned by Child1:&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 Child1 &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Base
{
  /**
   * @ORM\OneToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;ExternalEntity&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;xxx&quot;&lt;/span&gt;)
   * @ORM\JoinColumn(onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&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;private&lt;/span&gt; theForeignKey;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Enough for the context.&lt;br/&gt;
The symptoms:&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;remove(instanceOfExternalEntity);&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; removes the ExternalEntity row and the Child1 row. But a dangling row in the Base table is still there for the now inexistent Child1 instance.&lt;/p&gt;

&lt;p&gt;Though, a manual delete of either the associated Child1 OR Base row and then the ExternalEntity works.&lt;/p&gt;

&lt;p&gt;The problem with the cascading deletion of the parent seems to be only present when deleting through a MYSQL cascading delete from another row which has a foreign key on a child. (Not tested with a foreign key on the parent though)&lt;/p&gt;
</description>
                <environment>Mysql 5.1.66 / Symfony 2.2.1</environment>
            <key id="14824">DDC-2424</key>
            <summary>Removing an inherited entity via a delete cascade constraint does not remove the parent row</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="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="xaapyks">Bruno Jacquet</reporter>
                        <labels>
                    </labels>
                <created>Thu, 2 May 2013 13:59:55 +0000</created>
                <updated>Mon, 6 May 2013 10:19:39 +0000</updated>
                                    <version>2.3.3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20201" author="beberlei" created="Sat, 4 May 2013 10:51:03 +0000"  >&lt;p&gt;Can you show the CREATE TABLE and FOREIGN KEY statements of all the tables involved? It seems the cascade of the foreign keys is not propagated between multiple tables?&lt;/p&gt;</comment>
                    <comment id="20220" author="xaapyks" created="Mon, 6 May 2013 10:09:45 +0000"  >&lt;p&gt;CREATE TABLE Base (id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;&lt;br/&gt;
CREATE TABLE Child1 (id INT NOT NULL, foreignKey INT NOT NULL, UNIQUE INDEX UNIQ_179B6E88E992F5A (foreignKey), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;&lt;/p&gt;

&lt;p&gt;ALTER TABLE Child1 ADD CONSTRAINT FK_179B6E88E992F5A FOREIGN KEY (foreignKey) REFERENCES ExternalEntity (id) ON DELETE CASCADE;&lt;br/&gt;
ALTER TABLE Child1 ADD CONSTRAINT FK_179B6E8BF396750 FOREIGN KEY (id) REFERENCES Base (id) ON DELETE CASCADE;&lt;/p&gt;</comment>
                    <comment id="20221" author="xaapyks" created="Mon, 6 May 2013 10:14:48 +0000"  >&lt;p&gt;The problem is that, the SQL model never explicitely tells the DB to delete the corresponding Base when Child1 gets removed. It looks like it is handled by the doctrine entity manager layer and not the actual DB engine (Base has no on delete cascade nor foreign key to its children). &lt;br/&gt;
So only doctrine can add the logic here because it knows the entity schema. But in this case, when it is deleted from another table, it looks like the special treatment is not triggered.&lt;/p&gt;</comment>
                    <comment id="20222" author="xaapyks" created="Mon, 6 May 2013 10:19:39 +0000"  >&lt;p&gt;Maybe using &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;cascade={&lt;span class=&quot;code-quote&quot;&gt;&quot;remove&quot;&lt;/span&gt;}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;, instead 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;onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; to force the cascading process to be handled by doctrine would workaround the bug... But I prefer to have my DB do the logic work as much as possible.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2423] [GH-657] DDC-2413</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2423</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 JEDIBC:&lt;/p&gt;

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

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

&lt;p&gt;Fix &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2413&quot; title=&quot;orm:schema-tool:update want to drop&amp;amp;create PK on join table using composite keys&quot;&gt;&lt;del&gt;DDC-2413&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14822">DDC-2423</key>
            <summary>[GH-657] DDC-2413</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 1 May 2013 07:54:52 +0000</created>
                <updated>Wed, 1 May 2013 08:18:38 +0000</updated>
                    <resolved>Wed, 1 May 2013 08:18:18 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20134" author="doctrinebot" created="Wed, 1 May 2013 08:18:38 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-657&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/657&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/657&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2422] HIDDEN fileds doesn&apos;t work in subqueries</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2422</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I trying to execute query with subquery, which contains GROUP BY:&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;
$subqueryBuilder = $repository-&amp;gt;createQueryBuilder(&apos;l2&apos;)
    -&amp;gt;select(&apos;l2.id, DATE(l2.created) AS HIDDEN created_date&apos;)
    -&amp;gt;groupBy(&apos;created_date&apos;);

$qb = $repository-&amp;gt;createQueryBuilder(&apos;l&apos;);
$qb-&amp;gt;andWhere($qb-&amp;gt;expr()-&amp;gt;in(&apos;l.id&apos;, $subqueryBuilder-&amp;gt;getDQL()));
$result = $qb-&amp;gt;getQuery()-&amp;gt;getArrayResult();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;And got 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;
[Syntax Error] line 0, col 80: Error: Expected Doctrine\ORM\Query\Lexer::T_FROM, got &apos;,&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If I group simply by &quot;l2.created&quot; without adding it to selected fields, all works fine. But I must use &quot;DATE(l2.created) AS HIDDEN created_date&quot; in selected statement to specify it in GROUP BY statement. &lt;/p&gt;</description>
                <environment></environment>
            <key id="14819">DDC-2422</key>
            <summary>HIDDEN fileds doesn&apos;t work in subqueries</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="yetanotherape">yetanotherape</reporter>
                        <labels>
                    </labels>
                <created>Mon, 29 Apr 2013 11:41:20 +0000</created>
                <updated>Wed, 1 May 2013 19:33:52 +0000</updated>
                    <resolved>Wed, 1 May 2013 18:26:45 +0000</resolved>
                            <version>2.3.3</version>
                                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20173" author="ocramius" created="Wed, 1 May 2013 18:26:31 +0000"  >&lt;p&gt;`HIDDEN` is expected to be used only to handle hydration. Your example is already invalid at SQL level, where it would result in something 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;SELECT
    f.bar
FROM
    foo f
WHERE
    f.id IN(
        SELECT
            b.baz,
            b.tab
        FROM
            bar b
    )
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;That will obviously fail&lt;/p&gt;</comment>
                    <comment id="20180" author="yetanotherape" created="Wed, 1 May 2013 19:18:02 +0000"  >&lt;p&gt;Ok, so how I can do:&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
    f.bar
FROM
    foo f
WHERE
    f.id IN(
        SELECT
            b.id
        FROM
            bar b
        GROUP BY DATE(b.created)
    )
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;in DQL?&lt;/p&gt;</comment>
                    <comment id="20182" author="ocramius" created="Wed, 1 May 2013 19:33:52 +0000"  >&lt;p&gt;You cannot right now. &lt;/p&gt;

&lt;p&gt;That&apos;s not supported by all vendors - if you need such a query, use native SQL instead.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2421] Many-To-Many relation creation failed when using non PK entity field</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2421</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Given these 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;
/**
 * &lt;span class=&quot;code-object&quot;&gt;Class&lt;/span&gt; Domain
 *
 * @ORM\Entity
 * @ORM\Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;profils_domains&quot;&lt;/span&gt;)
 */
class Domain
{
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string
     *
     * @ORM\Id
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=22, 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; $name = &apos;&apos;;
}
&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;
/**
 * &lt;span class=&quot;code-object&quot;&gt;Class&lt;/span&gt; Web
 *
 * @ORM\Entity
 * @ORM\Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;profils_webs&quot;&lt;/span&gt;,
 *          uniqueConstraints={@ORM\UniqueConstraint(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;web_unique&quot;&lt;/span&gt;,columns={&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;})}
 * )
 */
class Web
{
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer
     *
     * @ORM\Id
     * @ORM\GeneratedValue
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&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; $id;

    /**
     * @&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;, length=22, 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; $name = &apos;&apos;;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Domain
     *
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Domain&quot;&lt;/span&gt;, fetch=&lt;span class=&quot;code-quote&quot;&gt;&quot;LAZY&quot;&lt;/span&gt;)
     * @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $domain;
}
&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;
/**
 * &lt;span class=&quot;code-object&quot;&gt;Class&lt;/span&gt; WebsGroup
 *
 * @ORM\Entity
 * @ORM\Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;profils_websgroups&quot;&lt;/span&gt;,
 *          uniqueConstraints={@ORM\UniqueConstraint(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;websgroup_unique&quot;&lt;/span&gt;,columns={&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;})}
 * )
 */
class WebsGroup
{
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer
     *
     * @ORM\Id
     * @ORM\GeneratedValue
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&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; $id;

    /**
     * @&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;, length=22, 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; $name = &apos;&apos;;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Domain
     *
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Domain&quot;&lt;/span&gt;, fetch=&lt;span class=&quot;code-quote&quot;&gt;&quot;LAZY&quot;&lt;/span&gt;)
     * @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $domain;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; ArrayCollection
     *
     * @ORM\ManyToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Web&quot;&lt;/span&gt;, indexBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;, fetch=&lt;span class=&quot;code-quote&quot;&gt;&quot;EXTRA_LAZY&quot;&lt;/span&gt;)
     * @ORM\JoinTable(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;profils_websgroups_webs&quot;&lt;/span&gt;,
     *      joinColumns={
     * @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;websgroup_id&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;),
     * @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;)
     *          },
     *      inverseJoinColumns={
     * @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;web_id&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;),
     * @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;)
     *          }
     *      )
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $webs;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;ve got a domain, some web sites per domain and websgroups which group web sites. I want to be sure in my database that a web group from a domain D can contain only web sites from the very same domain but when calling the console tool for creating my schema it raise :&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
[Doctrine\ORM\ORMException]                                                                                                                                      
  Column name `domain` referenced &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; relation from Entity\WebsGroup towards Entity\Web does not exist. 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It&apos;s because domain is already an association to an entity which and is not part of the primary key.&lt;/p&gt;

&lt;p&gt;I&apos;ve quick fixed &lt;tt&gt;getDefiningClass&lt;/tt&gt; from &lt;tt&gt;Doctrine\ORM\Tools\SchemaTool&lt;/tt&gt; to make it work but i really don&apos;t know if it&apos;s the proper way :&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; function getDefiningClass($class, $referencedColumnName)
    {
        $referencedFieldName = $class-&amp;gt;getFieldName($referencedColumnName);

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($class-&amp;gt;hasField($referencedFieldName)) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; array($class, $referencedFieldName);
        } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (in_array($referencedColumnName, $class-&amp;gt;getIdentifierColumnNames())) {
            &lt;span class=&quot;code-comment&quot;&gt;// it seems to be an entity as foreign key
&lt;/span&gt;            foreach ($class-&amp;gt;getIdentifierFieldNames() as $fieldName) {
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($class-&amp;gt;hasAssociation($fieldName) &amp;amp;&amp;amp; $class-&amp;gt;getSingleAssociationJoinColumnName($fieldName) == $referencedColumnName) {
                    &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;getDefiningClass(
                        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;em-&amp;gt;getClassMetadata($class-&amp;gt;associationMappings[$fieldName][&apos;targetEntity&apos;]),
                        $class-&amp;gt;getSingleAssociationReferencedJoinColumnName($fieldName)
                    );
                }
            }
        } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (in_array($referencedColumnName, $class-&amp;gt;getAssociationNames())) {
            &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;getDefiningClass(
                $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;em-&amp;gt;getClassMetadata($class-&amp;gt;associationMappings[$referencedColumnName][&apos;targetEntity&apos;]),
                $class-&amp;gt;getSingleAssociationReferencedJoinColumnName($referencedColumnName)
            );
        }

        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Ubuntu linux 12.04, php 5.4.9</environment>
            <key id="14818">DDC-2421</key>
            <summary>Many-To-Many relation creation failed when using non PK entity field</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="jedi_bc">Bruno CHALOPIN</reporter>
                        <labels>
                        <label>schematool</label>
                    </labels>
                <created>Mon, 29 Apr 2013 08:51:36 +0000</created>
                <updated>Wed, 1 May 2013 09:03:08 +0000</updated>
                    <resolved>Wed, 1 May 2013 09:03:08 +0000</resolved>
                            <version>Git Master</version>
                <version>2.3.3</version>
                                                <component>Mapping Drivers</component>
                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20128" author="fabio.bat.silva" created="Mon, 29 Apr 2013 18:27:56 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=jedi_bc&quot; class=&quot;user-hover&quot; rel=&quot;jedi_bc&quot;&gt;Bruno CHALOPIN&lt;/a&gt; Except for some CS this fix seems good.&lt;/p&gt;

&lt;p&gt;If you have time you can send as &lt;a href=&quot;https://github.com/doctrine/doctrine2/pulls&quot; class=&quot;external-link&quot;&gt;pull request&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20129" author="jedi_bc" created="Tue, 30 Apr 2013 12:48:59 +0000"  >&lt;p&gt;I&apos;ve start making a PR and a test case but it is linked to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2413&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2413&lt;/a&gt;&lt;br/&gt;
I&apos;m looking in making a proper fix to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2413&quot; title=&quot;orm:schema-tool:update want to drop&amp;amp;create PK on join table using composite keys&quot;&gt;&lt;del&gt;DDC-2413&lt;/del&gt;&lt;/a&gt; first.&lt;/p&gt;</comment>
                    <comment id="20140" author="beberlei" created="Wed, 1 May 2013 09:03:08 +0000"  >&lt;p&gt;You cannot use a reference column that is not a primary key. Doctrine does not support this.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2420] [GH-656] [DDC-2235] Fix for using a LEFT JOIN onto an entity with single table inheritance</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2420</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 tarnfeld:&lt;/p&gt;

&lt;p&gt;Url: &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;

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

&lt;p&gt;Possible fix for the bug &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2235&quot; title=&quot;Single table inheritance discriminator in WHERE when using arbitrary join syntax&quot;&gt;DDC-2235&lt;/a&gt;. I&apos;d love to hear some opinions on whether this is the right way to go about this issue. I&apos;m not particularly familiar with the internals of doctrine so there may be a better solution.&lt;/p&gt;

&lt;p&gt;------&lt;/p&gt;

&lt;p&gt;The issue is when using DQL to perform a left join on an entity using single&lt;br/&gt;
table inheritance, doctrine tries to insert an `IN()` predicate into the `WHERE`&lt;br/&gt;
clause for all of the discriminator values. That makes sense and is valid, so&lt;br/&gt;
it would be wrong to remove that behaviour.&lt;/p&gt;

&lt;p&gt;However when using a &lt;b&gt;left&lt;/b&gt; join having an `IN()` in the main where clause makes&lt;br/&gt;
the `LEFT JOIN` pretty much useless, as it implicitly creates a `WHERE NOT NULL`&lt;br/&gt;
clause. This commit attempts to fix that by including an `OR IS NULL` in the&lt;br/&gt;
query if the join is a `LEFT JOIN`.&lt;/p&gt;

&lt;p&gt;I&apos;ve added some regression tests to ensure this bug never creeps back in. They fail on master (highlighting the bug) and pass after these commits have been applied. I&apos;ve also included a couple of other queries as tests to be sure only this one case has been affected.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14817">DDC-2420</key>
            <summary>[GH-656] [DDC-2235] Fix for using a LEFT JOIN onto an entity with single table 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="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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Sun, 28 Apr 2013 23:09:35 +0000</created>
                <updated>Sun, 28 Apr 2013 23:09:35 +0000</updated>
                                                                            <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-2418] [GH-654] Ilike</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2418</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 lighthart:&lt;/p&gt;

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

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

&lt;p&gt;Ilike expression added for postgres support&lt;/p&gt;</description>
                <environment></environment>
            <key id="14815">DDC-2418</key>
            <summary>[GH-654] Ilike</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="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Sat, 27 Apr 2013 03:36:47 +0000</created>
                <updated>Sat, 27 Apr 2013 08:13:42 +0000</updated>
                    <resolved>Sat, 27 Apr 2013 08:13:42 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20112" author="doctrinebot" created="Sat, 27 Apr 2013 07:40:22 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-654&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/654&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/654&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-2416] [GH-652] Fixed entities path</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2416</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 dannykopping:&lt;/p&gt;

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

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

&lt;p&gt;In the tutorial, the user is told to create a new file in the `/src` folder, and the `/entities` folder is never referenced. Updating the SQLite schema according to the tutorial fails with the &apos;No Metadata Classes to process.&apos; message. Changing the folder to `/src` fixes this, ostensibly.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14813">DDC-2416</key>
            <summary>[GH-652] Fixed entities path</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 26 Apr 2013 09:06:42 +0000</created>
                <updated>Fri, 26 Apr 2013 09:23:51 +0000</updated>
                    <resolved>Fri, 26 Apr 2013 09:23:51 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20109" author="doctrinebot" created="Fri, 26 Apr 2013 09:11:58 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-652&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/652&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/652&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20110" author="ocramius" created="Fri, 26 Apr 2013 09:23:51 +0000"  >&lt;p&gt;merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2415] CustomIdGenerator not inherited from MappedSuperclass</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2415</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I had a problem with a CUSTOM id generation mapping definition.&lt;br/&gt;
I have an abstract class and @MappedSuperclass which defines the id column as:&lt;/p&gt;

&lt;p&gt;    /**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@ORM\Id&lt;/li&gt;
	&lt;li&gt;@ORM\Column(name=&quot;ID&quot;, type=&quot;integer&quot;)&lt;/li&gt;
	&lt;li&gt;@ORM\GeneratedValue(strategy=&quot;CUSTOM&quot;)&lt;/li&gt;
	&lt;li&gt;@ORM\CustomIdGenerator(class=&quot;Infoil\Extensions\ExtensionsBundle\DoctrineIdGenerator\ZafiroIdGenerator&quot;)&lt;/li&gt;
	&lt;li&gt;@var int $id&lt;br/&gt;
     */&lt;br/&gt;
The problem is that subclasses doesn&apos;t inherits the CustomIdGenerator annotation. I have traced the problem up to ClassMetadataFactory::doLoadMetadata.&lt;br/&gt;
I had to change the second inner if statement as&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;if ($parent-&amp;gt;isMappedSuperclass) &lt;/p&gt;
{
    $class-&amp;gt;setCustomRepositoryClass($parent-&amp;gt;customRepositoryClassName);
    $class-&amp;gt;setCustomGeneratorDefinition($parent-&amp;gt;customGeneratorDefinition);  &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; LINE ADDED
}
&lt;p&gt;to allow subclasses inherit the customGenerationdefinition.&lt;/p&gt;

&lt;p&gt;Aside, the docblock annotation help doesn&apos;t includes the CustomIdGenerator tag.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14810">DDC-2415</key>
            <summary>CustomIdGenerator not inherited from MappedSuperclass</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>
                                <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="fxgallego">Sebastian Calvo</reporter>
                        <labels>
                        <label>orm</label>
                    </labels>
                <created>Thu, 25 Apr 2013 18:09:38 +0000</created>
                <updated>Sat, 27 Apr 2013 13:00:02 +0000</updated>
                    <resolved>Sat, 27 Apr 2013 13:00:02 +0000</resolved>
                            <version>2.3.3</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20119" author="fabio.bat.silva" created="Sat, 27 Apr 2013 13:00:02 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/d513e0f084eb4e67ccb42877b28a27d47a561665&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/d513e0f084eb4e67ccb42877b28a27d47a561665&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2414] Unable to create One-To-Many relation with composite keys</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2414</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Given these 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;
/**
 * &lt;span class=&quot;code-object&quot;&gt;Class&lt;/span&gt; Domain
 *
 * @Entity
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;profils_domains&quot;&lt;/span&gt;)
 */
class Domain
{
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string
     *
     * @Id
     * @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=22, 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; $name = &apos;&apos;;
}
&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;
/**
 * &lt;span class=&quot;code-object&quot;&gt;Class&lt;/span&gt; User
 *
 * @Entity
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;profils_users&quot;&lt;/span&gt;)
 */
class User
{
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string
     *
     * @Id
     * @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=22, 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; $name = &apos;&apos;;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Domain
     *
     * @Id
     * @ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Domain&quot;&lt;/span&gt;, fetch=&lt;span class=&quot;code-quote&quot;&gt;&quot;LAZY&quot;&lt;/span&gt;)
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $domain;
    
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Group[]|ArrayCollection
     *
     * @ManyToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Group&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;users&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $groups;
}
&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;
/**
 * &lt;span class=&quot;code-object&quot;&gt;Class&lt;/span&gt; Group
 *
 * @Entity
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;profils_groups&quot;&lt;/span&gt;)
 */
class Group
{
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string
     *
     * @Id
     * @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=22, 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; $name = &apos;&apos;;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Domain
     *
     * @Id
     * @ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Domain&quot;&lt;/span&gt;, fetch=&lt;span class=&quot;code-quote&quot;&gt;&quot;LAZY&quot;&lt;/span&gt;)
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $domain;
    
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; User[]|ArrayCollection
     *
     * @ManyToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;User&quot;&lt;/span&gt;, indexBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, fetch=&lt;span class=&quot;code-quote&quot;&gt;&quot;EXTRA_LAZY&quot;&lt;/span&gt;)
     * @JoinTable(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;profils_groups_users&quot;&lt;/span&gt;,
     *      joinColumns={
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;group_name&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;),
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;)
     *          },
     *      inverseJoinColumns={
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;user_name&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;),
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;)
     *          }
     *      )
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $users;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I want to link users and groups but only from the same domain.&lt;br/&gt;
I also want a user to be in &lt;b&gt;one group only&lt;/b&gt;.&lt;br/&gt;
The only way with composite keys is to make &lt;tt&gt;One-To-Many, Unidirectional with Join Table&lt;/tt&gt; but I can&apos;t put &lt;tt&gt;unique=true&lt;/tt&gt; in the &lt;tt&gt;@JoinColumn&lt;/tt&gt; of my &lt;tt&gt;inverseJoinColumns&lt;/tt&gt; because it will generate a unique index for each field and not one composite. I also can&apos;t use &lt;tt&gt;@UniqueConstraint&lt;/tt&gt; as it is not supported in &lt;tt&gt;@JoinTable&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment>Ubuntu 12.04, PHP 5.4.9</environment>
            <key id="14809">DDC-2414</key>
            <summary>Unable to create One-To-Many relation 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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jedi_bc">Bruno CHALOPIN</reporter>
                        <labels>
                        <label>composite</label>
                    </labels>
                <created>Thu, 25 Apr 2013 08:01:56 +0000</created>
                <updated>Wed, 1 May 2013 09:04:07 +0000</updated>
                    <resolved>Wed, 1 May 2013 09:04:07 +0000</resolved>
                            <version>Git Master</version>
                <version>2.3.3</version>
                                                <component>Mapping Drivers</component>
                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20121" author="fabio.bat.silva" created="Sun, 28 Apr 2013 17:11:09 +0000"  >&lt;p&gt;Hi Bruno,&lt;/p&gt;

&lt;p&gt;Could you please explain it a little deeper ?&lt;br/&gt;
you describe an one-to-many relation but your mapping has a many-to-many &lt;b&gt;Group#users&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;Also, you shoud describe operations you are executing and which errors you got.&lt;/p&gt;

&lt;p&gt;Cheers&lt;/p&gt;</comment>
                    <comment id="20125" author="jedi_bc" created="Mon, 29 Apr 2013 06:12:33 +0000"  >&lt;p&gt;Hi fabio,&lt;/p&gt;

&lt;p&gt;The relation i was trying to make is &lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/association-mapping.html#one-to-many-unidirectional-with-join-table&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/association-mapping.html#one-to-many-unidirectional-with-join-table&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;However, it implies to use a unique contraint and as explain above when trying to create the schema via doctrine, as i use composite keys, it will generate 2 unique contraints (one for each field) and not one composite unique constraint.&lt;/p&gt;

&lt;p&gt;Nevertheless, it seems like using composite keys is a lot buggy in doctrine (see &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2413&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2413&lt;/a&gt;)&lt;/p&gt;</comment>
                    <comment id="20141" author="beberlei" created="Wed, 1 May 2013 09:04:07 +0000"  >&lt;p&gt;We discussed this in &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2413&quot; title=&quot;orm:schema-tool:update want to drop&amp;amp;create PK on join table using composite keys&quot;&gt;&lt;del&gt;DDC-2413&lt;/del&gt;&lt;/a&gt;, this is not supported by Doctrine.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2413] orm:schema-tool:update want to drop&amp;create PK on join table using composite keys</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2413</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Given these 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;
/**
 * &lt;span class=&quot;code-object&quot;&gt;Class&lt;/span&gt; Domain
 *
 * @Entity
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;profils_domains&quot;&lt;/span&gt;)
 */
class Domain
{
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string
     *
     * @Id
     * @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=22, 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; $name = &apos;&apos;;
}
&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;
/**
 * &lt;span class=&quot;code-object&quot;&gt;Class&lt;/span&gt; User
 *
 * @Entity
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;profils_users&quot;&lt;/span&gt;)
 */
class User
{
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string
     *
     * @Id
     * @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=22, 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; $name = &apos;&apos;;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Domain
     *
     * @Id
     * @ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Domain&quot;&lt;/span&gt;, fetch=&lt;span class=&quot;code-quote&quot;&gt;&quot;LAZY&quot;&lt;/span&gt;)
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $domain;
    
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Group[]|ArrayCollection
     *
     * @ManyToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Group&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;users&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $groups;
}
&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;
/**
 * &lt;span class=&quot;code-object&quot;&gt;Class&lt;/span&gt; Group
 *
 * @Entity
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;profils_groups&quot;&lt;/span&gt;)
 */
class Group
{
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string
     *
     * @Id
     * @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=22, 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; $name = &apos;&apos;;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Domain
     *
     * @Id
     * @ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Domain&quot;&lt;/span&gt;, fetch=&lt;span class=&quot;code-quote&quot;&gt;&quot;LAZY&quot;&lt;/span&gt;)
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $domain;
    
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; User[]|ArrayCollection
     *
     * @ManyToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;User&quot;&lt;/span&gt;, indexBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, fetch=&lt;span class=&quot;code-quote&quot;&gt;&quot;EXTRA_LAZY&quot;&lt;/span&gt;)
     * @JoinTable(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;profils_groups_users&quot;&lt;/span&gt;,
     *      joinColumns={
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;group_name&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;),
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;)
     *          },
     *      inverseJoinColumns={
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;user_name&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;),
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;domain&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;)
     *          }
     *      )
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $users;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I want to link users and groups but only from the same domain.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;orm:schema-tool:create&lt;/tt&gt; generate correct 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;
CREATE TABLE profils_users (name VARCHAR(22) NOT NULL, domain VARCHAR(22) NOT NULL, INDEX IDX_E75993CFA7A91E0B (domain), PRIMARY KEY(name, domain)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
CREATE TABLE profils_domains (name VARCHAR(22) NOT NULL, PRIMARY KEY(name)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
CREATE TABLE profils_groups (name VARCHAR(22) NOT NULL, domain VARCHAR(22) NOT NULL, INDEX IDX_229366BBA7A91E0B (domain), PRIMARY KEY(name, domain)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
CREATE TABLE profils_groups_users (group_name VARCHAR(22) NOT NULL, domain VARCHAR(22) NOT NULL, user_name VARCHAR(22) NOT NULL, INDEX IDX_6CF8F4EA77792576A7A91E0B (group_name, domain), INDEX IDX_6CF8F4EA24A232CFA7A91E0B (user_name, domain), PRIMARY KEY(group_name, domain, user_name)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
ALTER TABLE profils_users ADD CONSTRAINT FK_E75993CFA7A91E0B FOREIGN KEY (domain) REFERENCES profils_domains (name) ON DELETE CASCADE;
ALTER TABLE profils_groups ADD CONSTRAINT FK_229366BBA7A91E0B FOREIGN KEY (domain) REFERENCES profils_domains (name) ON DELETE CASCADE;
ALTER TABLE profils_groups_users ADD CONSTRAINT FK_6CF8F4EA77792576A7A91E0B FOREIGN KEY (group_name, domain) REFERENCES profils_groups (name, domain) ON DELETE CASCADE;
ALTER TABLE profils_groups_users ADD CONSTRAINT FK_6CF8F4EA24A232CFA7A91E0B FOREIGN KEY (user_name, domain) REFERENCES profils_users (name, domain) ON DELETE CASCADE
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;but I make a &lt;tt&gt;orm:schema-too:update&lt;/tt&gt; it want to drop and recreate the PK of the join table each time, and with a wrong sql query :&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;
ALTER TABLE profils_groups_users DROP PRIMARY KEY;
ALTER TABLE profils_groups_users ADD PRIMARY KEY (group_name, domain, user_name, domain)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To avoid the duplication of the same field in primary key creation, you can modify &lt;tt&gt;getIndexFieldDeclarationListSQL&lt;/tt&gt; from &lt;tt&gt;Doctrine\DBAL\Platforms\AbstractPlatform&lt;/tt&gt; 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;
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getIndexFieldDeclarationListSQL(array $fields)
    {
        $ret = array();

        foreach ($fields as $field =&amp;gt; $definition) {
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (is_array($definition)) {
                $ret[$field] = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
            } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
                $ret[$definition] = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
            }
        }
        $ret = array_keys($ret);

        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; implode(&apos;, &apos;, $ret);
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But it would also be nice that doctrine don&apos;t try to drop the PK on each update.&lt;/p&gt;</description>
                <environment>Ubuntu 12.04, php 5.4.9</environment>
            <key id="14808">DDC-2413</key>
            <summary>orm:schema-tool:update want to drop&amp;create PK on join table using 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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jedi_bc">Bruno CHALOPIN</reporter>
                        <labels>
                        <label>composite</label>
                    </labels>
                <created>Thu, 25 Apr 2013 07:49:59 +0000</created>
                <updated>Wed, 1 May 2013 18:08:16 +0000</updated>
                    <resolved>Wed, 1 May 2013 08:16:59 +0000</resolved>
                            <version>Git Master</version>
                <version>2.3.3</version>
                                                <component>Mapping Drivers</component>
                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="20102" author="ocramius" created="Thu, 25 Apr 2013 07:59:13 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=jedi_bc&quot; class=&quot;user-hover&quot; rel=&quot;jedi_bc&quot;&gt;Bruno CHALOPIN&lt;/a&gt; do I get this right if I say it&apos;s a problem in how columns are sorted in the index definition? Is that the problem?&lt;/p&gt;</comment>
                    <comment id="20103" author="jedi_bc" created="Thu, 25 Apr 2013 08:07:16 +0000"  >&lt;p&gt;I don&apos;t think it is a sort order problem (that is to say, i don&apos;t care the order).&lt;/p&gt;

&lt;p&gt;Firstable I don&apos;t know why it want to delete the PK as the generation of the join table is correct.&lt;br/&gt;
Secondly, the regeneration of the PK is clearly buggy as it use 2 times the domain field.&lt;/p&gt;</comment>
                    <comment id="20104" author="jedi_bc" created="Thu, 25 Apr 2013 15:04:56 +0000"  >&lt;p&gt;It&apos;s even worse than I thought. When persisting new users, it create this SQL query :&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;INSERT INTO profils_groups_users (group_name, domain, user_name, domain) VALUES (?, ?, ?, ?)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;ve made a quick fix by adding &lt;tt&gt;$columns = array_keys(array_flip($columns));&lt;/tt&gt; before the return in &lt;tt&gt;Doctrine\ORM\Persisters\ManyToManyPersister::_getInsertRowSQL&lt;/tt&gt; and &lt;tt&gt;$mapping&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;joinTableColumns&amp;#39;&amp;#93;&lt;/span&gt; = array_keys(array_flip($mapping&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;joinTableColumns&amp;#39;&amp;#93;&lt;/span&gt;));&lt;/tt&gt; before the foreach in &lt;tt&gt;Doctrine\ORM\Persisters\ManyToManyPersister::_collectJoinTableColumnParameters&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;It works but I don&apos;t know if it&apos;s a proper solution.&lt;/p&gt;</comment>
                    <comment id="20132" author="beberlei" created="Wed, 1 May 2013 08:16:59 +0000"  >&lt;p&gt;You are thinking wrong here, domain can be present in the many to many table twice, with different domains. That you don&apos;t have this use-case, because you know the constraint to be 1:1 doesn&apos;t  matter to Doctrine.&lt;/p&gt;

&lt;p&gt;It only works with you having a domain_user and a domain_group column, and then it will work in the ManyToManyPersister and in the SchemaTool Update&lt;/p&gt;</comment>
                    <comment id="20135" author="jedi_bc" created="Wed, 1 May 2013 08:27:34 +0000"  >&lt;p&gt;With a domain_user and a domain_group you can no longer be sure that a user can only be in groups from the same domain which is mandatory for me. That&apos;s why I don&apos;t want the domain to be here twice as it must be the same for the user and the group.&lt;/p&gt;</comment>
                    <comment id="20136" author="beberlei" created="Wed, 1 May 2013 08:40:55 +0000"  >&lt;p&gt;Yes, this kind of normalization is not supported by Doctrine. You can enforce this with a CHECK constraint or in your domain code.&lt;/p&gt;</comment>
                    <comment id="20143" author="jedi_bc" created="Wed, 1 May 2013 09:52:45 +0000"  >&lt;p&gt;I know this kind of normalization is not supported by Doctrine. That&apos;s why I&apos;ve made a PR (which doesn&apos;t introduce any BC breaks). I don&apos;t see why it wouldn&apos;t be introduce in Doctrine as it&apos;s way simpler that adding a CHECK constraint (which I don&apos;t find any trace in the annotation documentation)&lt;/p&gt;</comment>
                    <comment id="20172" author="jedi_bc" created="Wed, 1 May 2013 18:08:16 +0000"  >&lt;p&gt;From the mysql documentation : &lt;cite&gt;The CHECK clause is parsed but ignored by all storage engines&lt;/cite&gt;&lt;br/&gt;
So there&apos;s no other ways to have a consistent database than to include this functionality in Doctrine.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2412] [GH-651] Fixed typo in SQLFilter (use statement ClassMetadata)</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2412</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 EuKov:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14802">DDC-2412</key>
            <summary>[GH-651] Fixed typo in SQLFilter (use statement ClassMetadata)</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>Tue, 23 Apr 2013 17:46:44 +0000</created>
                <updated>Tue, 23 Apr 2013 17:50:21 +0000</updated>
                    <resolved>Tue, 23 Apr 2013 17:50:21 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20095" author="doctrinebot" created="Tue, 23 Apr 2013 17:50:10 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-651&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/651&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/651&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20096" author="ocramius" created="Tue, 23 Apr 2013 17:50:21 +0000"  >&lt;p&gt;merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2411] Null values get reset when rehydrating an already managed entity</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2411</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Scenario:&lt;/p&gt;

&lt;p&gt;1) You have an entity with a ManyToOne relation (and probably other kinds too, but this is all I have tested) to another entity which is nullable. For example, let&apos;s say you have a Book entity which has an &quot;illustrator&quot; field which refers to a Person entity, representing the person who illustrated the book. If the book is not illustrated then you set the field to null.&lt;/p&gt;

&lt;p&gt;2) You fetch a Book (by ID) which has its illustrator set to a particular Person.&lt;/p&gt;

&lt;p&gt;3) You set that Book&apos;s illustrator to null.&lt;/p&gt;

&lt;p&gt;4) Without flushing, you fetch the Book again, using different criteria: for example, by title. Because entities are Identity Mapped, this will run a query but then locate the same instance in memory, and try to hydrate that instance with the old data it just fetched.&lt;/p&gt;

&lt;p&gt;5) Any fields on the instance that have modified values retain their new values (for example, if we changed the illustrator to a different Person, this would be retained), BUT any fields on the instance which are null get overwritten with the old data (so if we previously set the illustrator to null, without flushing, it would now be reset to the Person value that it had before).&lt;/p&gt;

&lt;p&gt;There seems to be a mistaken assumption here that null values are fields that have not been hydrated, when this is not necessarily the case. Is this the intended behaviour?&lt;/p&gt;

&lt;p&gt;The code that causes this behaviour is here: &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/e561f47cb2205565eb873f0643637477bfcfc2ff/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php#L471&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/e561f47cb2205565eb873f0643637477bfcfc2ff/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php#L471&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are wondering why anybody would want to fetch the entity again in step 4, my use case for this is the Symfony Validator (but I presume there could be others).&lt;/p&gt;

&lt;p&gt;If there are any unique constraints (Symfony ones, not Doctrine ones) on the entity, e.g. if we had a unique constraint on the Book title field, then when validating the Book the Symfony Validator would check if there are already any Book entities with the same title as the Book we&apos;re validating. It will find the Book that we are working with, and because entities are identity mapped, it will act upon the same instance, and the situation above occurs.&lt;/p&gt;

&lt;p&gt;Code example:&lt;/p&gt;

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

&lt;p&gt;// Create some entities&lt;/p&gt;

&lt;p&gt;$john = new Person();&lt;br/&gt;
$john-&amp;gt;setName(&apos;John Smith&apos;);&lt;/p&gt;

&lt;p&gt;$jane = new Person();&lt;br/&gt;
$jane-&amp;gt;setName(&apos;Jane Jones&apos;);&lt;/p&gt;

&lt;p&gt;$joe = new Person();&lt;br/&gt;
$joe-&amp;gt;setName(&apos;Joe Bloggs&apos;);&lt;/p&gt;

&lt;p&gt;$book = new Book();&lt;br/&gt;
$book-&amp;gt;setId(123);&lt;br/&gt;
$book-&amp;gt;setTitle(&apos;Book Title&apos;);&lt;br/&gt;
$book-&amp;gt;setIllustrator($john);&lt;br/&gt;
$book-&amp;gt;setAuthor($jane);&lt;/p&gt;

&lt;p&gt;$em-&amp;gt;persist($john);&lt;br/&gt;
$em-&amp;gt;persist($jane);&lt;br/&gt;
$em-&amp;gt;persist($joe);&lt;br/&gt;
$em-&amp;gt;persist($book);&lt;br/&gt;
$em-&amp;gt;flush();&lt;/p&gt;

&lt;p&gt;// Now let&apos;s try modifying the book&lt;/p&gt;

&lt;p&gt;$book = $bookRepository-&amp;gt;find(123);&lt;br/&gt;
$book-&amp;gt;getIllustrator(); // returns Person &quot;John Smith&quot;&lt;br/&gt;
$book-&amp;gt;getAuthor(); // returns Person &quot;Jane Jones&quot;&lt;/p&gt;

&lt;p&gt;// make some changes&lt;br/&gt;
$book-&amp;gt;setIllustrator(null); // illustrator is now null&lt;br/&gt;
$book-&amp;gt;setAuthor($joe); // author is now &quot;Joe Bloggs&quot;&lt;/p&gt;

&lt;p&gt;// now validate our changes with Symfony Validator&lt;br/&gt;
// note: the same effect can also be observed with&lt;br/&gt;
//     $test = $bookRepository-&amp;gt;findBy(&apos;title&apos;, &apos;Book Title&apos;);&lt;br/&gt;
$validator-&amp;gt;validate($book);&lt;/p&gt;

&lt;p&gt;// what happened to our book??&lt;br/&gt;
$book-&amp;gt;getIllustrator(); // returns Person &quot;John Smith&quot; &amp;lt;- should be null&lt;br/&gt;
$book-&amp;gt;getAuthor(); // returns Person &quot;Joe Bloggs&quot; &amp;lt;- correctly retains the new value&lt;/p&gt;</description>
                <environment></environment>
            <key id="14801">DDC-2411</key>
            <summary>Null values get reset when rehydrating an already managed 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="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="sgarner">Simon Garner</reporter>
                        <labels>
                        <label>hydration</label>
                    </labels>
                <created>Tue, 23 Apr 2013 12:37:56 +0000</created>
                <updated>Thu, 9 May 2013 10:31:16 +0000</updated>
                                    <version>2.3</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="20100" author="fabio.bat.silva" created="Wed, 24 Apr 2013 18:48:14 +0000"  >&lt;p&gt;Hi Simon,&lt;/p&gt;

&lt;p&gt;Could you please try to write a &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1509Test.php&quot; class=&quot;external-link&quot;&gt;failing test case&lt;/a&gt; or paste your entities ?&lt;/p&gt;

&lt;p&gt;Cheers&lt;/p&gt;</comment>
                    <comment id="20235" author="beberlei" created="Thu, 9 May 2013 10:31:16 +0000"  >&lt;p&gt;Verified by code review that this issue exists, but it will be very tricky to fix, because the null check is there for other reasons as well.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2410] [GH-650] Fixed typo in SQLFilter addFilterConstraint first param</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2410</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 EuKov:&lt;/p&gt;

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

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

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

&lt;p&gt;Description in subj,&lt;br/&gt;
the use statement for ClassMetaData is &lt;br/&gt;
use Doctrine\ORM\Mapping\ClassMetaData;&lt;/p&gt;

&lt;p&gt;But in the abstract method the param named ClassMetadata (&quot;d&quot; char should be in uppercase)&lt;/p&gt;</description>
                <environment></environment>
            <key id="14800">DDC-2410</key>
            <summary>[GH-650] Fixed typo in SQLFilter addFilterConstraint first param</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Tue, 23 Apr 2013 09:37:42 +0000</created>
                <updated>Tue, 23 Apr 2013 10:05:55 +0000</updated>
                    <resolved>Tue, 23 Apr 2013 10:05:55 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20093" author="doctrinebot" created="Tue, 23 Apr 2013 10:05:45 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-650&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/650&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/650&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-2408] [GH-649] Update coding standards</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2408</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 calumbrodie:&lt;/p&gt;

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

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

&lt;p&gt;Removing underscores from property/method names and change use statements to PSR-2&lt;/p&gt;</description>
                <environment></environment>
            <key id="14797">DDC-2408</key>
            <summary>[GH-649] Update coding standards</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>Sun, 21 Apr 2013 18:44:18 +0000</created>
                <updated>Sun, 21 Apr 2013 19:07:43 +0000</updated>
                    <resolved>Sun, 21 Apr 2013 19:07:43 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20085" author="doctrinebot" created="Sun, 21 Apr 2013 19:07:39 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-649&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/649&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/649&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20086" author="ocramius" created="Sun, 21 Apr 2013 19:07:43 +0000"  >&lt;p&gt;merged&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-2406] Merging of new detached entities with PrePersist lifecycle callback breaks</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2406</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Merging of new detached entities with PrePersist lifecycle callback breaks:&lt;/p&gt;

&lt;p&gt;Code snippet:&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 A
    {
       /**
        *  @ORM\ManyToOne(targetEntity= ...
        *  @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;
        }
        
        /**
         *
         * @ORM\PrePersist
         *
         * @&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 onPrePersist()
        {
           &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;getB() === &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; \Exception(&apos;B instance must be defined);
           }
           ....
        }
    }
    
    class B 
    {
    }
    
    $a = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; A();
    $b = $em-&amp;gt;find(&apos;B&apos;, 1);
    $a-&amp;gt;setB($b);
    $em-&amp;gt;persist($a); &lt;span class=&quot;code-comment&quot;&gt;// works fine as B instance is set
&lt;/span&gt;    $em-&amp;gt;detach($a);
    
    $a = $em-&amp;gt;merge($a) &lt;span class=&quot;code-comment&quot;&gt;// breaks in onPrePersist&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The reason it happens is that the merge operation is trying to persist a new entity created by uow::newInstance($class) without populating its properties first:&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;// If there is no ID, it is actually NEW.
&lt;/span&gt;    ....
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ( ! $id) {
        $managedCopy = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;newInstance($class);

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;persistNew($class, $managedCopy);
    } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
	....
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This should happen first for the $managedCopy:&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;// Merge state of $entity into existing (managed) entity
&lt;/span&gt;    foreach ($class-&amp;gt;reflClass-&amp;gt;getProperties() as $prop) {
        ....
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14791">DDC-2406</key>
            <summary>Merging of new detached entities with PrePersist lifecycle callback breaks</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="deatheriam">Oleg Namaka</reporter>
                        <labels>
                        <label>merge,</label>
                        <label>prePersist</label>
                    </labels>
                <created>Fri, 19 Apr 2013 17:01:32 +0000</created>
                <updated>Wed, 1 May 2013 12:24:53 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="20123" author="fabio.bat.silva" created="Sun, 28 Apr 2013 20:57:08 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=beberlei&quot; class=&quot;user-hover&quot; rel=&quot;beberlei&quot;&gt;Benjamin Eberlei&lt;/a&gt;, Is this an expected behavior ?&lt;/p&gt;

&lt;p&gt;I mean.. This issue is about dispatch the event before copy the original values into the managed instance. &lt;br/&gt;
But overall, should &lt;b&gt;$em-&amp;gt;detach()&lt;/b&gt; trigger &lt;b&gt;@PrePersist&lt;/b&gt; events ?&lt;/p&gt;</comment>
                    <comment id="20137" author="beberlei" created="Wed, 1 May 2013 08:48:08 +0000"  >&lt;p&gt;&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; he talks about $em-&amp;gt;merge() on a detached entity calling pre persist. This should only happen on a NEW entity, not on a DETACHED one.&lt;/p&gt;</comment>
                    <comment id="20146" author="deatheriam" created="Wed, 1 May 2013 12:22:24 +0000"  >&lt;p&gt;I tend to disagree with the statement above about pre persist that should not happen on a detached entity being merged back in. If this event handler contains a business logic that this entity needs to be checked against and the detached entity was modified before the merge operation in a way that invalidates it in the prePersist than I will end up with the invalid entity in the identity map. If the merge operation calls persist it must run the prePersist event handler as well for consistency.&lt;/p&gt;

&lt;p&gt;If there is a logic that prevents persisting invalid entities why should it bypassed in the merge operation?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2405] Changing strategy generates bad query.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2405</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;For (unit, acceptance, functional) testing purpose I need to change the strategy of my GameStuff Entity class.&lt;/p&gt;

&lt;p&gt;In previous version is was using php instruction below, but since doctrine orm 2.3, it doesn&apos;t work anymore.&lt;/p&gt;

&lt;p&gt;$orm-&amp;gt;getClassMetaData(&apos;Entities\GameStuff&apos;)-&amp;gt;setIdGeneratorType(\Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_NONE);&lt;/p&gt;

&lt;p&gt;will trigger:&lt;/p&gt;

&lt;p&gt;Doctrine\DBAL\DBALException: An exception occurred while executing &apos;INSERT INTO vbank_accounts (game_id, updated_at, created_at) VALUES (?, ?, ?)&apos; with params &lt;/p&gt;
{&quot;1&quot;:1000010, &quot;2&quot;:0,&quot;3&quot;:&quot;2013-04-19 17:16:05&quot;,&quot;4&quot;:&quot;2013-04-19 17:16:05&quot;}
&lt;p&gt;:&lt;/p&gt;

&lt;p&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;HY093&amp;#93;&lt;/span&gt;: Invalid parameter number: number of bound variables does not match number of tokens&lt;/p&gt;</description>
                <environment></environment>
            <key id="14790">DDC-2405</key>
            <summary>Changing strategy generates bad 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="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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="gedingun">Van Rotemberg</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Apr 2013 15:33:18 +0000</created>
                <updated>Sun, 21 Apr 2013 14:50:37 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="20070" author="beberlei" created="Sat, 20 Apr 2013 07:46:22 +0000"  >&lt;p&gt;The problem is that changing ClassMetadata after generating it from the cache is not really supported and depends on the Internal State of other classes. Have you tried creating a completly new EntityManager and then directly setting this? It could be that the SQL for the entity was already generated inside Doctrine, with the ID Generator information at IDENTITY_AUTO.&lt;/p&gt;</comment>
                    <comment id="20079" author="gedingun" created="Sun, 21 Apr 2013 11:29:49 +0000"  >&lt;p&gt;&amp;gt; The problem is that changing ClassMetadata after generating it from the cache is not really supported&lt;/p&gt;

&lt;p&gt;Yeah, it is a problem indeed, why set ticket status to resolved ?&lt;br/&gt;
Do you think it&apos;s normal to have a public method that trigger a fatal error ?&lt;/p&gt;

&lt;p&gt;Please fix it or put setIdGeneratorType as private, or AT LEAST add a context exception ...&lt;/p&gt;</comment>
                    <comment id="20080" author="ocramius" created="Sun, 21 Apr 2013 11:49:12 +0000"  >&lt;p&gt;Almost every interaction with metadata outside the `loadClassMetadata` event will cause unexpected problems. I don&apos;t think throwing an exception there helps in any way.&lt;/p&gt;</comment>
                    <comment id="20082" author="gedingun" created="Sun, 21 Apr 2013 14:49:26 +0000"  >&lt;p&gt;@marco pivetta&lt;/p&gt;

&lt;p&gt;The generation of the actual exception comes from DBALException on the query excetion and point a bad generated query (Invalid parameter number),&lt;br/&gt;
when the problem comes from setting ClassMetada, and concerns a problem of cache generated after loadClassMetadata.&lt;/p&gt;

&lt;p&gt;Adding an exception is just the fast way pointing where the problem comes from and that &quot;setting metadata after loadMetadata is not supported anymore&quot;. (It will spare developper&apos;s time that used to set metadata, but also help future contribution)&lt;/p&gt;

&lt;p&gt;&amp;gt; Please fix it or put setIdGeneratorType as private, or AT LEAST add a context exception ...&lt;br/&gt;
Note: BTW, my favorite solution would be to fix it (re-generate cache, or edit cache, or disable cache or whatever)&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2404] Filter using join tables</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2404</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Allow filters to add join tables to sql queries for filtering.&lt;/p&gt;

&lt;p&gt;Let&apos;s have Brand entity, and BrandText entity. Text is localisation for each Brand. If there is no BrandText with bt.isPublic and bt.web_id = 123 I wanna filter it globally and not even allow to load Brand entity.&lt;/p&gt;

&lt;p&gt;This cannot be solved by using DQL, because I need to affect lazily loaded associations, for example in templates&lt;/p&gt;

&lt;p&gt;Accessing $product-&amp;gt;brand-&amp;gt;  in template should resolve to NULL, when there is no BrandText.isPublic = 1.&lt;/p&gt;

&lt;p&gt;This could be solved by allowing filters to add joins to queries. Should I prepare a pull request? &lt;/p&gt;</description>
                <environment></environment>
            <key id="14789">DDC-2404</key>
            <summary>Filter using join tables</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="3">Duplicate</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="hosiplan">Filip Proch&#225;zka</reporter>
                        <labels>
                        <label>filter</label>
                        <label>filters</label>
                        <label>join</label>
                        <label>joins</label>
                    </labels>
                <created>Fri, 19 Apr 2013 14:21:43 +0000</created>
                <updated>Sun, 21 Apr 2013 18:01:47 +0000</updated>
                    <resolved>Sun, 21 Apr 2013 18:01:47 +0000</resolved>
                                                                    <due></due>
                    <votes>1</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="20083" author="deatheriam" created="Sun, 21 Apr 2013 17:52:26 +0000"  >&lt;p&gt;Duplicates &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2220&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2220&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20084" author="hosiplan" created="Sun, 21 Apr 2013 18:01:47 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2220&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2220&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2403] most projects no longer listed on home page</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2403</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;the homepage of the doctrine project used to list phpcr-odm and some other projects. they recently disapeared. i think they should either all be listed or at least have a link to the projects page at the bottom of that shortlist, saying &quot;all doctrine projects&quot; (see also the discussion on the doctrine-dev mailinglist, i create a ticket here as nothing happened after that discussion)&lt;/p&gt;</description>
                <environment></environment>
            <key id="14788">DDC-2403</key>
            <summary>most projects no longer listed on home page</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="dbu">David Buchmann</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Apr 2013 09:32:07 +0000</created>
                <updated>Sat, 20 Apr 2013 08:00:12 +0000</updated>
                    <resolved>Sat, 20 Apr 2013 08:00:12 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20071" author="beberlei" created="Sat, 20 Apr 2013 08:00:12 +0000"  >&lt;p&gt;not a ticket&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2402] [DOC] warning on serializing private properties: obsolete?</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2402</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;here we warn that when wanting to serialize properties, you should not have private properties as that would not work with proxies.&lt;/p&gt;

&lt;p&gt;afaik doctrine commons 2.4 now handles that properly and we can drop that warning, right?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/docs/en/reference/working-with-objects.rst#merging-entities&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/master/docs/en/reference/working-with-objects.rst#merging-entities&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14787">DDC-2402</key>
            <summary>[DOC] warning on serializing private properties: obsolete?</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="dbu">David Buchmann</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Apr 2013 09:29:15 +0000</created>
                <updated>Fri, 19 Apr 2013 09:34:48 +0000</updated>
                    <resolved>Fri, 19 Apr 2013 09:33:47 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20061" author="ocramius" created="Fri, 19 Apr 2013 09:33:47 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DCOM-175&quot; title=&quot;Proxies return private properties in __sleep, which is not supported by PHP.&quot;&gt;DCOM-175&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20062" author="ocramius" created="Fri, 19 Apr 2013 09:34:48 +0000"  >&lt;p&gt;No, we cannot yet remove that warning - it&apos;s not yet fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2401] INDEX BY not working on multiple columns</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2401</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;According to the docs on this page: &lt;br/&gt;
&lt;a href=&quot;http://docs.doctrine-project.org/en/latest/reference/dql-doctrine-query-language.html#using-index-by&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/en/latest/reference/dql-doctrine-query-language.html#using-index-by&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The following &quot;multi-dimensional index&quot; should be perfectly possible, with a default hydration mode:&lt;br/&gt;
SELECT b as business, p as product FROM Businesses b INDEX BY b.id JOIN Products p WITH b.id = p.businessid INDEX BY p.id&lt;/p&gt;

&lt;p&gt;However, b.id is completely ignored (it is a numeric primary key).&lt;/p&gt;

&lt;p&gt;I tried to go further, giving 2 products a matching barcode and indexing by barcode and then a (unique, numeric) productid. Only the barcode worked as a key and only one of the products with a matching barcode was selected. I used this query to test:&lt;br/&gt;
SELECT p FROM Products p INDEX BY p.barcode JOIN p.businessid b INDEX BY p.id&lt;/p&gt;

&lt;p&gt;I also flagged the docs, because I don&apos;t think a userid should/could be starting from 0.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14784">DDC-2401</key>
            <summary>INDEX BY not working on multiple columns</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="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="quintenvk">Quintenvk</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Apr 2013 15:54:58 +0000</created>
                <updated>Thu, 18 Apr 2013 20:17:31 +0000</updated>
                                    <version>2.3.3</version>
                                                <component>Documentation</component>
                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20047" author="fabio.bat.silva" created="Thu, 18 Apr 2013 13:41:30 +0000"  >&lt;p&gt;Hi Quintenvk&lt;/p&gt;

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

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                    <comment id="20054" author="quintenvk" created="Thu, 18 Apr 2013 18:40:34 +0000"  >&lt;p&gt;I added a testcase. Please note that the database settings are to be configured in Core/simplys/simplys.php, and that the dump is in dummy.sql.&lt;/p&gt;

&lt;p&gt;Apart from that all should run well immediately.&lt;/p&gt;</comment>
                    <comment id="20055" author="quintenvk" created="Thu, 18 Apr 2013 18:42:02 +0000"  >&lt;p&gt;Fabio,&lt;/p&gt;

&lt;p&gt;Please check the zip I just attached. I hope this helps you in finding the problem.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Quinten&lt;/p&gt;</comment>
                    <comment id="20056" author="fabio.bat.silva" created="Thu, 18 Apr 2013 19:28:37 +0000"  >&lt;p&gt;Thanks Quintenvk,&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 p.barcode, p.id, p.name FROM \core\Simplys\Entity\Products p INDEX BY p.barcode JOIN p.businessid b INDEX BY p.id&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;In this DQL you are trying to index by scalar values, &lt;br/&gt;
I think we does not support that, and a single dimensional array is the expected result in this case.&lt;/p&gt;

&lt;p&gt;Also the &lt;a href=&quot;http://docs.doctrine-project.org/en/latest/reference/dql-doctrine-query-language.html#using-index-by&quot; class=&quot;external-link&quot;&gt;INDEX BY&lt;/a&gt; documentations seems wrong to me.&lt;/p&gt;


&lt;p&gt;The given 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 u.id, u.status, upper(u.name) nameUpper FROM User u INDEX BY u.idJOIN u.phonenumbers p INDEX BY p.phonenumber &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Show the following result :&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
  0 =&amp;gt;
    array
      1 =&amp;gt;
        object(stdClass)[299]
          &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &apos;__CLASS__&apos; =&amp;gt; string &apos;Doctrine\Tests\Models\CMS\CmsUser&apos; (length=33)
          &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &apos;id&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; 1
          ..
      &apos;nameUpper&apos; =&amp;gt; string &apos;ROMANB&apos; (length=6)
  1 =&amp;gt;
    array
      2 =&amp;gt;
        object(stdClass)[298]
          &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &apos;__CLASS__&apos; =&amp;gt; string &apos;Doctrine\Tests\Models\CMS\CmsUser&apos; (length=33)
          &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &apos;id&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; 2
          ...
      &apos;nameUpper&apos; =&amp;gt; string &apos;JWAGE&apos; (length=5)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Which IMHO represents another DQL, something 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; SELECT u, p , upper(u.name) nameUpper FROM User u INDEX BY u.id JOIN u.phonenumbers p INDEX BY p.phonenumber&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="20057" author="quintenvk" created="Thu, 18 Apr 2013 19:34:33 +0000"  >&lt;p&gt;Thanks for your reply Fabio. &lt;br/&gt;
Do you think there could be alternatives (apart from a foreach-loop) to achieve the expected result?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Quinten&lt;/p&gt;</comment>
                    <comment id="20058" author="fabio.bat.silva" created="Thu, 18 Apr 2013 19:47:06 +0000"  >&lt;p&gt;Not sure if it&apos;s exactly the result you need but you can try &lt;/p&gt;

&lt;p&gt;Something 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;SELECT p, b FROM \core\Simplys\Entity\Products p INDEX BY p.barcode JOIN p.businessid b INDEX BY p.id&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;or something 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;SELECT PARTIAL p.{id, barcode, name}, b.{id, attributesYouNeed} FROM \core\Simplys\Entity\Products p INDEX BY p.barcode JOIN p.businessid b INDEX BY p.id&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And than :&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;
$result = $query-&amp;gt;getArrayResult();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="20059" author="quintenvk" created="Thu, 18 Apr 2013 19:58:55 +0000"  >&lt;p&gt;Both produce the same result as the query I had. I think i&apos;ll move on to loops after a bit more research, too bad it can&apos;t be done (at least for now) though... Would&apos;ve been nice.&lt;/p&gt;

&lt;p&gt;Thanks for your help though!&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11524" name="Testcase.zip" size="2020276" author="quintenvk" created="Thu, 18 Apr 2013 18:40:34 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2400] [GH-648] Add a AddParameters method in the QueryBuilder</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2400</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 Taluu:&lt;/p&gt;

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

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

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

&lt;p&gt;On doctrine 2.2, when we were calling the method `setParameters` to set a bunch of parameters on the QueryBuilder, each parameters were added or modified if they were already existing. &lt;/p&gt;

&lt;p&gt;That is not the case since doctrine 2.3 : each calls to `setParameters` will wipe out the other already setted parameters. I think it is logic, but still is a huge BC break, which is not really mentionned in the UPGRADE file (only the once regarding the use of an ArrayCollection is mentionned). &lt;/p&gt;

&lt;p&gt;With this PR, I added a `addParameters` which allows to add several parameters in several calls. Here is a use case :&lt;/p&gt;

&lt;p&gt;```php&lt;br/&gt;
&amp;lt;?php&lt;br/&gt;
// ... A repository&lt;br/&gt;
class UserRepository extends EntityRepository&lt;br/&gt;
{&lt;br/&gt;
     public function getUserWithSomething($criteriaA, $criteriaB, DateTime $since = null)&lt;br/&gt;
     {&lt;br/&gt;
         $qb = $this-&amp;gt;createQueryBuilder(&apos;u&apos;);&lt;br/&gt;
         $qb-&amp;gt;where($qb-&amp;gt;expr()&lt;del&gt;&amp;gt;andX($qb&lt;/del&gt;&amp;gt;expr()-&amp;gt;eq(&apos;u.criteriaA&apos;, &apos;:criteriaA&apos;),&lt;br/&gt;
                                                       $qb-&amp;gt;expr()-&amp;gt;eq(&apos;u.criteriaB&apos;, &apos;:criteriaB&apos;)));&lt;/p&gt;

&lt;p&gt;         // wanna search for objects since a specific date&lt;br/&gt;
         if (null !== $since) &lt;/p&gt;
{
             $qb = $this-&amp;gt;addSince($qb, $since);
         }

&lt;p&gt;         $qb-&amp;gt;addParameters(new ArrayCollection([&apos;criteriaA&apos; =&amp;gt; $criteriaA, &lt;br/&gt;
                                                                       &apos;criteriaB&apos; =&amp;gt; $criteriaB]));&lt;/p&gt;

&lt;p&gt;         return $qb-&amp;gt;getQuery()-&amp;gt;execute();&lt;br/&gt;
     }&lt;/p&gt;

&lt;p&gt;     public function addSince(QueryBuilder $qb, DateTime $since)&lt;/p&gt;
     {
         $qb = $qb-&amp;gt;andWhere($qb-&amp;gt;expr()-&amp;gt;gte(&apos;u.date&apos;, &apos;:since&apos;));

         return $qb-&amp;gt;setParameter(&apos;since&apos;, $since);
     }
&lt;p&gt;}&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;So, as I was saying, until 2.2, you could use `setParameters` in the main method (`getUserWithSomething`) which was calling (or not) the submethod `addSince`, which could set parameters before calling the `setParameters` method. Now, you can&apos;t do that anymore : either you need to make several calls to `setParameter` :&lt;/p&gt;

&lt;p&gt;```php&lt;br/&gt;
&amp;lt;?php&lt;br/&gt;
// ....&lt;br/&gt;
     $qb = $qb-&amp;gt;setParameter(&apos;criteriaA&apos;, $criteriaA)&lt;br/&gt;
                   -&amp;gt;setParameter(&apos;criteraB&apos;, $criteriaB);&lt;br/&gt;
//...&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;Either, I guess, you need to first retrieve all the parameters and then add them by hand : &lt;/p&gt;

&lt;p&gt;```php&lt;br/&gt;
&amp;lt;?php&lt;br/&gt;
// ....&lt;br/&gt;
     $parameters = $qb-&amp;gt;getParameters();&lt;br/&gt;
     $parameters-&amp;gt;add(new Parameter(&apos;criteriaA&apos;, $criteriaA);&lt;br/&gt;
     $parameters-&amp;gt;add(new Parameter(&apos;criteriaB&apos;, $criteriaB);&lt;/p&gt;

&lt;p&gt;     $qb = $qb-&amp;gt;setParameters($parameters);&lt;br/&gt;
//...&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;So that&apos;s why I propose this new method in the QueryBuilder. if I&apos;m wrong anywhere, or need more information please feel free to comment. &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;Cheers.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14779">DDC-2400</key>
            <summary>[GH-648] Add a AddParameters method in the 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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Sat, 13 Apr 2013 22:38:14 +0000</created>
                <updated>Sun, 14 Apr 2013 17:21:36 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 17:21:36 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20013" author="doctrinebot" created="Sun, 14 Apr 2013 16:04:47 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-648&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/648&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/648&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2399] unserializing returns proxyclass name with slashes</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2399</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I serialize a &quot;user&quot;-entity using the following code:&lt;/p&gt;

&lt;p&gt;$user-&amp;gt;getBusinessid()-&amp;gt;getId(); //this is necessary to load the proxy&lt;br/&gt;
$em-&amp;gt;detach($user);&lt;br/&gt;
$_SESSION&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;user&amp;#39;&amp;#93;&lt;/span&gt; = serialize($user);&lt;/p&gt;

&lt;p&gt;When I unserialize said entity with this code:&lt;/p&gt;

&lt;p&gt;$em = self::getEntityManager();&lt;br/&gt;
$user = unserialize($_SESSION&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;user&amp;#39;&amp;#93;&lt;/span&gt;);&lt;br/&gt;
return $em-&amp;gt;merge($user);&lt;/p&gt;

&lt;p&gt;I get an error like this:&lt;br/&gt;
require(): Failed opening required &apos;./core/project/Proxy/_&lt;em&gt;CG&lt;/em&gt;_/core/project/Entity/Businesses.php&apos; .&lt;/p&gt;

&lt;p&gt;The thing is that everything after _&lt;em&gt;CG&lt;/em&gt;_ should &lt;b&gt;not&lt;/b&gt; have any forward slashes. In that case the path would be completely correct.&lt;/p&gt;</description>
                <environment>OSX, PHP 5.4.9</environment>
            <key id="14778">DDC-2399</key>
            <summary>unserializing returns proxyclass name with slashes</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="quintenvk">Quintenvk</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Apr 2013 19:05:01 +0000</created>
                <updated>Fri, 12 Apr 2013 19:23:44 +0000</updated>
                    <resolved>Fri, 12 Apr 2013 19:16:01 +0000</resolved>
                            <version>2.3.3</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19986" author="ocramius" created="Fri, 12 Apr 2013 19:15:34 +0000"  >&lt;p&gt;There&apos;s an appositely coded autoloader in the ORM in 2.3 ( &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/2.3.3/lib/Doctrine/ORM/Proxy/Autoloader.php&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/2.3.3/lib/Doctrine/ORM/Proxy/Autoloader.php&lt;/a&gt; ) and in common in 2.4-RC ( &lt;a href=&quot;https://github.com/doctrine/common/blob/2.4.0-RC1/lib/Doctrine/Common/Proxy/Autoloader.php&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/blob/2.4.0-RC1/lib/Doctrine/Common/Proxy/Autoloader.php&lt;/a&gt; ). Proxies are not PSR-0 compliant &lt;/p&gt;</comment>
                    <comment id="19987" author="quintenvk" created="Fri, 12 Apr 2013 19:23:44 +0000"  >&lt;p&gt;Ah, I hadn&apos;t found anything about that. Thank you!&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2398] Add a &quot;use namespace&quot; like feature to DQL to have short/reusable entity classname</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2398</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I find not always portable-friendly the use of full class path in DQL.&lt;/p&gt;

&lt;p&gt;$query = $em-&amp;gt;createQuery(&apos;SELECT u FROM \MyProject\Model\User u WHERE u.age &amp;gt; 20&apos;);&lt;/p&gt;

&lt;p&gt;could be :&lt;/p&gt;

&lt;p&gt;$query = $em-&amp;gt;createQuery(&apos;USE \MyProject\Model SELECT u FROM User u WHERE u.age &amp;gt; 20&apos;);&lt;/p&gt;

&lt;p&gt;or :&lt;/p&gt;

&lt;p&gt;$query = $em-&amp;gt;use(&apos;\MyProject\Model&apos;)-&amp;gt;createQuery(&apos;SELECT u FROM User u WHERE u.age &amp;gt; 20&apos;);&lt;/p&gt;

&lt;p&gt;And with a default namespace attached to the entity manager :&lt;/p&gt;

&lt;p&gt;$query = $em-&amp;gt;use()-&amp;gt;createQuery(&apos;SELECT u FROM User u WHERE u.age &amp;gt; 20&apos;);&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14775">DDC-2398</key>
            <summary>Add a &quot;use namespace&quot; like feature to DQL to have short/reusable entity classname</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="quazardous">David Berlioz</reporter>
                        <labels>
                        <label>Namespace</label>
                        <label>portability</label>
                    </labels>
                <created>Thu, 11 Apr 2013 09:26:02 +0000</created>
                <updated>Thu, 11 Apr 2013 10:06:13 +0000</updated>
                    <resolved>Thu, 11 Apr 2013 10:06:13 +0000</resolved>
                                                            <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19974" author="ocramius" created="Thu, 11 Apr 2013 09:27:48 +0000"  >&lt;p&gt;In strings, you always use the fully qualified class name, or an entity alias&lt;/p&gt;</comment>
                    <comment id="19975" author="quazardous" created="Thu, 11 Apr 2013 09:34:55 +0000"  >&lt;p&gt;yes &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/tongue.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; and so it&apos;s not symmetrical with PHP coding...&lt;br/&gt;
it&apos;s unesthetic and when you do code refactoring it&apos;s harder than just managing your use &quot;namespace&quot;;&lt;br/&gt;
but i&apos;ve put priority to minor ;p&lt;/p&gt;</comment>
                    <comment id="19976" author="ocramius" created="Thu, 11 Apr 2013 10:06:01 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=quazardous&quot; class=&quot;user-hover&quot; rel=&quot;quazardous&quot;&gt;David Berlioz&lt;/a&gt; I&apos;m closing this. Strings are values passed around in your system, and having their meaning depend on context is absolutely a no-go&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2397] [GH-647] Bugfix/ddc 1048 cordoval</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2397</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 cordoval:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14773">DDC-2397</key>
            <summary>[GH-647] Bugfix/ddc 1048 cordoval</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 10 Apr 2013 03:29:36 +0000</created>
                <updated>Fri, 12 Apr 2013 01:11:18 +0000</updated>
                    <resolved>Fri, 12 Apr 2013 01:11:18 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19972" author="cordoval" created="Wed, 10 Apr 2013 03:37:58 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1048&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1048&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;please check ^^&lt;/p&gt;</comment>
                    <comment id="19983" author="doctrinebot" created="Fri, 12 Apr 2013 01:07:10 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-647&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/647&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/647&lt;/a&gt;&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-2395] [GH-645] Fixes Oracle Pagination bug when ordering is present (e.g. Oracle subquery ordering)</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2395</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/645&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/645&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;See&#65533;&#65533;&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; for a full description of the problem.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14771">DDC-2395</key>
            <summary>[GH-645] Fixes Oracle Pagination bug when ordering is present (e.g. Oracle subquery ordering)</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Apr 2013 20:02:09 +0000</created>
                <updated>Sun, 14 Apr 2013 09:10:02 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 09:10:02 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19970" author="doctrinebot" created="Tue, 9 Apr 2013 20:34:29 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-645&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/645&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/645&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2394] QueryExpressionVisitor has no implementation of Comparison::CONTAINS</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2394</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;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Use case&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$criteria = Criteria::create();
$criteria
    -&amp;gt;andWhere(
        $criteria-&amp;gt;expr()-&amp;gt;contains(&apos;r.body&apos;, &apos;foo&apos;)
    )
;

$entities = $repo-&amp;gt;createQueryBuilder()-&amp;gt;addCriteria($criteria)-&amp;gt;getQuery()-&amp;gt;getResult();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Throws 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;RuntimeException: Unknown comparison &lt;span class=&quot;code-keyword&quot;&gt;operator&lt;/span&gt;: CONTAINS&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I except it to properly handle the &lt;tt&gt;CONTAINS&lt;/tt&gt; comparison and result in a &lt;tt&gt;LIKE&lt;/tt&gt; operator.&lt;/p&gt;

&lt;p&gt;-------&lt;/p&gt;

&lt;p&gt;I added a failing test case &amp;amp; a fix there: &lt;a href=&quot;https://github.com/borisguery/doctrine2/tree/DDC-2394&quot; class=&quot;external-link&quot;&gt;https://github.com/borisguery/doctrine2/tree/DDC-2394&lt;/a&gt;&lt;/p&gt;</description>
                <environment>n/a</environment>
            <key id="14768">DDC-2394</key>
            <summary>QueryExpressionVisitor has no implementation of Comparison::CONTAINS</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="bguery">Boris Gu&#233;ry</reporter>
                        <labels>
                        <label>criteria</label>
                        <label>expression</label>
                        <label>orm</label>
                        <label>query</label>
                    </labels>
                <created>Mon, 8 Apr 2013 17:34:13 +0000</created>
                <updated>Sun, 14 Apr 2013 09:21:21 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 09:21:21 +0000</resolved>
                            <version>Git Master</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19994" author="beberlei" created="Sun, 14 Apr 2013 09:21:21 +0000"  >&lt;p&gt;This was added in 2.4, you are probably using Collections 1.1 with ORM 2.3, where this occurs.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2393] Doctrine ORM put null to relation field when write persisting</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2393</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;There is my bundle, for more details:&lt;br/&gt;
&lt;a href=&quot;https://github.com/hell0w0rd/bad-doctrine-entities&quot; class=&quot;external-link&quot;&gt;https://github.com/hell0w0rd/bad-doctrine-entities&lt;/a&gt;&lt;/p&gt;</description>
                <environment>symfony2.2</environment>
            <key id="14766">DDC-2393</key>
            <summary>Doctrine ORM put null to relation field when write persisting</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="4">Incomplete</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="hell0w0rd">Nikita</reporter>
                        <labels>
                    </labels>
                <created>Sun, 7 Apr 2013 12:03:19 +0000</created>
                <updated>Sun, 7 Apr 2013 12:31:33 +0000</updated>
                    <resolved>Sun, 7 Apr 2013 12:31:31 +0000</resolved>
                            <version>2.3.3</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19952" author="ocramius" created="Sun, 7 Apr 2013 12:05:39 +0000"  >&lt;p&gt;Can you please make an example of what the failure you&apos;re experiencing looks like? What is being done? What is the expected result? What is the experienced behaviour?&lt;/p&gt;</comment>
                    <comment id="19953" author="hell0w0rd" created="Sun, 7 Apr 2013 12:11:33 +0000"  >&lt;p&gt;When controller persist object, I&apos;m expecting orm put not null into relation field in fact it is not so.&lt;/p&gt;</comment>
                    <comment id="19954" author="ocramius" created="Sun, 7 Apr 2013 12:15:38 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=hell0w0rd&quot; class=&quot;user-hover&quot; rel=&quot;hell0w0rd&quot;&gt;Nikita&lt;/a&gt; the example at &lt;a href=&quot;https://github.com/hell0w0rd/bad-doctrine-entities/blob/master/DeskBundle/Controller/PostController.php#L15-L21&quot; class=&quot;external-link&quot;&gt;https://github.com/hell0w0rd/bad-doctrine-entities/blob/master/DeskBundle/Controller/PostController.php#L15-L21&lt;/a&gt; is not enough to open an issue. Can you please build a simple script that does not involve third party components and that reproduces your problem? It should work only with the ORM.&lt;/p&gt;</comment>
                    <comment id="19955" author="hell0w0rd" created="Sun, 7 Apr 2013 12:25:09 +0000"  >&lt;p&gt;My issue is closely connected with third party components, because they decouple from each other - is not to decide&lt;/p&gt;</comment>
                    <comment id="19956" author="ocramius" created="Sun, 7 Apr 2013 12:30:44 +0000"  >&lt;p&gt;Then it&apos;s impossible for us to decide what the cause is. I&apos;m closing this one - consider reproducing the problem locally and then deciding whether this is an ORM or a symfony form problem.&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-2391] [GH-643] DDC-2390: Remove Query dependency in SqlWalker and Parser</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2391</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/643&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/643&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;To prevent future problems with illegal Query parameter access and also to decouple the namespaces by removing bidirectional dependency.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14760">DDC-2391</key>
            <summary>[GH-643] DDC-2390: Remove Query dependency in SqlWalker and Parser</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="2">Won&apos;t Fix</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 20:12:35 +0000</created>
                <updated>Wed, 1 May 2013 09:10:31 +0000</updated>
                    <resolved>Wed, 1 May 2013 09:10:31 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20142" author="doctrinebot" created="Wed, 1 May 2013 09:10:27 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-643&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/643&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/643&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <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-2389] [GH-642] replaced direct class in instance creation</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2389</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 dmishh:&lt;/p&gt;

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

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

&lt;p&gt;return new EntityManager() -&amp;gt; return new static() on line 945&lt;br/&gt;
made code more reusable&lt;/p&gt;</description>
                <environment></environment>
            <key id="14758">DDC-2389</key>
            <summary>[GH-642] replaced direct class in instance creation</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Apr 2013 14:46:01 +0000</created>
                <updated>Thu, 4 Apr 2013 14:47:37 +0000</updated>
                    <resolved>Thu, 4 Apr 2013 14:47:37 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19936" author="beberlei" created="Thu, 4 Apr 2013 14:47:12 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-642&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/642&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/642&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19937" author="ocramius" created="Thu, 4 Apr 2013 14:47:37 +0000"  >&lt;p&gt;EntityManager should not be extended&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2388] Zend Optimizer Plus/opcache have overlap in config settings, annotations reader doesn&apos;t identify these properly</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2388</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Doctrine\Common\Annotations\AnnotationReader.php&lt;/p&gt;

&lt;p&gt;A change was recently authored in the AnnotationReader constructor that checked for a properly configured opcode cache (namely saving comments so that Doctrine can parse annotations).&lt;/p&gt;

&lt;p&gt;The current open source version of Zend Optimizer+ hosted at GitHub (&lt;a href=&quot;https://github.com/zend-dev/ZendOptimizerPlus&quot; class=&quot;external-link&quot;&gt;https://github.com/zend-dev/ZendOptimizerPlus&lt;/a&gt;) when loaded registers itself as a module with the name &quot;Zend Optimizer+&quot; but takes configuration directives in the form of &quot;opcache.&amp;lt;parameter&amp;gt;&quot;.&lt;/p&gt;

&lt;p&gt;The change to the constructor requires that if the module name is Zend Optimizer+, then the configuration directives must be prefixed with &quot;zend_optimizerplus.&amp;lt;parameter&amp;gt;&quot;. This is clearly incorrect.&lt;/p&gt;

&lt;p&gt;The most recent update now complains of an AnnotationException as a consequence of this change when running Symfony2 (or Doctrine) with the latest opcache because configuration directives aren&apos;t detected properly.&lt;/p&gt;

&lt;p&gt;I am happy to fix this but could not find a way to report an issue to initiate the process.&lt;/p&gt;

&lt;p&gt;I would suggest something like this in the constructor:&lt;/p&gt;

&lt;p&gt;if ((extension_loaded(&apos;Zend Optimizer+&apos;) || extension_loaded(&apos;opcache&apos;)) &amp;amp;&amp;amp; !(ini_get(&apos;opcache.save_comments&apos;) == 0 XOR ini_get(&apos;zend_optimizerplus.save_comments&apos;) == 0)) {&lt;/p&gt;

&lt;p&gt;What this means is that if either extension is loaded, one of those directives must be true and configured. This is a compromise. The alternative would be to keep the original source and do the following:&lt;/p&gt;


&lt;p&gt;        if (extension_loaded(&apos;Zend Optimizer+&apos;) &amp;amp;&amp;amp; ini_get(&apos;zend_optimizerplus.save_comments&apos;) == 0) {&lt;br/&gt;
            if (ini_get(&apos;opcache.save_comments&apos;) == 0) &lt;/p&gt;
{
                throw AnnotationException::optimizerPlusSaveComments();
            }
&lt;p&gt;        }&lt;/p&gt;

&lt;p&gt;        if (extension_loaded(&apos;opcache&apos;) &amp;amp;&amp;amp; ini_get(&apos;opcache.save_comments&apos;) == 0) &lt;/p&gt;
{
            throw AnnotationException::optimizerPlusSaveComments();
        }


&lt;p&gt;I have no idea about the &quot;opcache&quot; module and what it actually equates to or whether it has alternative formats for its configuration directives. I feel like the second suggestion is even smellier than my original suggestion despite probably handling the edge case better.&lt;/p&gt;

&lt;p&gt;If you want a pull request, I will send one, just let me know how you want to handle it.&lt;/p&gt;

&lt;p&gt;If my PHP is horrible I apologise.&lt;/p&gt;
</description>
                <environment></environment>
            <key id="14756">DDC-2388</key>
            <summary>Zend Optimizer Plus/opcache have overlap in config settings, annotations reader doesn&apos;t identify these properly</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="scribblet">Ross Cousens</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Apr 2013 01:59:18 +0000</created>
                <updated>Tue, 23 Apr 2013 01:15:55 +0000</updated>
                    <resolved>Sat, 20 Apr 2013 08:31:11 +0000</resolved>
                            <version>2.3.3</version>
                                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19935" author="ocramius" created="Thu, 4 Apr 2013 08:03:39 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=scribblet&quot; class=&quot;user-hover&quot; rel=&quot;scribblet&quot;&gt;Ross Cousens&lt;/a&gt; is this already enstabilished? It&apos;s not worth changing it until the ZO+ stuff is stable.&lt;/p&gt;</comment>
                    <comment id="20014" author="scribblet" created="Mon, 15 Apr 2013 01:59:14 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=ocramius&quot; class=&quot;user-hover&quot; rel=&quot;ocramius&quot;&gt;Marco Pivetta&lt;/a&gt; &lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=beberlei&quot; class=&quot;user-hover&quot; rel=&quot;beberlei&quot;&gt;Benjamin Eberlei&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Seems stable to me.&lt;/p&gt;

&lt;p&gt;I guess whether this is a priority or not depends on your subjective weighting of its importance and whether or not you use ZO+. I&apos;ve ditched APC, and moved 20+ web servers over to Apache+ZO+. I currently deploy my own version of DBAL commons because it is not possible to work around it.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/zend-dev/ZendOptimizerPlus&quot; class=&quot;external-link&quot;&gt;https://github.com/zend-dev/ZendOptimizerPlus&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Please see this reference, why would they suddenly change the name of all the configuration directives especially in light of the fact that this is being integrated into PHP 5.5 as the standard generic &quot;opcache&quot; solution? I think this is where the confusion comes from. It might be branded as ZO+ on Github, but that becomes irrelevant when it&apos;s part of core.&lt;/p&gt;

&lt;p&gt;I&apos;ve tried contacting Beberlei directly (the author of the change), on Twitter and via e-mail, but no response. Not getting any response is quite annoying as it&apos;s been a month since this change was made and whenever I update an existing site or publish a new site I have to deal with this.&lt;/p&gt;

&lt;p&gt;I need to invest some time in finding out how I can maintain my own fork of OSS projects that pull changes in from the branched master but allow me to keep 1 or 2 files totally different. The other thing that drives me insane is the fact that the postgresql platform drivers can&apos;t implement GUID generators because it requires an extension be enabled on the server (seriously, solve with documentation, it&apos;s easy to detect programmatically as well) plus the choosing of a function, when there is obviously only one sane choice.&lt;/p&gt;

&lt;p&gt;I am so grateful for the opportunity to develop with OSS, but the bureaucratic decision-by-committee stuff is so frustrating when you&apos;re an end-user and can&apos;t find anyone who gives half a crap about stuff that is just plain stupid but overlooked due to resources already spread thin or whatever may be the case. I would be happy to develop fixes as well, but when they languish because you can&apos;t find a maintainer that is  familiar with the issue, interested in finding a fix, and has the time available to act as custodian of a pull request, it is incredibly demoralizing.&lt;/p&gt;
</comment>
                    <comment id="20073" author="beberlei" created="Sat, 20 Apr 2013 08:31:11 +0000"  >&lt;p&gt;Fixed and released a Collections 1.1.1 version&lt;/p&gt;</comment>
                    <comment id="20090" author="scribblet" created="Tue, 23 Apr 2013 01:15:55 +0000"  >&lt;p&gt;Thanks Benjamin, I am grateful for the fix! Happy coding!&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2387] convert-mapping not working correctly with composite primary keys/foreign keys in 2.4.0-RC1</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2387</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;(Apologies if this is somehow a Symfony-specific issue)&lt;/p&gt;

&lt;p&gt;I updated my application via Composer yesterday, and received Doctrine 2.4.0-RC1. After this update, generating entities has been problematic under certain circumstances.&lt;/p&gt;

&lt;p&gt;Here is an example table in MySQL:&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;
CREATE TABLE `user_email` (
  `user_id` int(10) unsigned NOT NULL COMMENT &apos;FK to user&apos;,
  `email` varchar(254) NOT NULL,
  `email_datasource` smallint(1) unsigned NOT NULL COMMENT &apos;FK to datasource_code&apos;,
  `insert_date` datetime NOT NULL,
  PRIMARY KEY (`user_id`,`email`,`email_datasource`),
  KEY `FK_UserEmail_DataSourceCode` (`email_datasource`),
  CONSTRAINT `FK_UserEmail_User` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In Doctrine 2.3, the mapping works correctly, and you end up with a 3-part primary key, with a user property mapped to the User entity, and a datasourceCode property mapped to the DatasourceCode entity. All good.&lt;/p&gt;

&lt;p&gt;In 2.4, the following error is given: &lt;tt&gt;Single id is not allowed on composite primary key in entity UserEmail&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Removing one of the foreign keys in the table (either to User or DatasourceCode) but keeping the primary key set to all 3 columns allows the mapping to work. &lt;em&gt;But&lt;/em&gt;, if you then remove one of the columns from the primary key (say, email_datasource) it fails again.&lt;/p&gt;


</description>
                <environment>Symfony 2.2.0, MySQL 5.1</environment>
            <key id="14755">DDC-2387</key>
            <summary>convert-mapping not working correctly with composite primary keys/foreign keys in 2.4.0-RC1</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="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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="succinct">Nicholas Van Dusen</reporter>
                        <labels>
                    </labels>
                <created>Wed, 3 Apr 2013 20:45:40 +0000</created>
                <updated>Tue, 11 Jun 2013 11:39:19 +0000</updated>
                                                    <fixVersion>2.3.4</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>6</watches>
                        <comments>
                    <comment id="19940" author="beberlei" created="Thu, 4 Apr 2013 20:53:11 +0000"  >&lt;p&gt;Can you provide the full stack trace to the exception please?&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;
$e-&amp;gt;getTraceAsString();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="19977" author="succinct" created="Thu, 11 Apr 2013 16:02:57 +0000"  >&lt;p&gt;Benjamin, I&apos;m not sure how to get the trace for you, since I&apos;m running from inside the Symfony2 doctrine:mapping:import command line item.&lt;/p&gt;</comment>
                    <comment id="19978" author="stof" created="Thu, 11 Apr 2013 16:11:56 +0000"  >&lt;p&gt;Use the &lt;tt&gt;--verbose&lt;/tt&gt; option when running the command&lt;/p&gt;</comment>
                    <comment id="19979" author="succinct" created="Thu, 11 Apr 2013 17:21:35 +0000"  >&lt;p&gt;I was able to get a trace for you:&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;#0 /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/html/voxrepublic/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1571): Doctrine\ORM\Mapping\MappingException::singleIdNotAllowedOnCompositePrimaryKey(&apos;UserEmail&apos;)
#1 /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/html/voxrepublic/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(422): Doctrine\ORM\Mapping\ClassMetadataInfo-&amp;gt;getSingleIdentifierFieldName()
#2 /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/html/voxrepublic/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(136): Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;completeIdGeneratorMapping(&lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Doctrine\ORM\Mapping\ClassMetadata))
#3 /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/html/voxrepublic/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(302): Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;doLoadMetadata(&lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Doctrine\ORM\Mapping\ClassMetadata), NULL, &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;, Array)
#4 /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/html/voxrepublic/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(212): Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory-&amp;gt;loadMetadata(&apos;UserEmail&apos;)
#5 /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/html/voxrepublic/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(112): Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory-&amp;gt;getMetadataFor(&apos;UserEmail&apos;)
#6 /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/html/voxrepublic/vendor/doctrine/doctrine-bundle/Doctrine/Bundle/DoctrineBundle/Command/ImportMappingDoctrineCommand.php(108): Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory-&amp;gt;getAllMetadata()
#7 /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/html/voxrepublic/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php(240): Doctrine\Bundle\DoctrineBundle\Command\ImportMappingDoctrineCommand-&amp;gt;execute(&lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Symfony\Component\Console\Input\ArgvInput), &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Symfony\Component\Console\Output\ConsoleOutput))
#8 /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/html/voxrepublic/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Command\Command-&amp;gt;run(&lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Symfony\Component\Console\Input\ArgvInput), &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Symfony\Component\Console\Output\ConsoleOutput))
#9 /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/html/voxrepublic/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(78): Symfony\Component\Console\Application-&amp;gt;doRun(&lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Symfony\Component\Console\Input\ArgvInput), &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Symfony\Component\Console\Output\ConsoleOutput))
#10 /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/html/voxrepublic/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(106): Symfony\Bundle\FrameworkBundle\Console\Application-&amp;gt;doRun(&lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Symfony\Component\Console\Input\ArgvInput), &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Symfony\Component\Console\Output\ConsoleOutput))
#11 /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/html/voxrepublic/app/console(22): Symfony\Component\Console\Application-&amp;gt;run(&lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Symfony\Component\Console\Input\ArgvInput))
#12 {main}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="19995" author="beberlei" created="Sun, 14 Apr 2013 09:31:07 +0000"  >&lt;p&gt;The problem is that Doctrine seems to detect that you only have on id field on this entity and then a new function of 2.4 throws this error. I will try to reproduce this with your table. Until then could you show me the var_dump() of the $class variable in Doctrine\ORM\ClassMetadataFactory#completeIdGeneratorMapping()? This would help very much already.&lt;/p&gt;</comment>
                    <comment id="20015" author="maximilian" created="Mon, 15 Apr 2013 14:48:07 +0000"  >&lt;p&gt;I have the same error when using &quot;doctrine:mapping:import&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;CREATE  TABLE IF NOT EXISTS `dev_Recipe`.`step` (

  `recipe_id` INT NOT NULL ,

  `step_number` INT NOT NULL ,

  `description` TEXT NULL ,

  `timer` INT NULL ,

  `image` VARCHAR(100) NULL ,

  PRIMARY KEY (`recipe_id`, `step_number`) ,

  INDEX `recipe_id_idx` (`recipe_id` ASC) ,

  INDEX `step_number` (`step_number` ASC) ,

  CONSTRAINT `step_recipe_id`

    FOREIGN KEY (`recipe_id` )

    REFERENCES `dev_Recipe`.`recipe` (`recipe_id` )

    ON DELETE NO ACTION

    ON UPDATE NO ACTION)

ENGINE = InnoDB;&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;Exception trace:
 () at \htdocs\SF2\vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\MappingException.php:258
 Doctrine\ORM\Mapping\MappingException::singleIdNotAllowedOnCompositePrimaryKey() at \htdocs\SF2\vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\ClassMetadataInfo.php:1571
 Doctrine\ORM\Mapping\ClassMetadataInfo-&amp;gt;getSingleIdentifierFieldName() at \htdocs\SF2\vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\ClassMetadataFactory.php:422
 Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;completeIdGeneratorMapping() at \htdocs\SF2\vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\ClassMetadataFactory.php:136
 Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;doLoadMetadata() at \htdocs\SF2\vendor\doctrine\common\lib\Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory.php:302
 Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory-&amp;gt;loadMetadata() at \htdocs\SF2\vendor\doctrine\common\lib\Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory.php:212
 Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory-&amp;gt;getMetadataFor() at \htdocs\SF2\vendor\doctrine\common\lib\Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory.php:112
 Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory-&amp;gt;getAllMetadata() at \htdocs\SF2\vendor\doctrine\orm\lib\Doctrine\ORM\Tools\Console\Command\ConvertMappingCommand.php:126
 Doctrine\ORM\Tools\Console\Command\ConvertMappingCommand-&amp;gt;execute() at \htdocs\SF2\vendor\doctrine\doctrine-bundle\Doctrine\Bundle\DoctrineBundle\Command\Proxy\ConvertMappingDoctrineCommand.php:59
 Doctrine\Bundle\DoctrineBundle\Command\Proxy\ConvertMappingDoctrineCommand-&amp;gt;execute() at \htdocs\SF2\vendor\symfony\symfony\src\Symfony\Component\Console\Command\Command.php:240
 Symfony\Component\Console\Command\Command-&amp;gt;run() at \htdocs\SF2\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:193
 Symfony\Component\Console\Application-&amp;gt;doRun() at \htdocs\SF2\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:78
 Symfony\Bundle\FrameworkBundle\Console\Application-&amp;gt;doRun() at \htdocs\SF2\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:106
 Symfony\Component\Console\Application-&amp;gt;run() at \htdocs\SF2\app\console:22&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&quot;var_dump($class);&quot; returns:&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;object(Doctrine\ORM\Mapping\ClassMetadata)#470 (36) {
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
  string(10) &lt;span class=&quot;code-quote&quot;&gt;&quot;Ingredient&quot;&lt;/span&gt;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namespace&quot;&lt;/span&gt;]=&amp;gt;
  string(0) &quot;&quot;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;rootEntityName&quot;&lt;/span&gt;]=&amp;gt;
  string(10) &lt;span class=&quot;code-quote&quot;&gt;&quot;Ingredient&quot;&lt;/span&gt;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;customGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;customRepositoryClassName&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isMappedSuperclass&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;parentClasses&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;subClasses&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namedQueries&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namedNativeQueries&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;sqlResultSetMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;identifier&quot;&lt;/span&gt;]=&amp;gt;
  array(1) {
    [0]=&amp;gt;
    string(12) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredientId&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;inheritanceType&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;generatorType&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(4) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;ingredientId&quot;&lt;/span&gt;]=&amp;gt;
    array(6) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(12) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredientId&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(13) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient_id&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(7) &lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;unsigned&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    array(6) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;length&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(45)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fixed&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;color&quot;&lt;/span&gt;]=&amp;gt;
    array(5) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(5) &lt;span class=&quot;code-quote&quot;&gt;&quot;color&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(5) &lt;span class=&quot;code-quote&quot;&gt;&quot;color&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(7) &lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;unsigned&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;img&quot;&lt;/span&gt;]=&amp;gt;
    array(6) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(3) &lt;span class=&quot;code-quote&quot;&gt;&quot;img&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(3) &lt;span class=&quot;code-quote&quot;&gt;&quot;img&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;length&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(45)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fixed&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
    }
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldNames&quot;&lt;/span&gt;]=&amp;gt;
  array(4) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient_id&quot;&lt;/span&gt;]=&amp;gt;
    string(12) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredientId&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;color&quot;&lt;/span&gt;]=&amp;gt;
    string(5) &lt;span class=&quot;code-quote&quot;&gt;&quot;color&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;img&quot;&lt;/span&gt;]=&amp;gt;
    string(3) &lt;span class=&quot;code-quote&quot;&gt;&quot;img&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnNames&quot;&lt;/span&gt;]=&amp;gt;
  array(4) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;ingredientId&quot;&lt;/span&gt;]=&amp;gt;
    string(13) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient_id&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;color&quot;&lt;/span&gt;]=&amp;gt;
    string(5) &lt;span class=&quot;code-quote&quot;&gt;&quot;color&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;img&quot;&lt;/span&gt;]=&amp;gt;
    string(3) &lt;span class=&quot;code-quote&quot;&gt;&quot;img&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorValue&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorMap&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorColumn&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;table&quot;&lt;/span&gt;]=&amp;gt;
  array(1) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    string(10) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;lifecycleCallbacks&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;associationMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(1) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;ingredientCategory&quot;&lt;/span&gt;]=&amp;gt;
    array(15) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(18) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredientCategory&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;targetEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(18) &lt;span class=&quot;code-quote&quot;&gt;&quot;IngredientCategory&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;mappedBy&quot;&lt;/span&gt;]=&amp;gt;
      string(10) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(8)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;inversedBy&quot;&lt;/span&gt;]=&amp;gt;
      NULL
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isOwningSide&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;sourceEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(10) &lt;span class=&quot;code-quote&quot;&gt;&quot;Ingredient&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fetch&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(2)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;cascade&quot;&lt;/span&gt;]=&amp;gt;
      array(0) {
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRemove&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadePersist&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRefresh&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeMerge&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeDetach&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;orphanRemoval&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isIdentifierComposite&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;containsForeignIdentifier&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;idGenerator&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;sequenceGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;tableGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;changeTrackingPolicy&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isVersioned&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;versionField&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;reflClass&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isReadOnly&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namingStrategy&quot;&lt;/span&gt;:&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt;]=&amp;gt;
  object(Doctrine\ORM\Mapping\DefaultNamingStrategy)#258 (0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;reflFields&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;_prototype&quot;&lt;/span&gt;:&lt;span class=&quot;code-quote&quot;&gt;&quot;Doctrine\ORM\Mapping\ClassMetadataInfo&quot;&lt;/span&gt;:&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt;]=&amp;gt;
  NULL
}
object(Doctrine\ORM\Mapping\ClassMetadata)#472 (36) {
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
  string(18) &lt;span class=&quot;code-quote&quot;&gt;&quot;IngredientCategory&quot;&lt;/span&gt;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namespace&quot;&lt;/span&gt;]=&amp;gt;
  string(0) &quot;&quot;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;rootEntityName&quot;&lt;/span&gt;]=&amp;gt;
  string(18) &lt;span class=&quot;code-quote&quot;&gt;&quot;IngredientCategory&quot;&lt;/span&gt;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;customGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;customRepositoryClassName&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isMappedSuperclass&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;parentClasses&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;subClasses&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namedQueries&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namedNativeQueries&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;sqlResultSetMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;identifier&quot;&lt;/span&gt;]=&amp;gt;
  array(1) {
    [0]=&amp;gt;
    string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;inheritanceType&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;generatorType&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(3) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;]=&amp;gt;
    array(6) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(7) &lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;unsigned&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    array(6) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;length&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(255)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fixed&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;]=&amp;gt;
    array(4) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;text&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
    }
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldNames&quot;&lt;/span&gt;]=&amp;gt;
  array(3) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;]=&amp;gt;
    string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;]=&amp;gt;
    string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnNames&quot;&lt;/span&gt;]=&amp;gt;
  array(3) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;]=&amp;gt;
    string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;]=&amp;gt;
    string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorValue&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorMap&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorColumn&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;table&quot;&lt;/span&gt;]=&amp;gt;
  array(1) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    string(19) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient_category&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;lifecycleCallbacks&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;associationMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(2) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient&quot;&lt;/span&gt;]=&amp;gt;
    array(19) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(10) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;targetEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(10) &lt;span class=&quot;code-quote&quot;&gt;&quot;Ingredient&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;inversedBy&quot;&lt;/span&gt;]=&amp;gt;
      string(18) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredientCategory&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinTable&quot;&lt;/span&gt;]=&amp;gt;
      array(3) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
        string(30) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient_category_ingredient&quot;&lt;/span&gt;
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinColumns&quot;&lt;/span&gt;]=&amp;gt;
        array(1) {
          [0]=&amp;gt;
          array(2) {
            [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
            string(22) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient_category_id&quot;&lt;/span&gt;
            [&lt;span class=&quot;code-quote&quot;&gt;&quot;referencedColumnName&quot;&lt;/span&gt;]=&amp;gt;
            string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
          }
        }
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;inverseJoinColumns&quot;&lt;/span&gt;]=&amp;gt;
        array(1) {
          [0]=&amp;gt;
          array(2) {
            [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
            string(13) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient_id&quot;&lt;/span&gt;
            [&lt;span class=&quot;code-quote&quot;&gt;&quot;referencedColumnName&quot;&lt;/span&gt;]=&amp;gt;
            string(13) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient_id&quot;&lt;/span&gt;
          }
        }
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(8)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;mappedBy&quot;&lt;/span&gt;]=&amp;gt;
      NULL
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isOwningSide&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;sourceEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(18) &lt;span class=&quot;code-quote&quot;&gt;&quot;IngredientCategory&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fetch&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(2)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;cascade&quot;&lt;/span&gt;]=&amp;gt;
      array(0) {
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRemove&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadePersist&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRefresh&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeMerge&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeDetach&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinTableColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(2) {
        [0]=&amp;gt;
        string(22) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient_category_id&quot;&lt;/span&gt;
        [1]=&amp;gt;
        string(13) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient_id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;relationToSourceKeyColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient_category_id&quot;&lt;/span&gt;]=&amp;gt;
        string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;relationToTargetKeyColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient_id&quot;&lt;/span&gt;]=&amp;gt;
        string(13) &lt;span class=&quot;code-quote&quot;&gt;&quot;ingredient_id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;orphanRemoval&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;parent&quot;&lt;/span&gt;]=&amp;gt;
    array(19) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;parent&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;targetEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(18) &lt;span class=&quot;code-quote&quot;&gt;&quot;IngredientCategory&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [0]=&amp;gt;
        array(2) {
          [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
          string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;parent_id&quot;&lt;/span&gt;
          [&lt;span class=&quot;code-quote&quot;&gt;&quot;referencedColumnName&quot;&lt;/span&gt;]=&amp;gt;
          string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
        }
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(2)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;mappedBy&quot;&lt;/span&gt;]=&amp;gt;
      NULL
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;inversedBy&quot;&lt;/span&gt;]=&amp;gt;
      NULL
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isOwningSide&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;sourceEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(18) &lt;span class=&quot;code-quote&quot;&gt;&quot;IngredientCategory&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fetch&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(2)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;cascade&quot;&lt;/span&gt;]=&amp;gt;
      array(0) {
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRemove&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadePersist&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRefresh&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeMerge&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeDetach&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;sourceToTargetKeyColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;parent_id&quot;&lt;/span&gt;]=&amp;gt;
        string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinColumnFieldNames&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;parent_id&quot;&lt;/span&gt;]=&amp;gt;
        string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;parent_id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;targetToSourceKeyColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;]=&amp;gt;
        string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;parent_id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;orphanRemoval&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isIdentifierComposite&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;containsForeignIdentifier&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;idGenerator&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;sequenceGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;tableGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;changeTrackingPolicy&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isVersioned&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;versionField&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;reflClass&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isReadOnly&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namingStrategy&quot;&lt;/span&gt;:&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt;]=&amp;gt;
  object(Doctrine\ORM\Mapping\DefaultNamingStrategy)#258 (0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;reflFields&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;_prototype&quot;&lt;/span&gt;:&lt;span class=&quot;code-quote&quot;&gt;&quot;Doctrine\ORM\Mapping\ClassMetadataInfo&quot;&lt;/span&gt;:&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt;]=&amp;gt;
  NULL
}
object(Doctrine\ORM\Mapping\ClassMetadata)#474 (36) {
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
  string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;Recipe&quot;&lt;/span&gt;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namespace&quot;&lt;/span&gt;]=&amp;gt;
  string(0) &quot;&quot;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;rootEntityName&quot;&lt;/span&gt;]=&amp;gt;
  string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;Recipe&quot;&lt;/span&gt;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;customGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;customRepositoryClassName&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isMappedSuperclass&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;parentClasses&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;subClasses&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namedQueries&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namedNativeQueries&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;sqlResultSetMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;identifier&quot;&lt;/span&gt;]=&amp;gt;
  array(1) {
    [0]=&amp;gt;
    string(8) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipeId&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;inheritanceType&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;generatorType&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(3) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;recipeId&quot;&lt;/span&gt;]=&amp;gt;
    array(6) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(8) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipeId&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(7) &lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;unsigned&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    array(6) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;length&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(255)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fixed&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;]=&amp;gt;
    array(4) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;text&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
    }
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldNames&quot;&lt;/span&gt;]=&amp;gt;
  array(3) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;]=&amp;gt;
    string(8) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipeId&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;]=&amp;gt;
    string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnNames&quot;&lt;/span&gt;]=&amp;gt;
  array(3) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;recipeId&quot;&lt;/span&gt;]=&amp;gt;
    string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;]=&amp;gt;
    string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorValue&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorMap&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorColumn&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;table&quot;&lt;/span&gt;]=&amp;gt;
  array(1) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;lifecycleCallbacks&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;associationMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(2) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;recipeCategory&quot;&lt;/span&gt;]=&amp;gt;
    array(15) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(14) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipeCategory&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;targetEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(14) &lt;span class=&quot;code-quote&quot;&gt;&quot;RecipeCategory&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;mappedBy&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(8)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;inversedBy&quot;&lt;/span&gt;]=&amp;gt;
      NULL
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isOwningSide&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;sourceEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;Recipe&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fetch&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(2)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;cascade&quot;&lt;/span&gt;]=&amp;gt;
      array(0) {
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRemove&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadePersist&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRefresh&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeMerge&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeDetach&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;orphanRemoval&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;users&quot;&lt;/span&gt;]=&amp;gt;
    array(19) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(5) &lt;span class=&quot;code-quote&quot;&gt;&quot;users&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;targetEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(5) &lt;span class=&quot;code-quote&quot;&gt;&quot;Users&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;inversedBy&quot;&lt;/span&gt;]=&amp;gt;
      string(12) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipeRecipe&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinTable&quot;&lt;/span&gt;]=&amp;gt;
      array(3) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
        string(13) &lt;span class=&quot;code-quote&quot;&gt;&quot;users_recipes&quot;&lt;/span&gt;
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinColumns&quot;&lt;/span&gt;]=&amp;gt;
        array(1) {
          [0]=&amp;gt;
          array(2) {
            [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
            string(16) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_recipe_id&quot;&lt;/span&gt;
            [&lt;span class=&quot;code-quote&quot;&gt;&quot;referencedColumnName&quot;&lt;/span&gt;]=&amp;gt;
            string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;
          }
        }
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;inverseJoinColumns&quot;&lt;/span&gt;]=&amp;gt;
        array(1) {
          [0]=&amp;gt;
          array(2) {
            [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
            string(8) &lt;span class=&quot;code-quote&quot;&gt;&quot;users_id&quot;&lt;/span&gt;
            [&lt;span class=&quot;code-quote&quot;&gt;&quot;referencedColumnName&quot;&lt;/span&gt;]=&amp;gt;
            string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
          }
        }
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(8)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;mappedBy&quot;&lt;/span&gt;]=&amp;gt;
      NULL
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isOwningSide&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;sourceEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;Recipe&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fetch&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(2)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;cascade&quot;&lt;/span&gt;]=&amp;gt;
      array(0) {
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRemove&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadePersist&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRefresh&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeMerge&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeDetach&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinTableColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(2) {
        [0]=&amp;gt;
        string(16) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_recipe_id&quot;&lt;/span&gt;
        [1]=&amp;gt;
        string(8) &lt;span class=&quot;code-quote&quot;&gt;&quot;users_id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;relationToSourceKeyColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_recipe_id&quot;&lt;/span&gt;]=&amp;gt;
        string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;relationToTargetKeyColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;users_id&quot;&lt;/span&gt;]=&amp;gt;
        string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;orphanRemoval&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isIdentifierComposite&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;containsForeignIdentifier&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;idGenerator&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;sequenceGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;tableGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;changeTrackingPolicy&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isVersioned&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;versionField&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;reflClass&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isReadOnly&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namingStrategy&quot;&lt;/span&gt;:&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt;]=&amp;gt;
  object(Doctrine\ORM\Mapping\DefaultNamingStrategy)#258 (0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;reflFields&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;_prototype&quot;&lt;/span&gt;:&lt;span class=&quot;code-quote&quot;&gt;&quot;Doctrine\ORM\Mapping\ClassMetadataInfo&quot;&lt;/span&gt;:&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt;]=&amp;gt;
  NULL
}
object(Doctrine\ORM\Mapping\ClassMetadata)#476 (36) {
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
  string(14) &lt;span class=&quot;code-quote&quot;&gt;&quot;RecipeCategory&quot;&lt;/span&gt;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namespace&quot;&lt;/span&gt;]=&amp;gt;
  string(0) &quot;&quot;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;rootEntityName&quot;&lt;/span&gt;]=&amp;gt;
  string(14) &lt;span class=&quot;code-quote&quot;&gt;&quot;RecipeCategory&quot;&lt;/span&gt;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;customGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;customRepositoryClassName&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isMappedSuperclass&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;parentClasses&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;subClasses&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namedQueries&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namedNativeQueries&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;sqlResultSetMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;identifier&quot;&lt;/span&gt;]=&amp;gt;
  array(1) {
    [0]=&amp;gt;
    string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;inheritanceType&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;generatorType&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(3) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;]=&amp;gt;
    array(6) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(7) &lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;unsigned&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    array(6) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;length&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(45)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fixed&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;]=&amp;gt;
    array(6) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;length&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(45)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fixed&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
    }
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldNames&quot;&lt;/span&gt;]=&amp;gt;
  array(3) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;]=&amp;gt;
    string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;]=&amp;gt;
    string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnNames&quot;&lt;/span&gt;]=&amp;gt;
  array(3) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;]=&amp;gt;
    string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;]=&amp;gt;
    string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorValue&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorMap&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorColumn&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;table&quot;&lt;/span&gt;]=&amp;gt;
  array(1) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    string(15) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_category&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;lifecycleCallbacks&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;associationMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(2) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;recipe&quot;&lt;/span&gt;]=&amp;gt;
    array(19) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;targetEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;Recipe&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;inversedBy&quot;&lt;/span&gt;]=&amp;gt;
      string(14) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipeCategory&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinTable&quot;&lt;/span&gt;]=&amp;gt;
      array(3) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
        string(22) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_category_recipe&quot;&lt;/span&gt;
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinColumns&quot;&lt;/span&gt;]=&amp;gt;
        array(1) {
          [0]=&amp;gt;
          array(2) {
            [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
            string(18) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_category_id&quot;&lt;/span&gt;
            [&lt;span class=&quot;code-quote&quot;&gt;&quot;referencedColumnName&quot;&lt;/span&gt;]=&amp;gt;
            string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
          }
        }
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;inverseJoinColumns&quot;&lt;/span&gt;]=&amp;gt;
        array(1) {
          [0]=&amp;gt;
          array(2) {
            [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
            string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;
            [&lt;span class=&quot;code-quote&quot;&gt;&quot;referencedColumnName&quot;&lt;/span&gt;]=&amp;gt;
            string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;
          }
        }
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(8)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;mappedBy&quot;&lt;/span&gt;]=&amp;gt;
      NULL
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isOwningSide&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;sourceEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(14) &lt;span class=&quot;code-quote&quot;&gt;&quot;RecipeCategory&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fetch&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(2)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;cascade&quot;&lt;/span&gt;]=&amp;gt;
      array(0) {
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRemove&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadePersist&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRefresh&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeMerge&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeDetach&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinTableColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(2) {
        [0]=&amp;gt;
        string(18) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_category_id&quot;&lt;/span&gt;
        [1]=&amp;gt;
        string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;relationToSourceKeyColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_category_id&quot;&lt;/span&gt;]=&amp;gt;
        string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;relationToTargetKeyColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;]=&amp;gt;
        string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;orphanRemoval&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;parent&quot;&lt;/span&gt;]=&amp;gt;
    array(19) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;parent&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;targetEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(14) &lt;span class=&quot;code-quote&quot;&gt;&quot;RecipeCategory&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [0]=&amp;gt;
        array(2) {
          [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
          string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;parent_id&quot;&lt;/span&gt;
          [&lt;span class=&quot;code-quote&quot;&gt;&quot;referencedColumnName&quot;&lt;/span&gt;]=&amp;gt;
          string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
        }
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(2)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;mappedBy&quot;&lt;/span&gt;]=&amp;gt;
      NULL
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;inversedBy&quot;&lt;/span&gt;]=&amp;gt;
      NULL
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isOwningSide&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;sourceEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(14) &lt;span class=&quot;code-quote&quot;&gt;&quot;RecipeCategory&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fetch&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(2)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;cascade&quot;&lt;/span&gt;]=&amp;gt;
      array(0) {
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRemove&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadePersist&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRefresh&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeMerge&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeDetach&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;sourceToTargetKeyColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;parent_id&quot;&lt;/span&gt;]=&amp;gt;
        string(2) &lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinColumnFieldNames&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;parent_id&quot;&lt;/span&gt;]=&amp;gt;
        string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;parent_id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;targetToSourceKeyColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;]=&amp;gt;
        string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;parent_id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;orphanRemoval&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isIdentifierComposite&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;containsForeignIdentifier&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;idGenerator&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;sequenceGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;tableGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;changeTrackingPolicy&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isVersioned&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;versionField&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;reflClass&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isReadOnly&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namingStrategy&quot;&lt;/span&gt;:&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt;]=&amp;gt;
  object(Doctrine\ORM\Mapping\DefaultNamingStrategy)#258 (0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;reflFields&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;_prototype&quot;&lt;/span&gt;:&lt;span class=&quot;code-quote&quot;&gt;&quot;Doctrine\ORM\Mapping\ClassMetadataInfo&quot;&lt;/span&gt;:&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt;]=&amp;gt;
  NULL
}
object(Doctrine\ORM\Mapping\ClassMetadata)#478 (36) {
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
  string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;Step&quot;&lt;/span&gt;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namespace&quot;&lt;/span&gt;]=&amp;gt;
  string(0) &quot;&quot;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;rootEntityName&quot;&lt;/span&gt;]=&amp;gt;
  string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;Step&quot;&lt;/span&gt;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;customGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;customRepositoryClassName&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isMappedSuperclass&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;parentClasses&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;subClasses&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namedQueries&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namedNativeQueries&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;sqlResultSetMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;identifier&quot;&lt;/span&gt;]=&amp;gt;
  array(2) {
    [0]=&amp;gt;
    string(10) &lt;span class=&quot;code-quote&quot;&gt;&quot;stepNumber&quot;&lt;/span&gt;
    [1]=&amp;gt;
    string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;inheritanceType&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;generatorType&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(4) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;stepNumber&quot;&lt;/span&gt;]=&amp;gt;
    array(6) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(10) &lt;span class=&quot;code-quote&quot;&gt;&quot;stepNumber&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;step_number&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(7) &lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;unsigned&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;]=&amp;gt;
    array(4) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;text&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;timer&quot;&lt;/span&gt;]=&amp;gt;
    array(5) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(5) &lt;span class=&quot;code-quote&quot;&gt;&quot;timer&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(5) &lt;span class=&quot;code-quote&quot;&gt;&quot;timer&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(7) &lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;unsigned&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
    }
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;image&quot;&lt;/span&gt;]=&amp;gt;
    array(6) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(5) &lt;span class=&quot;code-quote&quot;&gt;&quot;image&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnName&quot;&lt;/span&gt;]=&amp;gt;
      string(5) &lt;span class=&quot;code-quote&quot;&gt;&quot;image&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;length&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(100)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fixed&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;nullable&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
    }
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldNames&quot;&lt;/span&gt;]=&amp;gt;
  array(4) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;step_number&quot;&lt;/span&gt;]=&amp;gt;
    string(10) &lt;span class=&quot;code-quote&quot;&gt;&quot;stepNumber&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;]=&amp;gt;
    string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;timer&quot;&lt;/span&gt;]=&amp;gt;
    string(5) &lt;span class=&quot;code-quote&quot;&gt;&quot;timer&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;image&quot;&lt;/span&gt;]=&amp;gt;
    string(5) &lt;span class=&quot;code-quote&quot;&gt;&quot;image&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;columnNames&quot;&lt;/span&gt;]=&amp;gt;
  array(4) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;stepNumber&quot;&lt;/span&gt;]=&amp;gt;
    string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;step_number&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;]=&amp;gt;
    string(11) &lt;span class=&quot;code-quote&quot;&gt;&quot;description&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;timer&quot;&lt;/span&gt;]=&amp;gt;
    string(5) &lt;span class=&quot;code-quote&quot;&gt;&quot;timer&quot;&lt;/span&gt;
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;image&quot;&lt;/span&gt;]=&amp;gt;
    string(5) &lt;span class=&quot;code-quote&quot;&gt;&quot;image&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorValue&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorMap&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;discriminatorColumn&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;table&quot;&lt;/span&gt;]=&amp;gt;
  array(1) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
    string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;step&quot;&lt;/span&gt;
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;lifecycleCallbacks&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;associationMappings&quot;&lt;/span&gt;]=&amp;gt;
  array(1) {
    [&lt;span class=&quot;code-quote&quot;&gt;&quot;recipe&quot;&lt;/span&gt;]=&amp;gt;
    array(20) {
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fieldName&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;targetEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(6) &lt;span class=&quot;code-quote&quot;&gt;&quot;Recipe&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [0]=&amp;gt;
        array(2) {
          [&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;]=&amp;gt;
          string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;
          [&lt;span class=&quot;code-quote&quot;&gt;&quot;referencedColumnName&quot;&lt;/span&gt;]=&amp;gt;
          string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;
        }
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;mappedBy&quot;&lt;/span&gt;]=&amp;gt;
      NULL
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;inversedBy&quot;&lt;/span&gt;]=&amp;gt;
      NULL
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isOwningSide&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;sourceEntity&quot;&lt;/span&gt;]=&amp;gt;
      string(4) &lt;span class=&quot;code-quote&quot;&gt;&quot;Step&quot;&lt;/span&gt;
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;fetch&quot;&lt;/span&gt;]=&amp;gt;
      &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(2)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;cascade&quot;&lt;/span&gt;]=&amp;gt;
      array(0) {
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRemove&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadePersist&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeRefresh&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeMerge&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;isCascadeDetach&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;sourceToTargetKeyColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;]=&amp;gt;
        string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;joinColumnFieldNames&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;]=&amp;gt;
        string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;targetToSourceKeyColumns&quot;&lt;/span&gt;]=&amp;gt;
      array(1) {
        [&lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;]=&amp;gt;
        string(9) &lt;span class=&quot;code-quote&quot;&gt;&quot;recipe_id&quot;&lt;/span&gt;
      }
      [&lt;span class=&quot;code-quote&quot;&gt;&quot;orphanRemoval&quot;&lt;/span&gt;]=&amp;gt;
      bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    }
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isIdentifierComposite&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;containsForeignIdentifier&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;idGenerator&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;sequenceGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;tableGeneratorDefinition&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;changeTrackingPolicy&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isVersioned&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;versionField&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;reflClass&quot;&lt;/span&gt;]=&amp;gt;
  NULL
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;isReadOnly&quot;&lt;/span&gt;]=&amp;gt;
  bool(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;namingStrategy&quot;&lt;/span&gt;:&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt;]=&amp;gt;
  object(Doctrine\ORM\Mapping\DefaultNamingStrategy)#258 (0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;reflFields&quot;&lt;/span&gt;]=&amp;gt;
  array(0) {
  }
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;_prototype&quot;&lt;/span&gt;:&lt;span class=&quot;code-quote&quot;&gt;&quot;Doctrine\ORM\Mapping\ClassMetadataInfo&quot;&lt;/span&gt;:&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt;]=&amp;gt;
  NULL
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="20233" author="beberlei" created="Thu, 9 May 2013 10:11:52 +0000"  >&lt;p&gt;Fixed and merged back to 2.3&lt;/p&gt;</comment>
                    <comment id="20459" author="succinct" created="Wed, 29 May 2013 15:46:20 +0000"  >&lt;p&gt;I tested this again using 2.3.4 (the version which contains this fix) and it is still occurring. Attempting to import mapping for a table with 2 foreign keys in the primary key results in the error &quot;Database does not have any mapping information.&quot; Adding a third column on the primary key &quot;fixes&quot; the issue.&lt;/p&gt;

&lt;p&gt;Currently our developers are being asked to add a fake third part to the key to work around the issue, then delete that key once they get into the entity class. This is a bit tedious and I&apos;d love to see a fix!&lt;/p&gt;</comment>
                    <comment id="20460" author="succinct" created="Wed, 29 May 2013 15:46:42 +0000"  >&lt;p&gt;Issue still present in 2.3.4 and 2.4.0-RC1&lt;/p&gt;</comment>
                    <comment id="20535" author="guillermoespinoza" created="Tue, 11 Jun 2013 11:39:19 +0000"  >&lt;p&gt;The database engine I use is &lt;b&gt;PostgreSQL&lt;/b&gt;. I&apos;m having problems when mapping entities with composite primary keys in other tables. &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 &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt;.establecimiento
    (
      id_establecimiento integer NOT NULL,
      establecimiento character varying(100) NOT NULL,
      CONSTRAINT pk_establecimiento PRIMARY KEY (id_establecimiento )
    )
    WITH (
      OIDS=FALSE
    );
    CREATE TABLE &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt;.establecimiento_sec
    (
      id_establecimiento_sec integer NOT NULL,
      id_establecimiento integer NOT NULL,
      det_seccion character varying(40) NOT NULL,
      plano character varying(100),
      sector_ingreso character varying(254),
      sponsor_imagen_sec character varying(96000),
      CONSTRAINT pk_establecimientos_sec PRIMARY KEY (id_establecimiento_sec , id_establecimiento ),
      CONSTRAINT fk_establec_reference_establec FOREIGN KEY (id_establecimiento)
          REFERENCES &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt;.establecimiento (id_establecimiento) MATCH SIMPLE
          ON UPDATE RESTRICT ON DELETE RESTRICT
    )
    WITH (
      OIDS=TRUE
    );
    CREATE TABLE &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt;.establecimiento_sec_plano
    (
      id_establecimiento_sec_plano integer NOT NULL,
      id_establecimiento_sec integer NOT NULL,
      id_establecimiento integer NOT NULL,
      det_plano character varying(512),
      cantidad integer NOT NULL,
      precio &lt;span class=&quot;code-object&quot;&gt;double&lt;/span&gt; precision,
      insert_charge &lt;span class=&quot;code-object&quot;&gt;double&lt;/span&gt; precision DEFAULT 0,
      descr character varying(254),
      CONSTRAINT pk_establecimiento_sec_plano PRIMARY KEY (id_establecimiento_sec_plano , id_establecimiento_sec , id_establecimiento ),
      CONSTRAINT fk_establecimiento_sec FOREIGN KEY (id_establecimiento, id_establecimiento_sec)
          REFERENCES &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt;.establecimiento_sec (id_establecimiento, id_establecimiento_sec) MATCH SIMPLE
          ON UPDATE NO ACTION ON DELETE CASCADE
    )
    WITH (
      OIDS=FALSE
    );&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;Defining the entity establecimientoSecPlano, $establecimientoSec variable containing the keys $establecimiento and $id_establecimiento_sec&lt;/p&gt;

&lt;p&gt;//Entity/EstablecimientosSecPlano&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;Ticketway\PruebaBundle\Entity\EstablecimientosSec&quot;&lt;/span&gt;)
     * @ORM\JoinColumns(
     *      @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;id_establecimiento_sec&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id_establecimiento_sec&quot;&lt;/span&gt;),
     *      @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;id_establecimiento&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id_establecimiento&quot;&lt;/span&gt;)) 
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $establecimientoSec;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;//Entity/EstablecimientosSec&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;Ticketway\PruebaBundle\Entity\Establecimientos&quot;&lt;/span&gt;)
     * @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;id_establecimiento&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id_establecimiento&quot;&lt;/span&gt;) 
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $establecimiento;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;When executing the command doctrine: mapping: import I get the following error&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\ORM\Mapping\MappingException&amp;#93;&lt;/span&gt;&lt;/b&gt;&lt;br/&gt;
&lt;b&gt;It is not possible to map entity &apos;EstablecimientoSec&apos; with a composite primary key as part of the&lt;/b&gt; &lt;br/&gt;
&lt;b&gt;primary key of another entity &apos;EstablecimientoSecPlano#idEstablecimiento&apos;.&lt;/b&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2386] [GH-641] Added yml example in ordered-associations.rst</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2386</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 bksunday:&lt;/p&gt;

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

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

&lt;p&gt;Added missing yaml example of ordered-associations, and put php, xml and yml codes into a configuration-block instead of separate code-blocks&lt;/p&gt;</description>
                <environment></environment>
            <key id="14754">DDC-2386</key>
            <summary>[GH-641] Added yml example in ordered-associations.rst</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 3 Apr 2013 16:33:26 +0000</created>
                <updated>Wed, 3 Apr 2013 16:37:26 +0000</updated>
                    <resolved>Wed, 3 Apr 2013 16:37:26 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19933" author="beberlei" created="Wed, 3 Apr 2013 16:36:26 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-641&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/641&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/641&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19934" author="ocramius" created="Wed, 3 Apr 2013 16:36:44 +0000"  >&lt;p&gt;merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2385] [GH-640] [Paginator]Add hidden field ordering for postgresql</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2385</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 denkiryokuhatsuden:&lt;/p&gt;

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

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

&lt;p&gt;In postgresql environment, when some hidden fields are used in orderBy clause,&lt;br/&gt;
they&apos;re not property added because $rsm-&amp;gt;scalarMappings don&apos;t have information about them.&lt;/p&gt;

&lt;p&gt;This change fixes above.&lt;/p&gt;

&lt;p&gt;I&apos;m afraid I&apos;m not sure which branch this will be merged, but anyway here&apos;s a patch.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14750">DDC-2385</key>
            <summary>[GH-640] [Paginator]Add hidden field ordering for postgresql</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="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>Tue, 2 Apr 2013 10:01:27 +0000</created>
                <updated>Tue, 2 Apr 2013 10:01:27 +0000</updated>
                                                                            <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-2383] Foreign relations on primary keys don&apos;t work on more than two entities (like Foo&lt;&gt;Bar&lt;&gt;Baz)</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2383</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I&apos;m trying to accomplish something like this:&lt;br/&gt;
&lt;a href=&quot;http://docs.doctrine-project.org/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/en/latest/tutorials/composite-primary-keys.html#use-case-2-simple-derived-identity&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For two entities (Foo&amp;lt;&amp;gt;Bar) it works as expected but adding another entity related to Bar (so it&apos;s Foo&amp;lt;&amp;gt;Bar&amp;lt;&amp;gt;Baz) ends up with this 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;
Fatal error: Uncaught exception &apos;Doctrine\ORM\Mapping\MappingException&apos; with message &apos;The column id must be mapped to a field in class Entity\Bar since it is referenced by a join column of another class.&apos; in C:\...\vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\MappingException.php:203
Stack trace:
#0 C:\...\vendor\doctrine\orm\lib\Doctrine\ORM\Persisters\BasicEntityPersister.php(734): Doctrine\ORM\Mapping\MappingException::joinColumnMustPointToMappedField(&apos;Entity\Bar&apos;, &apos;id&apos;)
#1 C:\...\vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php(2509): Doctrine\ORM\Persisters\BasicEntityPersister-&amp;gt;loadOneToOneEntity(Array, &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Entity\Bar))
#2 C:\...\vendor\doctrine\orm\lib\Doctrine\ORM\Internal\Hydration\ObjectHydrator.php(245): Doctrine\ORM\UnitOfWork-&amp;gt;createEntity(&apos;Entity\Bar&apos;, Array, Array)
#3 C:\...\vendor\doctrine\orm\lib\Doctrine\ORM\Internal\Hydration\ObjectHydrator.php(424): Doctrine\ORM\Internal\Hydration\Ob in C:\...\vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\MappingException.php on line 203
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This error appears when there are some records in the database and I want to query for example all Foos.&lt;/p&gt;

&lt;p&gt;My entites look like this:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-comment&quot;&gt;//Entity/Foo.php
&lt;/span&gt;
/** @Entity @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;foos&quot;&lt;/span&gt;) */
class Foo
{
    /** @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;protected&lt;/span&gt; $id;

    /** @OneToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Bar&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;foo&quot;&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $bar;

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getId()
    {
        &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;id;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getBar()
    {
        &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;bar;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setBar($bar)
    {
        $bar-&amp;gt;setFoo($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;bar = $bar;
    }
}

&lt;span class=&quot;code-comment&quot;&gt;//Entity/Bar.php
&lt;/span&gt;
/** @Entity @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;bars&quot;&lt;/span&gt;) */
class Bar
{
    /** @Id @OneToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Foo&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;bar&quot;&lt;/span&gt;)
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $foo;

    /** @OneToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Baz&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;bar&quot;&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $baz;

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct($foo)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;foo = $foo;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getId()
    {
        &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;getFoo()-&amp;gt;getId();
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getFoo()
    {
        &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;foo;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setFoo($foo)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;foo = $foo;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getBaz()
    {
        &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;baz;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setBaz($baz)
    {
        $bar-&amp;gt;setBar($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;baz = $baz;
    }
}

&lt;span class=&quot;code-comment&quot;&gt;//Entity/Baz.php
&lt;/span&gt;
/** @Entity @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;bazes&quot;&lt;/span&gt;) */
class Baz
{
    /** @Id @OneToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Bar&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;baz&quot;&lt;/span&gt;)
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $bar;

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct($bar)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;bar = $bar;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getId()
    {
        &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;getBar()-&amp;gt;getId();
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getBar()
    {
        &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;bar;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setBar($bar)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;bar = $bar;
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And fails on&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;
$fooRepository = $em-&amp;gt;getRepository(&apos;Entity\Foo&apos;);
$foos = $fooRepository-&amp;gt;findAll();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14748">DDC-2383</key>
            <summary>Foreign relations on primary keys don&apos;t work on more than two entities (like Foo&lt;&gt;Bar&lt;&gt;Baz)</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="7">Can&apos;t Fix</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="extreme">Jacek J&#281;drzejewski</reporter>
                        <labels>
                        <label>hydration</label>
                        <label>mapping</label>
                        <label>relations</label>
                    </labels>
                <created>Mon, 1 Apr 2013 20:01:54 +0000</created>
                <updated>Sun, 14 Apr 2013 10:05:59 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 10:05:59 +0000</resolved>
                            <version>2.3</version>
                <version>2.4</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19920" author="extreme" created="Mon, 1 Apr 2013 21:21:26 +0000"  >&lt;p&gt;Attaching a test case which results in two exceptions - while creating the schema and while fetching entities.&lt;/p&gt;</comment>
                    <comment id="19998" author="beberlei" created="Sun, 14 Apr 2013 10:05:59 +0000"  >&lt;p&gt;This is sadly a restriction of the foreign keys as primary key feature.&lt;/p&gt;

&lt;p&gt;Due to the architecture of shared nothing Metadata instances we cannot validate this at mapping compile time, only at runtime, thus leading to this error.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11520" name="DDC2383Test.php" size="2946" author="extreme" created="Mon, 1 Apr 2013 21:19:50 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2382] Multiple relations between two same entities breaks cascade operations</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2382</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;
/**
 * @Entity
 */

class User
{
/**
 * @Id
 * @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
 * @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;

/**
 * @OneToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Post&quot;&lt;/span&gt;, cascade={&lt;span class=&quot;code-quote&quot;&gt;&quot;remove&quot;&lt;/span&gt;}, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;author&quot;&lt;/span&gt;)
 */

 &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $posts;

/**
 * @OneToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Post&quot;&lt;/span&gt;)
 */

 &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $lastPost;

&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setLastPost( $post )
{
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lastPost = $post;
}

  &lt;span class=&quot;code-comment&quot;&gt;// ...skipped...
&lt;/span&gt;
}


/**
 * @Entity
 */

class Post
{
/**
 * @Id
 * @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
 * @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;

/**
 *
 * @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;posts&quot;&lt;/span&gt;)
 * @JoinColumn(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; $author;

&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setAuthor( $author )
{
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;author = $author;
}

&lt;span class=&quot;code-comment&quot;&gt;// ...skipped...
&lt;/span&gt;}

&lt;span class=&quot;code-comment&quot;&gt;// Let&apos;s create user and post
&lt;/span&gt;
$user = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; User();
$em-&amp;gt;persist($user);

$post = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Post();
$em-&amp;gt;persist($post);

$post-&amp;gt;setUser($user);
$user-&amp;gt;setLastPost($post);

$em-&amp;gt;flush();

&lt;span class=&quot;code-comment&quot;&gt;// and now remove user
&lt;/span&gt;
$user = $em-&amp;gt;find(&apos;User&apos;, 1);
$em-&amp;gt;remove($user);

$em-&amp;gt;flush(); 
&lt;span class=&quot;code-comment&quot;&gt;// &quot;The DELETE statement conflicted with the REFERENCE 
&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;// constraint...&quot;.
&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;// Doctrine removes record from &lt;span class=&quot;code-quote&quot;&gt;&quot;User&quot;&lt;/span&gt; table, ignoring associated records from &lt;span class=&quot;code-quote&quot;&gt;&quot;Post&quot;&lt;/span&gt; table. If i remove &lt;span class=&quot;code-quote&quot;&gt;&quot;lastPost&quot;&lt;/span&gt; relation 
&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;//from User entity everything goes OK - at first Doctrine removes assiciated posts, then removes user itself.&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14747">DDC-2382</key>
            <summary>Multiple relations between two same entities breaks cascade operations</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="drake_jc">Alex</reporter>
                        <labels>
                    </labels>
                <created>Mon, 1 Apr 2013 13:45:36 +0000</created>
                <updated>Sun, 14 Apr 2013 10:10:53 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 10:10:53 +0000</resolved>
                            <version>2.3.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19999" author="beberlei" created="Sun, 14 Apr 2013 10:10:53 +0000"  >&lt;p&gt;Not an issue of Doctrine, you have to handle this case explicitly, because Doctrine has no way of doing so.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2381] Pagination query can be simplified when simple joins are applied</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2381</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Hi.&lt;br/&gt;
In mysql db table i have &amp;gt; 200,000 items.&lt;br/&gt;
I use native doctrine pagination for paging the items list.&lt;br/&gt;
But generated query that gets ids for items list in paging works more then 150 sec on my workstation&lt;/p&gt;

&lt;p&gt;SELECT DISTINCT id0 FROM (SELECT m0_.id AS id0, m0_.title AS title1, m0_.text AS text2, m0_.price AS price3, m0_.originalPrice AS originalPrice4, m0_.condition_type AS condition_type5, m0_.image_1 AS image_16, m0_.image_2 AS image_27, m0_.image_3 AS image_38, m0_.image_4 AS image_49, m0_.image_5 AS image_510, m0_.video AS video11, m0_.contact_email AS contact_email12, m0_.contact_name AS contact_name13, m0_.contact_phone AS contact_phone14, m0_.contact_type AS contact_type15, m0_.published AS published16, m0_.type AS type17, m0_.status AS status18, m0_.highlight AS highlight19, m0_.urgent AS urgent20, m0_.topads AS topads21, m0_.period AS period22, m0_.hits AS hits23, m0_.ip AS ip24, m0_.created_at AS created_at25, m0_.updated_at AS updated_at26 FROM milla_message m0_ INNER JOIN milla_currency m1_ ON m0_.currency_id = m1_.id INNER JOIN milla_category m2_ ON m0_.category_id = m2_.id INNER JOIN milla_region m3_ ON m0_.region_id = m3_.id INNER JOIN milla_city m4_ ON m0_.city_id = m4_.id WHERE m0_.status = 1 ORDER BY m0_.published DESC) dctrn_result LIMIT 20 OFFSET 0&lt;/p&gt;

&lt;p&gt;source code&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php#L141&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php#L141&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;why SELECT DISTINCT %s FROM (%s) dctrn_result ???&lt;br/&gt;
why not SELECT DISTINCT m0_.id AS id0 FROM milla_message m0_ WHERE m0_.status = 1 ORDER BY m0_.published DESC LIMIT 20 OFFSET 0&lt;/p&gt;</description>
                <environment></environment>
            <key id="14746">DDC-2381</key>
            <summary>Pagination query can be simplified when simple joins are applied</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="sergic">Sergey Gerdel</reporter>
                        <labels>
                        <label>paginator</label>
                    </labels>
                <created>Sun, 31 Mar 2013 13:58:43 +0000</created>
                <updated>Mon, 8 Apr 2013 22:32:03 +0000</updated>
                                    <version>2.3</version>
                <version>2.4</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19908" author="ocramius" created="Sun, 31 Mar 2013 14:09:48 +0000"  >&lt;p&gt;Not a blocker&lt;/p&gt;</comment>
                    <comment id="19909" author="ocramius" created="Sun, 31 Mar 2013 14:14:11 +0000"  >&lt;p&gt;What&apos;s the result of `EXPLAIN` on a query without the subquery?&lt;/p&gt;</comment>
                    <comment id="19910" author="sergic" created="Sun, 31 Mar 2013 14:52:02 +0000"  >&lt;p&gt;explain without the subquery&lt;/p&gt;</comment>
                    <comment id="19911" author="ocramius" created="Sun, 31 Mar 2013 14:56:28 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=sergic&quot; class=&quot;user-hover&quot; rel=&quot;sergic&quot;&gt;Sergey Gerdel&lt;/a&gt; that&apos;s not the same query.&lt;/p&gt;</comment>
                    <comment id="19912" author="ocramius" created="Sun, 31 Mar 2013 15:09:52 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=sergic&quot; class=&quot;user-hover&quot; rel=&quot;sergic&quot;&gt;Sergey Gerdel&lt;/a&gt; this is still using&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;Using index; Using temporary; Using filesort
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Check your indexes&lt;/p&gt;</comment>
                    <comment id="19913" author="sergic" created="Sun, 31 Mar 2013 20:42:19 +0000"  >&lt;p&gt;Not in the index problem&lt;/p&gt;

&lt;p&gt;SELECT DISTINCT id0 FROM (SELECT m0_.id AS id0, m0_.title AS title1, m0_.text AS text2, m0_.price AS price3, m0_.originalPrice AS originalPrice4, m0_.condition_type AS condition_type5, m0_.image_1 AS image_16, m0_.image_2 AS image_27, m0_.image_3 AS image_38, m0_.image_4 AS image_49, m0_.image_5 AS image_510, m0_.video AS video11, m0_.contact_email AS contact_email12, m0_.contact_name AS contact_name13, m0_.contact_phone AS contact_phone14, m0_.contact_type AS contact_type15, m0_.published AS published16, m0_.type AS type17, m0_.status AS status18, m0_.highlight AS highlight19, m0_.urgent AS urgent20, m0_.topads AS topads21, m0_.period AS period22, m0_.hits AS hits23, m0_.ip AS ip24, m0_.created_at AS created_at25, m0_.updated_at AS updated_at26 FROM milla_message m0_ WHERE m0_.status = 1 ORDER BY m0_.published DESC) dctrn_result LIMIT 20 OFFSET 0&lt;/p&gt;

&lt;p&gt;Time: 104.614s explain 3&lt;/p&gt;

&lt;p&gt;SELECT DISTINCT m0_.id AS id0 FROM milla_message m0_ WHERE m0_.status = 1 ORDER BY m0_.published DESC LIMIT 20 OFFSET 0; &lt;/p&gt;

&lt;p&gt;Time: 0.001s explain 4&lt;/p&gt;</comment>
                    <comment id="19914" author="ocramius" created="Mon, 1 Apr 2013 06:17:54 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=sergic&quot; class=&quot;user-hover&quot; rel=&quot;sergic&quot;&gt;Sergey Gerdel&lt;/a&gt; the ORM cannot simplify a complex query that way. There may be a conditional on one of the joined results, or generally usage of one of the joined results.&lt;/p&gt;

&lt;p&gt;Things that &lt;b&gt;could&lt;/b&gt; be optimized here are:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Removal of the `ORDER BY` clause when grouping (check ORM master, I think somebody already did that)&lt;/li&gt;
	&lt;li&gt;Trying to simplify the query by doing some serious hacking on the AST.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The problem I see here is that the chance to spawn random bugs because of the optimization is very high, and you&apos;d have to rewrite `walkSelectStatement`&lt;/p&gt;</comment>
                    <comment id="19915" author="ocramius" created="Mon, 1 Apr 2013 06:19:15 +0000"  >&lt;p&gt;Marking as improvement&lt;/p&gt;</comment>
                    <comment id="19950" author="sergic" created="Sun, 7 Apr 2013 10:52:01 +0000"  >&lt;p&gt;Minor? &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/biggrin.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 have 100 sec for this query.&lt;br/&gt;
200k items are selected for temporary table. wtf?&lt;/p&gt;

&lt;p&gt;OK. Programmers may be mistaken in parser&lt;br/&gt;
expect ORDER BY m0_.published DESC LIMIT 20 OFFSET 0) dctrn_result &lt;br/&gt;
Time: 0.001s&lt;/p&gt;

&lt;p&gt;reality ORDER BY m0_.published DESC) dctrn_result LIMIT 20 OFFSET 0&lt;/p&gt;</comment>
                    <comment id="19951" author="ocramius" created="Sun, 7 Apr 2013 11:22:41 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=sergic&quot; class=&quot;user-hover&quot; rel=&quot;sergic&quot;&gt;Sergey Gerdel&lt;/a&gt; this problem does not introduce security issues and can be worked around by you while using your own pagination logic. It does not stop you from doing anything, that&apos;s why it&apos;s minor. &lt;/p&gt;</comment>
                    <comment id="19965" author="sergic" created="Mon, 8 Apr 2013 22:32:03 +0000"  >&lt;p&gt;ok)&lt;br/&gt;
i have already created my own paginator.&lt;br/&gt;
at last&lt;br/&gt;
please see how to fix this problem&lt;br/&gt;
&lt;a href=&quot;https://github.com/Sergic/doctrine2/commit/2733c815387273d3bd199a68acb717e0cbc8ccfe&quot; class=&quot;external-link&quot;&gt;https://github.com/Sergic/doctrine2/commit/2733c815387273d3bd199a68acb717e0cbc8ccfe&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11514" name="EXPLAIN.htmL" size="6667" author="sergic" created="Sun, 31 Mar 2013 13:58:43 +0000" />
                    <attachment id="11515" name="EXPLAIN1.html" size="3006" author="sergic" created="Sun, 31 Mar 2013 14:51:57 +0000" />
                    <attachment id="11517" name="EXPLAIN2.html" size="4690" author="sergic" created="Sun, 31 Mar 2013 15:08:08 +0000" />
                    <attachment id="11518" name="EXPLAIN3.htm" size="4083" author="sergic" created="Sun, 31 Mar 2013 20:42:11 +0000" />
                    <attachment id="11519" name="EXPLAIN4.htm" size="3006" author="sergic" created="Sun, 31 Mar 2013 20:42:16 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

&lt;p&gt;Hello again, I&apos;m committing the mini fixes in docblock documentation - swapping &apos;an SQL&apos; for &apos;a SQL&apos;.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</description>
                <environment></environment>
            <key id="14744">DDC-2380</key>
            <summary>[GH-638] Fixed typos in docblocks.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 30 Mar 2013 05:39:56 +0000</created>
                <updated>Mon, 1 Apr 2013 21:40:46 +0000</updated>
                    <resolved>Mon, 1 Apr 2013 21:40:46 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19923" author="beberlei" created="Mon, 1 Apr 2013 21:40:35 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-638&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/638&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/638&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2379] [GH-637] Update association-mapping.rst</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2379</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 choomz:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14742">DDC-2379</key>
            <summary>[GH-637] Update association-mapping.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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 29 Mar 2013 15:41:00 +0000</created>
                <updated>Sat, 30 Mar 2013 13:56:28 +0000</updated>
                    <resolved>Sat, 30 Mar 2013 13:56:28 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19903" author="beberlei" created="Sat, 30 Mar 2013 13:48:18 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-637&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/637&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/637&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2378] Efficient count using Selectable</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2378</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I&apos;m currently using intensively the Criteria and Selectable interfaces to provide a generic REST library.&lt;/p&gt;

&lt;p&gt;However, I&apos;ve found a problem when I want to paginate data:&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;count&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; count($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;selectable-&amp;gt;matching(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Criteria()));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The problem is that EntityRepository returns an ArrayCollection and, hence, load the whole collection which is inefficient. It would be nice if it could return a PersistentCollection instead with lazy-load and perform an optimized count.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</description>
                <environment></environment>
            <key id="14738">DDC-2378</key>
            <summary>Efficient count using Selectable</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="3">Duplicate</resolution>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="bakura">Micha&#235;l Gallego</reporter>
                        <labels>
                        <label>criteria</label>
                        <label>selectable</label>
                    </labels>
                <created>Thu, 28 Mar 2013 18:56:33 +0000</created>
                <updated>Thu, 28 Mar 2013 23:56:42 +0000</updated>
                    <resolved>Thu, 28 Mar 2013 23:56:42 +0000</resolved>
                            <version>2.3.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19902" author="stof" created="Thu, 28 Mar 2013 20:12:19 +0000"  >&lt;p&gt;duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2217&quot; title=&quot;Return a lazy collection from PersistentCollection::match($criteria)&quot;&gt;DDC-2217&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

&lt;p&gt;Hello again everyone! I went ahead and fixed the rest of the instances in the documentation that used &apos;an SQL&apos;. I also fixed an instance of &apos;a alias&apos; to be &apos;an alias&apos;, which is proper since alias begins with a vowel. &lt;/p&gt;</description>
                <environment></environment>
            <key id="14735">DDC-2377</key>
            <summary>[GH-636] Fixed typos 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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Mar 2013 03:48:58 +0000</created>
                <updated>Thu, 28 Mar 2013 06:46:14 +0000</updated>
                    <resolved>Thu, 28 Mar 2013 06:46:14 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19900" author="beberlei" created="Thu, 28 Mar 2013 04:26:31 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-636&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/636&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/636&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2376] [GH-635] Function test for addManyToOne database column mapping</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2376</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 TomHAnderson:&lt;/p&gt;

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

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

&lt;p&gt;When the PHPDriver is used to create a ManyToOne relationship with a table which has a primary key other than id the primary key is not associated correctly.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14733">DDC-2376</key>
            <summary>[GH-635] Function test for addManyToOne database column 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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 27 Mar 2013 20:33:22 +0000</created>
                <updated>Sat, 30 Mar 2013 21:43:42 +0000</updated>
                    <resolved>Sat, 30 Mar 2013 21:43:39 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19904" author="beberlei" created="Sat, 30 Mar 2013 21:43:05 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-635&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/635&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/635&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2375] Join with multiples tables</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2375</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Dear Friends, I&apos;ve a question about Join with multiple tables.&lt;br/&gt;
I&apos;ve 3 tables: Country, State, City, and I need get country_name from City Entity.&lt;br/&gt;
Any suggestion?&lt;/p&gt;

&lt;p&gt;Table City:&lt;br/&gt;
city_id&lt;br/&gt;
state_id&lt;br/&gt;
city_name&lt;/p&gt;

&lt;p&gt;Table State&lt;br/&gt;
state_id&lt;br/&gt;
country_id&lt;br/&gt;
state_name&lt;/p&gt;

&lt;p&gt;Table Country&lt;br/&gt;
country_id&lt;br/&gt;
country_name&lt;/p&gt;


&lt;p&gt;This is my Entity City:&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 &lt;span class=&quot;code-object&quot;&gt;System&lt;/span&gt;\Entity;

use Doctrine\ORM\Mapping as ORM,
Doctrine\Common\Collections\ArrayCollection;

/**

    SysCity
    *
    @ORM\Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;sys_city&quot;&lt;/span&gt;)
    @ORM\Entity(repositoryClass=&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-object&quot;&gt;System&lt;/span&gt;\Entity\SysCityRepository&quot;&lt;/span&gt;)
    */
    class SysCity
    {
    /*
    Instantiate all methods gets and sets
    */

&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct($options = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
{ Configurator::configure($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;, $options); }

/**

    @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer
    *
    @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;id_city&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    @ORM\Id
    @ORM\GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;IDENTITY&quot;&lt;/span&gt;)
    */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $idCity;

/**

    @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string
    *
    @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;city&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=255, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
    */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $city;

/**

    @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; \SysState
    *
    @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-object&quot;&gt;System&lt;/span&gt;\Entity\SysState&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;state&quot;&lt;/span&gt;)
    @ORM\JoinColumns( { * @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;id_state&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id_state&quot;&lt;/span&gt;) * }

    )
    */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $idState;

/**

    @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; \SysCountry
    *
    @ORM\ManyToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-object&quot;&gt;System&lt;/span&gt;\Entity\SysCountry&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;country&quot;&lt;/span&gt;)
    @ORM\JoinTable(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;sys_state&quot;&lt;/span&gt;,
    joinColumns= {@ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;id_state&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id_state&quot;&lt;/span&gt;)}

    ,
    inverseJoinColumns= {@ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;id_country&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id_country&quot;&lt;/span&gt;)}
    )
    */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $idCountry;

&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getIdCity()
{ &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;idCity; }

&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setIdCity($idCity)
{ $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;idCity = $idCity; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;; }

&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getCity()
{ &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;city; }

&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setCity($city)
{ $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;city = $city; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;; }

&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getIdState()
{ &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;idState; }

&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setIdState($idState)
{ $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;idState = $idState; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;; }

&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getIdCountry()
{ &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;idCountry; }

&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setIdCountry($idCountry)
{ $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;idCountry = $idCountry; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;; }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Thanks a lot!&lt;/p&gt;</description>
                <environment></environment>
            <key id="14732">DDC-2375</key>
            <summary>Join with multiples tables</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="acrivelari">Adriano Crivelari</reporter>
                        <labels>
                    </labels>
                <created>Wed, 27 Mar 2013 14:25:49 +0000</created>
                <updated>Wed, 27 Mar 2013 14:39:30 +0000</updated>
                    <resolved>Wed, 27 Mar 2013 14:39:30 +0000</resolved>
                                                            <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19899" author="ocramius" created="Wed, 27 Mar 2013 14:39:30 +0000"  >&lt;p&gt;This is an issue tracker, not a support forum. Please ask your questions on the &lt;a href=&quot;http://groups.google.com/group/doctrine-user&quot; class=&quot;external-link&quot;&gt;http://groups.google.com/group/doctrine-user&lt;/a&gt; mailing list or on &lt;a href=&quot;http://stackoverflow.com/&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/&lt;/a&gt; or on IRC on &lt;a href=&quot;irc://irc.freenode.net#doctrine&quot; class=&quot;external-link&quot;&gt;irc://irc.freenode.net#doctrine&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

&lt;p&gt;This pull request takes a different approach than GH-265 to implement ValueObjects. Instead of changing most of the code in every layer, we just inline embedded object class metadata into an entities metadata and then use a reflection proxy that looks like &quot;ReflectionProperty&quot; to do the rewiring.&lt;/p&gt;

&lt;p&gt;The idea is inspired from Symfony Forms &apos;property_path&apos; option, where you can write and read values to different parts of an object graph.&lt;/p&gt;

&lt;p&gt;This is a WIP, there have been no further tests made about the consequences of this approach. The implementation is up for discussion.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14731">DDC-2374</key>
            <summary>[GH-634] [WIP] Value objects</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>Tue, 26 Mar 2013 23:13:41 +0000</created>
                <updated>Sun, 14 Apr 2013 10:18:46 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>4</watches>
                            <issuelinks>
                        <issuelinktype id="10001">
                <name>Reference</name>
                                <outwardlinks description="relates to">
                            <issuelink>
            <issuekey id="10295">DDC-93</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2373] [GH-633] [DDC-2042] Added &quot;targetEntity&quot; to AssociationOverride</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2373</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 spezifanta:&lt;/p&gt;

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

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

&lt;p&gt;Hey,&lt;/p&gt;

&lt;p&gt;I needed to override &quot;targetEntity&quot; so I forked Doctrine and applyed it myself. Just after that I found a Ticket &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2042&quot; title=&quot;Metadata association overriding : allow to override &amp;#39;targetEntity&amp;#39;&quot;&gt;DDC-2042&lt;/a&gt; in your Jira so I added a unit test to and would be more than happy to see this commit get merged in to the main master (at some point &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;Cheers, Alex&lt;/p&gt;

&lt;p&gt;I will stick around in the #doctrine-dev on Freenode for any questions. My nick there is &quot;fanta&quot;.&lt;/p&gt;

&lt;p&gt;Keep up the good work.&lt;/p&gt;

&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@ORM\Entity&lt;/li&gt;
	&lt;li&gt;@ORM\Table(name=&quot;customer&quot;)&lt;/li&gt;
	&lt;li&gt;@ORM\AssociationOverrides(
{
 *      @ORM\AssociationOverride(name=&quot;products&quot;,
 *          targetEntity=&quot;MyNewProduct&quot;
 *      )
 * }
&lt;p&gt;)&lt;br/&gt;
 */&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
                <environment></environment>
            <key id="14729">DDC-2373</key>
            <summary>[GH-633] [DDC-2042] Added &quot;targetEntity&quot; to AssociationOverride</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Mar 2013 22:27:26 +0000</created>
                <updated>Wed, 27 Mar 2013 06:40:39 +0000</updated>
                    <resolved>Wed, 27 Mar 2013 06:40:23 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19898" author="beberlei" created="Wed, 27 Mar 2013 06:39:57 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-633&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/633&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/633&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2372] [GH-632] entity generator - ignore trait properties and methods</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2372</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 Padam87:&lt;/p&gt;

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

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

&lt;p&gt;Fixes:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1825&quot; title=&quot;generate entities with traits&quot;&gt;DDC-1825&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2154&quot; title=&quot;Traits and Code Generation&quot;&gt;DDC-2154&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14728">DDC-2372</key>
            <summary>[GH-632] entity generator - ignore trait properties and methods</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>Tue, 26 Mar 2013 19:54:23 +0000</created>
                <updated>Tue, 26 Mar 2013 19:54:23 +0000</updated>
                                                                            <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2371] [GH-631] Fix typo in one of the orderBy examples.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2371</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 aaronmu:&lt;/p&gt;

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

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

&lt;p&gt;Fix typo in one of the orderBy examples.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14727">DDC-2371</key>
            <summary>[GH-631] Fix typo in one of the orderBy examples.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Mar 2013 15:48:13 +0000</created>
                <updated>Wed, 27 Mar 2013 02:19:31 +0000</updated>
                    <resolved>Wed, 27 Mar 2013 02:19:31 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19896" author="beberlei" created="Tue, 26 Mar 2013 16:18:08 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-631&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/631&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/631&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2370] Subclass annotations not being read, unable to use OneToMany relation with single table inheritance</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2370</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Subclasses that override parent class properties and define relations will not work as expected, because AnnotationDriver/Reader will only use the parent class annotation (discarding whatever subclass defined). &lt;/p&gt;

&lt;p&gt;The following code will produce 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;
[Mapping]  FAIL - The entity-class &apos;Test\Office&apos; mapping is invalid:
* The mappings Test\Office#employees and Employee#office are incosistent with each other.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Test 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;
&amp;lt;?php
namespace Test;
 
use Doctrine\ORM\Mapping as ORM;
 
/**
 * @ORM\Entity
 */
class Office 
{
    /**
     * @ORM\OneToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Person&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;office&quot;&lt;/span&gt;)
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Person[]|ArrayCollection
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $people;
 
    /**
     * @ORM\OneToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Employee&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;office&quot;&lt;/span&gt;)
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Employee[]|ArrayCollection
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $employees;
 
}
 
/**
 * @ORM\Entity
 * @ORM\InheritanceType(&lt;span class=&quot;code-quote&quot;&gt;&quot;SINGLE_TABLE&quot;&lt;/span&gt;)
 * @ORM\DiscriminatorColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;)
 * @ORM\DiscriminatorMap({&lt;span class=&quot;code-quote&quot;&gt;&quot;employee&quot;&lt;/span&gt; = &lt;span class=&quot;code-quote&quot;&gt;&quot;Employee&quot;&lt;/span&gt;})
 */
class Person
{
    /**
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Office&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;people&quot;&lt;/span&gt;)
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Office
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $office;
}
 
/**
 * @ORM\Entity
 */
class Employee &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Person
{
    /**
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Office&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;employees&quot;&lt;/span&gt;)
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Office
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $office;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>PHP 5.4.11</environment>
            <key id="14725">DDC-2370</key>
            <summary>Subclass annotations not being read, unable to use OneToMany relation with single table 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="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="thinkscape">Arthur Bodera</reporter>
                        <labels>
                        <label>annotationdriver</label>
                        <label>inheritance</label>
                        <label>orm</label>
                    </labels>
                <created>Tue, 26 Mar 2013 12:50:57 +0000</created>
                <updated>Wed, 1 May 2013 19:18:25 +0000</updated>
                    <resolved>Wed, 1 May 2013 17:21:04 +0000</resolved>
                            <version>2.3.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20164" author="beberlei" created="Wed, 1 May 2013 17:21:04 +0000"  >&lt;p&gt;Overwriting assocations in this way is not supported.&lt;/p&gt;</comment>
                    <comment id="20181" author="thinkscape" created="Wed, 1 May 2013 19:18:25 +0000"  >&lt;p&gt;Ok, I get that it&apos;s not supported right now, but why did you mark it as resolved?&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-2368] [GH-629] Fixed typos in Doctrine Mapping Types section.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2368</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 dustinmoorman:&lt;/p&gt;

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

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

&lt;p&gt;Hello guys! I am fixing some of the documentation in ``basic-mapping.rst`` that display an incorrect use of &apos;an&apos; where &apos;a&apos; should reside. Specifically in regards to instances of &apos;an SQL&apos;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14720">DDC-2368</key>
            <summary>[GH-629] Fixed typos in Doctrine Mapping Types section.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 24 Mar 2013 08:21:14 +0000</created>
                <updated>Sun, 24 Mar 2013 17:00:55 +0000</updated>
                    <resolved>Sun, 24 Mar 2013 17:00:55 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19889" author="beberlei" created="Sun, 24 Mar 2013 16:28:27 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-629&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/629&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/629&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2367] [GH-628] [Docs] Fix field name in inversedby parameter</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2367</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/628&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/628&lt;/a&gt;&lt;/p&gt;

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

</description>
                <environment></environment>
            <key id="14719">DDC-2367</key>
            <summary>[GH-628] [Docs] Fix field name in inversedby parameter</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 24 Mar 2013 01:09:12 +0000</created>
                <updated>Sun, 24 Mar 2013 16:57:09 +0000</updated>
                    <resolved>Sun, 24 Mar 2013 16:57:09 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19888" author="beberlei" created="Sun, 24 Mar 2013 16:28:04 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-628&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/628&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/628&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-2365] [GH-626] default discriminator map - full namespace</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2365</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 Padam87:&lt;/p&gt;

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

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

&lt;p&gt;Using Symfony2, if you have two entities with the same name in different bundles, automatic discriminator map detection will trow MappingException.&lt;/p&gt;

&lt;p&gt;If the namespace is included, there should be no more duplicate key issues.&lt;/p&gt;

&lt;p&gt;(In this case, setting the map manually is not an option)&lt;/p&gt;</description>
                <environment></environment>
            <key id="14717">DDC-2365</key>
            <summary>[GH-626] default discriminator map - full 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="6">Invalid</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 20:13:44 +0000</created>
                <updated>Sat, 30 Mar 2013 23:08:27 +0000</updated>
                    <resolved>Sat, 30 Mar 2013 23:08:27 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19905" author="beberlei" created="Sat, 30 Mar 2013 23:08:20 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-626&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/626&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/626&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2364] [GH-625] [DDC-2363] Duplicated record with orphanRemoval and proxy</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2364</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 mmenozzi:&lt;/p&gt;

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

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

&lt;p&gt;See &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2363&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2363&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14714">DDC-2364</key>
            <summary>[GH-625] [DDC-2363] Duplicated record with orphanRemoval and proxy</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>Fri, 22 Mar 2013 17:39:26 +0000</created>
                <updated>Fri, 22 Mar 2013 17:39:26 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2363] Duplicated record with orphanRemoval and proxy</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2363</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;There is a problem that causes duplicate records are created when EntityManager has to remove an entity due to orphanRemoval. The problem occurs only with a double flush and referred object is a proxy.&lt;/p&gt;

&lt;p&gt;I&apos;m trying to submit a pull request for this ticket. Please, stand by.&lt;/p&gt;</description>
                <environment>Tested both Mac OS X and Ubuntu</environment>
            <key id="14713">DDC-2363</key>
            <summary>Duplicated record with orphanRemoval and proxy</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="mmenozzi">Manuele Menozzi</reporter>
                        <labels>
                        <label>orphanRemoval</label>
                        <label>proxy</label>
                    </labels>
                <created>Fri, 22 Mar 2013 15:07:11 +0000</created>
                <updated>Fri, 22 Mar 2013 15:07:11 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2362] [GH-624] Fix getSQLTableAlias for postgre camelized table name</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2362</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 cedriclombardot:&lt;/p&gt;

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

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

&lt;p&gt;In postgreSQL with old databases we can have camelized model names to query on we need to add quote around the table name like :&lt;/p&gt;

&lt;p&gt;```&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@ORM\Table(name=&quot;&quot;&quot;someThing&quot;&quot;&quot;)&lt;br/&gt;
```&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;But when query is built the alias taken will be `&quot;` this fix will find the good alias to use enabling to query camelized tables&lt;/p&gt;</description>
                <environment></environment>
            <key id="14712">DDC-2362</key>
            <summary>[GH-624] Fix getSQLTableAlias for postgre camelized table name</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 22 Mar 2013 14:24:20 +0000</created>
                <updated>Wed, 1 May 2013 12:43:07 +0000</updated>
                    <resolved>Wed, 1 May 2013 12:43:07 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19884" author="beberlei" created="Fri, 22 Mar 2013 15:01:58 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-624&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/624&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/624&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20152" author="beberlei" created="Wed, 1 May 2013 12:43:07 +0000"  >&lt;p&gt;PR was fixed in favor of Doctrine ORM GH-615&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2361] [GH-623] Related to DDC-2282</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2361</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 AaronDDM:&lt;/p&gt;

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

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

&lt;p&gt;This is related to the patch&#65533;&#65533;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2282&quot; title=&quot;[GH-572] Fixed SQLServer ORDER BY problem in paginator CountOutputWalker&quot;&gt;&lt;del&gt;DDC-2282&lt;/del&gt;&lt;/a&gt;, the same patch also needs to be applied here, exact same issue.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14711">DDC-2361</key>
            <summary>[GH-623] Related to DDC-2282</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Mar 2013 22:56:57 +0000</created>
                <updated>Sun, 14 Apr 2013 09:57:22 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 09:57:22 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19881" author="beberlei" created="Thu, 21 Mar 2013 22:57:08 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-623&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/623&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/623&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19886" author="beberlei" created="Sat, 23 Mar 2013 04:35:10 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-623&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/623&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/623&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-2357] [GH-620] Chaining for EM</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2357</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 pomaxa:&lt;/p&gt;

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

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

&lt;p&gt;Chaining for EM methods persist()/flush(), to write more elegant code $em-&amp;gt;persist($account)-&amp;gt;flush();&lt;/p&gt;</description>
                <environment></environment>
            <key id="14701">DDC-2357</key>
            <summary>[GH-620] Chaining for EM</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Mar 2013 15:59:35 +0000</created>
                <updated>Mon, 18 Mar 2013 16:18:58 +0000</updated>
                    <resolved>Mon, 18 Mar 2013 16:18:53 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19873" author="beberlei" created="Mon, 18 Mar 2013 16:18:44 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-620&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/620&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/620&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19874" author="ocramius" created="Mon, 18 Mar 2013 16:18:58 +0000"  >&lt;p&gt;Fluid interfaces on the persistence API are discouraged&lt;/p&gt;</comment>
                </comments>
                    <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-2354] [GH-617] Wrong UnitOfWork::computeChangeSet()</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2354</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 fchris82:&lt;/p&gt;

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

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

&lt;p&gt;Sometimes some fields are Proxy when compute &quot;changeSet&quot;. If it is Proxy, some listeners - example Gedmo sortable listener - belive the value has changed and this leads to chaos.&lt;/p&gt;

&lt;p&gt;I check the $actualValue, if it is Proxy, the value didn&apos;t change.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14698">DDC-2354</key>
            <summary>[GH-617] Wrong UnitOfWork::computeChangeSet()</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>Sat, 16 Mar 2013 16:18:27 +0000</created>
                <updated>Sat, 16 Mar 2013 16:18:27 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2353] [GH-616] [DDC-2252] Fix delete many-to-many composite key</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2353</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/616&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/616&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-2252&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2252&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14697">DDC-2353</key>
            <summary>[GH-616] [DDC-2252] Fix delete many-to-many composite key</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 16 Mar 2013 04:24:39 +0000</created>
                <updated>Sat, 6 Apr 2013 17:58:10 +0000</updated>
                    <resolved>Sat, 6 Apr 2013 17:58:09 +0000</resolved>
                                            <fixVersion>2.3.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2352] [GH-615] Update SqlWalker.php</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2352</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 mikemeier:&lt;/p&gt;

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

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

&lt;p&gt;Always be sure that only a-z characters are used for table alias, otherwise use generic &quot;t&quot; for &quot;table&quot;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14696">DDC-2352</key>
            <summary>[GH-615] Update SqlWalker.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="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>Fri, 15 Mar 2013 12:53:47 +0000</created>
                <updated>Fri, 15 Mar 2013 12:53:47 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2351] Entity Listener vs. Event Listener</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2351</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Entity Listener and Event Listener don&apos;t get same events. An example is the onFlush event, which Entity Listener doesn&apos;t get. Why are both listeners receiving different events and not same events? &lt;/p&gt;

&lt;p&gt;For consistency I&apos;d like to see that both get same events - if I understand the purpose of Entity Listener correctly: it should be an alternative to Event Listener with same functionality but is bound to an entity. &lt;/p&gt;</description>
                <environment></environment>
            <key id="14695">DDC-2351</key>
            <summary>Entity Listener vs. Event Listener</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="fspillner">Fabian Spillner</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Mar 2013 08:30:12 +0000</created>
                <updated>Fri, 15 Mar 2013 08:45:49 +0000</updated>
                                    <version>Git Master</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19865" author="beberlei" created="Fri, 15 Mar 2013 08:45:49 +0000"  >&lt;p&gt;onFlush and postFlush should be propagated to entity listeners as well&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2350] [GH-614] ObjectHydrator: fix entity namespaces.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2350</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 jelmersnoeck:&lt;/p&gt;

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

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

&lt;ol&gt;
	&lt;li&gt;Object Hydrator: fix entity namespaces&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;If you are using Entity Namespace aliases, the ObjectHydrator will throw a notice for an undefined index of your entity namespace.&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;Problem&lt;br/&gt;
The problem lies in the fact that the prepare() method uses the &quot;className&quot;, used in the aliasMap (where you use the namespace alias) to store the local ClassMetadata cache. Though, in a later stage the actual namespace is being used to find this same item.&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;Fix&lt;br/&gt;
I&apos;ve changed the way this ClassMetadata cache is built. It now uses the full Entity namespace.&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
            <key id="14694">DDC-2350</key>
            <summary>[GH-614] ObjectHydrator: fix entity namespaces.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Mar 2013 17:01:24 +0000</created>
                <updated>Sat, 4 May 2013 11:48:33 +0000</updated>
                    <resolved>Sat, 4 May 2013 11:48:33 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20206" author="doctrinebot" created="Sat, 4 May 2013 11:48:15 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-614&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/614&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/614&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2349] [GH-613] Added ability to eagerly load referenced entities with subclasses</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2349</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 stefankleff:&lt;/p&gt;

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

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

&lt;p&gt;This is a rather ugly implementation. But maybe someone knows how to do it in a better way &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></environment>
            <key id="14691">DDC-2349</key>
            <summary>[GH-613] Added ability to eagerly load referenced entities with subclasses</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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Mar 2013 12:45:41 +0000</created>
                <updated>Sat, 6 Apr 2013 15:00:49 +0000</updated>
                    <resolved>Sat, 6 Apr 2013 15:00:49 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19849" author="beberlei" created="Wed, 13 Mar 2013 12:45:57 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-613&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/613&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/613&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19948" author="beberlei" created="Sat, 6 Apr 2013 15:00:43 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-613&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/613&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/613&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2348] [GH-612] Fixed failing tests</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2348</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 norzechowicz:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14690">DDC-2348</key>
            <summary>[GH-612] Fixed failing tests</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Mar 2013 09:01:16 +0000</created>
                <updated>Thu, 14 Mar 2013 21:02:01 +0000</updated>
                    <resolved>Thu, 14 Mar 2013 21:02:01 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19854" author="beberlei" created="Thu, 14 Mar 2013 21:00:16 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-612&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/612&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/612&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2347] Refresh Uniqueidentifier ID from mssql of inserted Entity in doctrine2.3</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2347</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I don&apos;t want you to report something that isn&apos;t a bug.&lt;br/&gt;
But I read about problems with doctrine2 and mssql uniqueid&apos;s.&lt;br/&gt;
So First I asked a question at stackoverflow. No one could help me, and the only one who gave me a comment thought the same then me, that it looks like a bug.&lt;/p&gt;

&lt;p&gt;If it isn&apos;t a bug I&apos;m very sorry for this issue report.&lt;/p&gt;

&lt;p&gt;Issue as reported in &lt;br/&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/15368082/refresh-uniqueidentifier-id-from-mssql-of-inserted-entity-in-doctrine2&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/15368082/refresh-uniqueidentifier-id-from-mssql-of-inserted-entity-in-doctrine2&lt;/a&gt;&lt;/p&gt;</description>
                <environment>Windows Server 2008 R2, Apache 2.2, Doctrine 2.3, PHP 5.4</environment>
            <key id="14689">DDC-2347</key>
            <summary>Refresh Uniqueidentifier ID from mssql of inserted Entity in doctrine2.3</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="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="ok3n0b1">Lucas Senn</reporter>
                        <labels>
                        <label>dql</label>
                    </labels>
                <created>Wed, 13 Mar 2013 07:58:36 +0000</created>
                <updated>Wed, 13 Mar 2013 08:11:55 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2346] [GH-611] Fixed typo in hints. Caused slow loading of eager entities.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2346</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 stefankleff:&lt;/p&gt;

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

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

&lt;p&gt;This small typo prevents entities from being fetched with the deferred- eager-loading path. &lt;/p&gt;</description>
                <environment></environment>
            <key id="14686">DDC-2346</key>
            <summary>[GH-611] Fixed typo in hints. Caused slow loading of eager entities.</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Mar 2013 15:20:26 +0000</created>
                <updated>Sun, 14 Apr 2013 07:53:22 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 07:53:22 +0000</resolved>
                                            <fixVersion>2.3.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19988" author="doctrinebot" created="Sun, 14 Apr 2013 07:43:49 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-611&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/611&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/611&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19989" author="beberlei" created="Sun, 14 Apr 2013 07:53:22 +0000"  >&lt;p&gt;Fixed and waiting in 2.3 release branch&lt;/p&gt;</comment>
                </comments>
                    <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-2344] [GH-609] Fixed typo.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2344</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 haroldb:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14684">DDC-2344</key>
            <summary>[GH-609] Fixed typo.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Mar 2013 22:13:13 +0000</created>
                <updated>Mon, 11 Mar 2013 22:42:38 +0000</updated>
                    <resolved>Mon, 11 Mar 2013 22:42:37 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19826" author="beberlei" created="Mon, 11 Mar 2013 22:42:16 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-609&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/609&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/609&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

</description>
                <environment></environment>
            <key id="14683">DDC-2343</key>
            <summary>[GH-608] Fixed typo</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Mar 2013 00:32:02 +0000</created>
                <updated>Mon, 11 Mar 2013 01:55:52 +0000</updated>
                    <resolved>Mon, 11 Mar 2013 01:55:50 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19825" author="beberlei" created="Mon, 11 Mar 2013 00:55:48 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-608&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/608&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/608&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

</description>
                <environment></environment>
            <key id="14681">DDC-2342</key>
            <summary>[GH-607] 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>Mon, 11 Mar 2013 00:10:44 +0000</created>
                <updated>Mon, 11 Mar 2013 01:57:09 +0000</updated>
                    <resolved>Mon, 11 Mar 2013 01:57:09 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19823" author="beberlei" created="Mon, 11 Mar 2013 00:25:39 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-607&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/607&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/607&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2341] [GH-606] Don&apos;t add empty Expr to another one</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2341</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 jean-gui:&lt;/p&gt;

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

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

&lt;p&gt;Doctrine should not allow to add an empty Expr to another one. Current code allows that, which can lead to wrong DQL.&lt;br/&gt;
Example 1:&lt;br/&gt;
```php&lt;br/&gt;
$andExpr = $this-&amp;gt;_expr-&amp;gt;andx();&lt;br/&gt;
$andExpr-&amp;gt;add($this-&amp;gt;_expr-&amp;gt;andx());&lt;br/&gt;
$andExpr-&amp;gt;add($this-&amp;gt;_expr-&amp;gt;eq(1, 1));&lt;br/&gt;
echo $andExpr;&lt;br/&gt;
```&lt;br/&gt;
will output:&lt;br/&gt;
```sql&lt;br/&gt;
 AND 1 = 1&lt;br/&gt;
```&lt;br/&gt;
instead of:&lt;br/&gt;
```sql&lt;br/&gt;
1 = 1&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;Example 2:&lt;br/&gt;
```php&lt;br/&gt;
echo $andExpr;&lt;br/&gt;
```&lt;br/&gt;
will output:&lt;br/&gt;
```sql&lt;br/&gt;
 AND  AND &lt;br/&gt;
```&lt;br/&gt;
instead of nothing.&lt;/p&gt;

&lt;p&gt;IRC log of the discusion on #doctrine:&lt;br/&gt;
```irc&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:36:18&amp;#93;&lt;/span&gt; &amp;lt;Jean-Gui&amp;gt;       hi&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:36:35&amp;#93;&lt;/span&gt; &amp;lt;Jean-Gui&amp;gt;       I have a question about Doctrine/ORM/Query/Expr/Base.php&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:37:17&amp;#93;&lt;/span&gt; &amp;lt;Jean-Gui&amp;gt;       looking at the add function (&lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Query/Expr/Base.php#L89&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Query/Expr/Base.php#L89&lt;/a&gt;), the first if seems wrong&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:37:39&amp;#93;&lt;/span&gt; &amp;lt;Jean-Gui&amp;gt;       [[ if ( $arg !== null || ($arg instanceof self &amp;amp;&amp;amp; $arg-&amp;gt;count() &amp;gt; 0) ) ]]&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:39:49&amp;#93;&lt;/span&gt; &amp;lt;Jean-Gui&amp;gt;       if $arg is not null, then it will get added even if $arg-&amp;gt;count === 0&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:41:03&amp;#93;&lt;/span&gt; &amp;lt;ocramius&amp;gt;       yes&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:41:42&amp;#93;&lt;/span&gt; &amp;lt;Jean-Gui&amp;gt;       that doesn&apos;t seem right, does it?&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:43:29&amp;#93;&lt;/span&gt; &amp;lt;ocramius&amp;gt;       why not?&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:43:34&amp;#93;&lt;/span&gt; &amp;lt;ocramius&amp;gt;       can you elaborate?&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:45:37&amp;#93;&lt;/span&gt; &amp;lt;Jean-Gui&amp;gt;       that &quot;if&quot; seems to be meaning that the function shouldn&apos;t add $arg if  $arg-&amp;gt;count() equals 0&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:45:45&amp;#93;&lt;/span&gt; &amp;lt;Ninj&amp;gt;   ocramius: i think Jean-Gui means that the right side of the OR will be called only if the left side is false, which means $arg is null. And if $arg is null it cannot be an object&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:46:07&amp;#93;&lt;/span&gt; &amp;lt;Jean-Gui&amp;gt;       right&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:46:30&amp;#93;&lt;/span&gt; &amp;lt;Ninj&amp;gt;   this condition is indeed bugged&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:47:12&amp;#93;&lt;/span&gt; &amp;lt;alcuadradoatwork&amp;gt;       I see Jean-Gui&apos;s point too&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:47:18&amp;#93;&lt;/span&gt; &amp;lt;ocramius&amp;gt;       write a test case then &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:47:24&amp;#93;&lt;/span&gt; &amp;lt;alcuadradoatwork&amp;gt;       maybe it works right, but it&apos;s confusing&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:48:07&amp;#93;&lt;/span&gt; &amp;lt;Ninj&amp;gt;   this condition will not throw any error because the &quot;instanceof&quot; will prevent the $arg::count function to be called on a null object, but it is still useless&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:48:20&amp;#93;&lt;/span&gt; &amp;lt;Jean-Gui&amp;gt;       I think [[ if ( $arg &lt;span class=&quot;error&quot;&gt;Unable to render embedded object: File (== null &amp;amp;&amp;amp; () not found.&lt;/span&gt;($arg instanceof self) || ($arg instanceof self &amp;amp;&amp;amp; $arg-&amp;gt;count() &amp;gt; 0)) ) ]] would work better&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:48:31&amp;#93;&lt;/span&gt;   * Jean-Gui will look into how to submit bug reports&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:48:49&amp;#93;&lt;/span&gt; &amp;lt;alcuadradoatwork&amp;gt;       isn&apos;t this enough?  if ($arg instanceof self &amp;amp;&amp;amp; $arg-&amp;gt;count() &amp;gt; 0)&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:49:18&amp;#93;&lt;/span&gt; &amp;lt;Ninj&amp;gt;   i think it is, alcuadradoatwork&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:49:28&amp;#93;&lt;/span&gt; &amp;lt;Jean-Gui&amp;gt;       no, because if $arg is not an instance of self, I think we still want to add it&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:49:45&amp;#93;&lt;/span&gt; &amp;lt;ocramius&amp;gt;       alcuadradoatwork: again... if it is a buggy condition, write a small test and open a PR &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:50:03&amp;#93;&lt;/span&gt; &amp;lt;alcuadradoatwork&amp;gt;       ocramius, it depends on your definition of &quot;buggy&quot;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:50:32&amp;#93;&lt;/span&gt; &amp;lt;alcuadradoatwork&amp;gt;       it won&apos;t damage the behavior of the software, but it&apos;s quality its kind of pour&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:51:19&amp;#93;&lt;/span&gt; &amp;lt;ocramius&amp;gt;       alcuadradoatwork: yes, still it needs coverage. I didn&apos;t say it needs a &lt;em&gt;FAILING&lt;/em&gt; test&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:51:38&amp;#93;&lt;/span&gt; &amp;lt;alcuadradoatwork&amp;gt;       I see your point&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:51:47&amp;#93;&lt;/span&gt; &amp;lt;Ninj&amp;gt;   if the logic is :  &quot;add any non-null object, but if it&apos;s self so add it only if count&amp;gt;0&quot; then it must be rewriten&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:52:46&amp;#93;&lt;/span&gt; &amp;lt;Jean-Gui&amp;gt;       $args should be added if it&apos;s an instance of self or $_allowedClasses&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:53:16&amp;#93;&lt;/span&gt; &amp;lt;Ninj&amp;gt;   hum&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:53:37&amp;#93;&lt;/span&gt; &amp;lt;Ninj&amp;gt;   $args should be added if it&apos;s an instance of self with count &amp;gt; 0 or any other $_allowedClasse&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:53:55&amp;#93;&lt;/span&gt; &amp;lt;Jean-Gui&amp;gt;       yes, Ninj&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:55:01&amp;#93;&lt;/span&gt; &amp;lt;Jean-Gui&amp;gt;       thanks for your help guys, I&apos;ll submit a bug report with some test cases&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;jeudi 7 mars 2013&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;14:55:43&amp;#93;&lt;/span&gt; &amp;lt;Ninj&amp;gt;   your welcome Jean-Gui&lt;br/&gt;
```&lt;/p&gt;
</description>
                <environment></environment>
            <key id="14678">DDC-2341</key>
            <summary>[GH-606] Don&apos;t add empty Expr to another one</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 Mar 2013 16:15:04 +0000</created>
                <updated>Tue, 12 Mar 2013 18:20:26 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 18:19:12 +0000</resolved>
                                            <fixVersion>2.3.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19837" author="beberlei" created="Tue, 12 Mar 2013 18:20:26 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-606&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/606&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/606&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2340] Using Criteria matching on non-initialized collections ignore changes made on loaded entities</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2340</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Given:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;you have a non initialized collection (association between entities)&lt;/li&gt;
	&lt;li&gt;you have loaded some entities that are in that collection and changed some fields (without flushing)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;If you do a matching using a Criteria on the collection (&lt;a href=&quot;http://docs.doctrine-project.org/en/latest/reference/working-with-associations.html#filtering-collections&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/en/latest/reference/working-with-associations.html#filtering-collections&lt;/a&gt;), then the Criteria will be executed through a DB query. But the fields you changed are not updated in the DB, so if you filter/order on those fields, then the result of the filter() will be incorrect.&lt;/p&gt;

&lt;p&gt;However, if your collection was initialized, the Criteria matching will be done in memory on the ArrayCollection and the result will be correct.&lt;/p&gt;

&lt;p&gt;So we have the problem for Criteria filtering on non-initialized collections.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14676">DDC-2340</key>
            <summary>Using Criteria matching on non-initialized collections ignore changes made on loaded entities</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="mnapoli">Matthieu Napoli</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Mar 2013 13:49:18 +0000</created>
                <updated>Tue, 12 Mar 2013 21:54:35 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 21:54:17 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19848" author="beberlei" created="Tue, 12 Mar 2013 21:54:35 +0000"  >&lt;p&gt;Fixed and merged for 2.3.3&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2339] [GH-605] DDC-2338 Added failing test for composite foreign key persistance</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2339</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/605&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/605&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;I&apos;ve added this test regarding ticket &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2338&quot; title=&quot;Entity with composite foreign keys identifiers should be persisted after related entities without exception&quot;&gt;DDC-2338&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14675">DDC-2339</key>
            <summary>[GH-605] DDC-2338 Added failing test for composite foreign key persistance</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, 7 Mar 2013 09:40:17 +0000</created>
                <updated>Thu, 9 May 2013 15:23:13 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20246" author="beberlei" created="Thu, 9 May 2013 15:23:13 +0000"  >&lt;p&gt;This is documented behavior and would just be an improvement&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2338] Entity with composite foreign keys identifiers should be persisted after related entities without exception</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2338</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I&apos;ve seen that when you create an entity with a composite foreign key as identifier it cannot be flushed until the related entities are already flushed to the database and not just persisted.&lt;/p&gt;

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

&lt;p&gt;I&apos;m going to create a pull request with the failing test.&lt;/p&gt;</description>
                <environment>Mac OSX 10.8, php 5.4.11, doctrine git master version</environment>
            <key id="14674">DDC-2338</key>
            <summary>Entity with composite foreign keys identifiers should be persisted after related entities without exception</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="alex88">Alessandro Tagliapietra</reporter>
                        <labels>
                        <label>orm</label>
                        <label>unitofwork</label>
                    </labels>
                <created>Thu, 7 Mar 2013 09:30:41 +0000</created>
                <updated>Thu, 7 Mar 2013 09:40:20 +0000</updated>
                                    <version>Git Master</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19817" author="alex88" created="Thu, 7 Mar 2013 09:40:20 +0000"  >&lt;p&gt;Created pull request &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/605&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/605&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2337] Allow an entity to use its own persister to take advantage of DB level features if necessary</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2337</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have a situation where I wanted a single table to use INSERT DELAYED. Its an audit log table where I expect each http request to generate many inserts for. In an effort to not over tax the system I implemented a custom Entity Persister so that it would work. This obviously doesn&apos;t work with all mapping drivers. However if this is a feature that you think is worth integrating I will fork it on github and complete the implementation alongside any changes/improvements requested...&lt;/p&gt;</description>
                <environment></environment>
            <key id="14672">DDC-2337</key>
            <summary>Allow an entity to use its own persister to take advantage of DB level features if necessary</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="gnat">Nathanael Noblet</reporter>
                        <labels>
                    </labels>
                <created>Wed, 6 Mar 2013 20:17:54 +0000</created>
                <updated>Wed, 6 Mar 2013 20:17:54 +0000</updated>
                                                                    <component>Mapping Drivers</component>
                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                    <attachment id="11511" name="persister.patch" size="4366" author="gnat" created="Wed, 6 Mar 2013 20:17:54 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2336] [GH-604] Added support for string functions in OrderBy clause</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2336</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 bramstroker:&lt;/p&gt;

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

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

&lt;p&gt;Extended the OrderBy parser to support string functions directly in the &lt;/p&gt;</description>
                <environment></environment>
            <key id="14671">DDC-2336</key>
            <summary>[GH-604] Added support for string functions in OrderBy 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="6">Invalid</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 10:10:30 +0000</created>
                <updated>Tue, 12 Mar 2013 18:28:23 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 18:28:23 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19838" author="beberlei" created="Tue, 12 Mar 2013 18:28:10 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-604&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/604&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/604&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2335] [GH-603] Add a filter to the import and convert mapping</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2335</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 nicolasTheodo:&lt;/p&gt;

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

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

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

&lt;p&gt;I needed to import the mapping of an existing database in order to create doctrine2 entities, but when you run the command, it throw an exception on every table without a primary key.&lt;/p&gt;

&lt;p&gt;I tried to use the filter option, but the error still occurs because the exception was throw in the method which get all the metadata informations.&lt;/p&gt;

&lt;p&gt;I added a method which get the metadata of some tables according to a filter.&lt;/p&gt;

&lt;p&gt;What are your thought bout my issue?&lt;/p&gt;</description>
                <environment></environment>
            <key id="14670">DDC-2335</key>
            <summary>[GH-603] Add a filter to the import and convert 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="6">Invalid</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:55:59 +0000</created>
                <updated>Thu, 9 May 2013 14:20:30 +0000</updated>
                    <resolved>Thu, 9 May 2013 14:20:30 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20243" author="doctrinebot" created="Thu, 9 May 2013 14:20:27 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-603&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/603&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/603&lt;/a&gt;&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-2332] [UnitOfWork::doPersist()] The spl_objact_hash() generate not unique hash!</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2332</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I created fixtures and some data was inserted many times without calling the &lt;tt&gt;Task&lt;/tt&gt; entity PrePersist event listener.&lt;/p&gt;

&lt;p&gt;I printed the used and generated hash and I saw a &lt;tt&gt;Proxies&amp;#95;&lt;em&gt;CG&lt;/em&gt;_\Asitly\ProjectManagementBundle\Entity\User&lt;/tt&gt; hash equal a &lt;tt&gt;Task&lt;/tt&gt; entity hash!&lt;/p&gt;</description>
                <environment>Symfony 2.1.8, php 5.4.7 and php 5.4.12, Windows 7</environment>
            <key id="14666">DDC-2332</key>
            <summary>[UnitOfWork::doPersist()] The spl_objact_hash() generate not unique hash!</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="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="fchris82">Kriszti&#225;n Ferenczi</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Mar 2013 11:20:00 +0000</created>
                <updated>Thu, 30 May 2013 05:04:37 +0000</updated>
                                                                    <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19808" author="ocramius" created="Tue, 5 Mar 2013 11:23:09 +0000"  >&lt;p&gt;Please provide either a code example or a test case. As it stands, this issue is incomplete&lt;/p&gt;</comment>
                    <comment id="19809" author="beberlei" created="Tue, 5 Mar 2013 11:35:10 +0000"  >&lt;p&gt;Are you calling EntityManager#clear() inbetween? Because PHP reuses the hashes. The ORM accounts for this.&lt;/p&gt;</comment>
                    <comment id="19811" author="beberlei" created="Tue, 5 Mar 2013 12:37:54 +0000"  >&lt;p&gt;This is not a reproduce case, i don&apos;t want to execute your whole project. &lt;/p&gt;

&lt;p&gt;I want to know, what is the actual bug that you see? Can you just print a list of all the hashes? Because the hashes dont differ at the end, bu tjust somewhere in the middle.&lt;/p&gt;</comment>
                    <comment id="19813" author="fchris82" created="Tue, 5 Mar 2013 12:47:24 +0000"  >&lt;p&gt;I attached a hashlogs.txt file. The last Task class hash is 0000000050ab4aba0000000058e1cb12 ( line 3 129 )&lt;/p&gt;

&lt;p&gt;This is not unique, view the line 2 760 . The Task is not being saved and the program don&apos;t call the prePersist listener. The &quot;UnitOfWork&quot; believe the entity has been saved because the &lt;tt&gt;isset($this-&amp;gt;entityStates&lt;span class=&quot;error&quot;&gt;&amp;#91;$oid&amp;#93;&lt;/span&gt;)&lt;/tt&gt; is true. But it is an other entity.&lt;/p&gt;</comment>
                    <comment id="19816" author="fchris82" created="Wed, 6 Mar 2013 01:23:24 +0000"  >&lt;p&gt;The &lt;tt&gt;EntityManager::clear()&lt;/tt&gt; fix the problem, but this is not &quot;good&quot; and &quot;beautiful&quot; solution. Shows no sign of that conflicts were and this is causing the problem. I was looking for the problem 7 hours.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11510" name="hashlogs.txt" size="331693" author="fchris82" created="Tue, 5 Mar 2013 12:47:24 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2331] [GH-600] [PreUpdateEventArgs] Allows to add a new value on the entity changeset</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2331</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 egeloen:&lt;/p&gt;

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

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

&lt;p&gt;Hey!&lt;/p&gt;

&lt;p&gt;I propose to add a `addNewValue` method on the `PreUpdateEventArgs`. This method allows to add a new value on the entity changeset when the entity changeset does not wrap the field.&lt;/p&gt;

&lt;p&gt;In one of my app, I need to update a field if an entity is updated but the field is not updated at the beginning.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14665">DDC-2331</key>
            <summary>[GH-600] [PreUpdateEventArgs] Allows to add a new value on the entity changeset</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Mar 2013 08:45:19 +0000</created>
                <updated>Tue, 5 Mar 2013 09:33:16 +0000</updated>
                    <resolved>Tue, 5 Mar 2013 09:33:16 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19807" author="beberlei" created="Tue, 5 Mar 2013 09:10:25 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-600&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/600&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/600&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-2329] [GH-598] adds a new output format</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2329</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 schmittjoh:&lt;/p&gt;

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

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

&lt;p&gt;same as doctrine/dbal#279&lt;/p&gt;</description>
                <environment></environment>
            <key id="14657">DDC-2329</key>
            <summary>[GH-598] adds a new output format</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 3 Mar 2013 10:04:09 +0000</created>
                <updated>Tue, 5 Mar 2013 00:47:49 +0000</updated>
                    <resolved>Tue, 5 Mar 2013 00:47:44 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19805" author="beberlei" created="Mon, 4 Mar 2013 23:12:23 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-598&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/598&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/598&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2328] [GH-597] use the extended proxy interface in the same namespace</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2328</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 MDrollette:&lt;/p&gt;

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

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

&lt;p&gt;Fix for this error:&lt;/p&gt;

&lt;p&gt;    FatalErrorException: Compile Error: Cannot use Doctrine\Common\Proxy\Proxy as Proxy because the name is already in use in .../vendor/doctrine/orm/lib/Doctrine/ORM/Proxy/ProxyFactory.php line 26&lt;/p&gt;</description>
                <environment></environment>
            <key id="14651">DDC-2328</key>
            <summary>[GH-597] use the extended proxy interface in the same namespace</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>
                                <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 1 Mar 2013 17:49:41 +0000</created>
                <updated>Sun, 3 Mar 2013 20:11:16 +0000</updated>
                    <resolved>Sun, 3 Mar 2013 20:11:16 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19796" author="ocramius" created="Sun, 3 Mar 2013 02:32:55 +0000"  >&lt;p&gt;Marking as blocker - has to go in before 2.4&lt;/p&gt;</comment>
                    <comment id="19797" author="beberlei" created="Sun, 3 Mar 2013 17:14:36 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-597&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/597&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/597&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19798" author="ocramius" created="Sun, 3 Mar 2013 20:11:16 +0000"  >&lt;p&gt;merged&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-2325] [GH-594] Use inflector in EntityGenerator</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2325</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 v3labs:&lt;/p&gt;

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

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

&lt;p&gt;The way EntityGenerator handles add/edit methods is wrong.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;class SomeEntity &lt;/p&gt;
{
  /* @ORM\OneToMany(...) */
  private $entries;
}

&lt;p&gt;In this case the generator creates&lt;/p&gt;

&lt;p&gt;addEntrie and removeEntrie methods. They should be be addEntry and removeEntry&lt;/p&gt;

&lt;p&gt;This patch fixes that.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14644">DDC-2325</key>
            <summary>[GH-594] Use inflector in EntityGenerator</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Feb 2013 19:08:01 +0000</created>
                <updated>Fri, 1 Mar 2013 00:08:57 +0000</updated>
                    <resolved>Fri, 1 Mar 2013 00:08:57 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19785" author="beberlei" created="Fri, 1 Mar 2013 00:02:48 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-594&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/594&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/594&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19786" author="ocramius" created="Fri, 1 Mar 2013 00:08:57 +0000"  >&lt;p&gt;merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2324] mapOneToMany not working after upgrade to symfony2.1</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2324</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;After updating to from symfony 2.0 to symfony 2.1, creating a new mapping did not work when using \Doctrine\ORM\Mapping\ClassMetadata::mapOneToMany().&lt;/p&gt;

&lt;p&gt;The code used was:&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;var&lt;/span&gt; $metadata \Doctrine\ORM\Mapping\ClassMetadata */
        $metadata = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getDoctrine()-&amp;gt;getEntityManager()-&amp;gt;getClassMetadata(&apos;SecretSecretBundle:Deal&apos;);

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!array_key_exists(&apos;rolap&apos;, $metadata-&amp;gt;getAssociationMappings())) {
            &lt;span class=&quot;code-comment&quot;&gt;// use a temporary join mapping
&lt;/span&gt;            $metadata-&amp;gt;mapOneToMany(array(
                &apos;targetEntity&apos; =&amp;gt; &apos;Secret\SecretBundle\Entity\RolapDealP1m&apos;,
                &apos;fieldName&apos; =&amp;gt; &apos;rolap&apos;,
                &apos;mappedBy&apos; =&amp;gt; &apos;deal&apos;,
            ));
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;A manyToOne mapping from RolapDealP1m to Deal was already created in the RolapDealP1m entity class.&lt;/p&gt;

&lt;p&gt;Then, a query using the queryBuilder was created 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=$repo-&amp;gt;createQueryBuilder(&apos;Deal&apos;);
$qb
    -&amp;gt;join(&apos;Deal.rolap&apos;, &apos;Rolap&apos;)
[additional joins]
    -&amp;gt;select(
        array(
            &apos;Deal.number number&apos;,
            &apos;Deal.product productName&apos;,
[additional fields]
        )
    )
[additional where and group by]
;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The problem occurs, when doing a simple&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;getQuery()-&amp;gt;getResult();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;On symfony 2.0 using doctrine 2.2.2 it worked fine, the result was returned.&lt;br/&gt;
On symfony 2.1 using doctrine 2.3.2 and 2.2.2 an error occurs:&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;
Notice: Undefined index: rolap in /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php line 366
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As a workaround, we added the OneToMany mapping to the Deal Entity instead of using a temporary mapping. This worked fine with symfony 2.1/doctrine 2.3.2.&lt;/p&gt;

&lt;p&gt;We think there has been a regression when trying to create temporary mappings.&lt;/p&gt;</description>
                <environment>debian 6, php 5.4.10</environment>
            <key id="14643">DDC-2324</key>
            <summary>mapOneToMany not working after upgrade to symfony2.1</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="thomas303">Thomas Mayer</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Feb 2013 14:38:49 +0000</created>
                <updated>Mon, 4 Mar 2013 22:17:57 +0000</updated>
                    <resolved>Mon, 4 Mar 2013 22:17:57 +0000</resolved>
                            <version>2.3.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19778" author="ocramius" created="Thu, 28 Feb 2013 14:42:56 +0000"  >&lt;p&gt;Please validate the generated mappings with Doctrine\ORM\Tools\SchemaValidator.php&lt;/p&gt;</comment>
                    <comment id="19779" author="thomas303" created="Thu, 28 Feb 2013 15:02:43 +0000"  >&lt;p&gt;Using symfony 2.0 and doctrine 2.2.2, after the mapOneToMany() mapping SchemaValidator returns&lt;br/&gt;
  &apos;Secret\SecretBundle\Entity\Deal&apos; =&amp;gt; &lt;br/&gt;
    array (size=1)&lt;br/&gt;
      0 =&amp;gt; string &apos;The field Secret\SecretBundle\Entity\Deal#rolap is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity Secret\SecretBundle\Entity\RolapDealP1m#deal does not contain the required &apos;inversedBy=rolap&apos; attribute.&apos; (length=271)&lt;/p&gt;

&lt;p&gt;However, this works fine.&lt;/p&gt;

&lt;p&gt;SchemaValidator returns the same when using symfony 2.1/doctrine 2.3.2, which is not working any more when doing the getResult()&lt;/p&gt;</comment>
                    <comment id="19780" author="ocramius" created="Thu, 28 Feb 2013 15:06:17 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=thomas303&quot; class=&quot;user-hover&quot; rel=&quot;thomas303&quot;&gt;Thomas Mayer&lt;/a&gt; are you able to write a failing test case for this one? It may just be an undocumented BC break though.&lt;/p&gt;</comment>
                    <comment id="19781" author="thomas303" created="Thu, 28 Feb 2013 15:14:02 +0000"  >&lt;p&gt;I will try to track it down to a smaller model for the test case. &lt;/p&gt;</comment>
                    <comment id="19799" author="beberlei" created="Mon, 4 Mar 2013 22:17:57 +0000"  >&lt;p&gt;Changing the mapping of entities after loading from a driver is undefined behavior.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2323] [GH-593] Fix SimpleObjectHydrator behavior when column not exists in fieldMappings, relationMappings and metaMappings</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2323</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 norzechowicz:&lt;/p&gt;

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

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

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/commit/88c1975dda492f3dd93cddea71ebacb40ed7efa5&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/88c1975dda492f3dd93cddea71ebacb40ed7efa5&lt;/a&gt; change seems to make unable to use ``findOneBy()`` method because of ``doctrine_rownum`` added to query.&lt;/p&gt;

&lt;p&gt;``findOneBy()`` throws:&lt;/p&gt;

&lt;p&gt;&amp;gt;Notice: Undefined index: doctrine_rownum in &lt;br/&gt;
 ...\vendor\doctrine\orm\lib\Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator.php line 183&lt;/p&gt;</description>
                <environment></environment>
            <key id="14642">DDC-2323</key>
            <summary>[GH-593] Fix SimpleObjectHydrator behavior when column not exists in fieldMappings, relationMappings and metaMappings</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, 28 Feb 2013 09:16:55 +0000</created>
                <updated>Thu, 14 Mar 2013 22:00:08 +0000</updated>
                    <resolved>Thu, 14 Mar 2013 22:00:08 +0000</resolved>
                                            <fixVersion>2.3.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2322] [GH-592] Added ability to specify INDEX BY when creating a QueryBuilder from a Repository</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2322</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 cmenning:&lt;/p&gt;

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

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

&lt;p&gt;This is a handy shortcut when using indexed results.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14641">DDC-2322</key>
            <summary>[GH-592] Added ability to specify INDEX BY when creating a QueryBuilder from a Repository</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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                        <label>QueryBuilder</label>
                        <label>Repository</label>
                    </labels>
                <created>Wed, 27 Feb 2013 19:14:58 +0000</created>
                <updated>Tue, 12 Mar 2013 19:45:17 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 18:44:24 +0000</resolved>
                            <version>2.2</version>
                <version>2.3</version>
                <version>Git Master</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19842" author="beberlei" created="Tue, 12 Mar 2013 18:44:17 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-592&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/592&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/592&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19843" author="cmenning" created="Tue, 12 Mar 2013 19:12:49 +0000"  >&lt;p&gt;I disagree with the reasoning behind closing this request.  In DoctrineBundle, &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;getDoctrine()-&amp;gt;getEntityManager()&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; has been deprecated, which leaves you to use &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;getDoctrine()-&amp;gt;getRepository($class)-&amp;gt;createQueryBuilder();&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Adding &lt;tt&gt;-&amp;gt;from()&lt;/tt&gt; at that point is redundant since it&apos;s already been specified inside the createQueryBuilder() call. It seems wasteful to not allow a passthru of the $indexBy argument during the initial call when it&apos;s already supported by the from() called inside createQueryBuilder().&lt;/p&gt;</comment>
                    <comment id="19844" author="ocramius" created="Tue, 12 Mar 2013 19:45:17 +0000"  >&lt;p&gt;The repository is already (probably) doing too much. A simpler approach with:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;$qb = $em-&amp;gt;createQueryBuilder()-&amp;gt;select(&apos;e&apos;)-&amp;gt;from($repo-&amp;gt;getClassName(), &apos;e&apos;, &apos;e.stuff&apos;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Is no big deal in my opinion.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2321] DbDeploy Support</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2321</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;ul&gt;
	&lt;li&gt;DbDeploy Diff Generation&lt;/li&gt;
	&lt;li&gt;Schema Serialization&lt;/li&gt;
	&lt;li&gt;SchemaTool gets new event when diff is applied, then you can update a &quot;stable&quot; schema xml. On Generation new db deploy script, use current schema vs stable schema vom disc.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="14640">DDC-2321</key>
            <summary>DbDeploy Support</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>Wed, 27 Feb 2013 17:50:49 +0000</created>
                <updated>Wed, 27 Feb 2013 17:50:49 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <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-2319] [GH-590] DQL Query: process ArrayCollection values to ease development</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2319</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 michaelperrin:&lt;/p&gt;

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

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

&lt;p&gt;I added some code to ease &quot;where in&quot; parameter binding.&lt;/p&gt;

&lt;p&gt;As you know, when a where condition is added, the object itself can be passed as a parameter and it&apos;s id is automatically retrieved:&lt;/p&gt;

&lt;p&gt;```php&lt;br/&gt;
$queryBuilder = $this&lt;br/&gt;
    -&amp;gt;where(&apos;model.category = :category&apos;)&lt;br/&gt;
    -&amp;gt;setParameter(&apos;category&apos;, $category)&lt;br/&gt;
;&lt;br/&gt;
```&lt;br/&gt;
Where `$category` is an object.&lt;/p&gt;

&lt;p&gt;But it doesn&apos;t work for collections:&lt;br/&gt;
```php&lt;br/&gt;
$queryBuilder = $this&lt;br/&gt;
    -&amp;gt;where(&apos;model.category IN (:categories)&apos;)&lt;br/&gt;
    -&amp;gt;setParameter(&apos;categories&apos;, $categories)&lt;br/&gt;
;&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;Where categories is an `ArrayCollection` object (retrieved from a many to one relation for instance).&lt;/p&gt;

&lt;p&gt;This doesn&apos;t work in the current version of Doctrine, and my PR solved that.&lt;/p&gt;

&lt;p&gt;So far, the only solution is to do the following:&lt;/p&gt;

&lt;p&gt;```php&lt;br/&gt;
$categoryIds = array();&lt;/p&gt;

&lt;p&gt;foreach ($categories as $category) &lt;/p&gt;
{
    $categoryIds[] = $category-&amp;gt;getId();
}

&lt;p&gt;$queryBuilder = $this&lt;br/&gt;
    -&amp;gt;where(&apos;model.category IN (:category_ids)&apos;)&lt;br/&gt;
    -&amp;gt;setParameter(&apos;category_ids&apos;, $categoryIds)&lt;br/&gt;
;&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;And this is pretty borring when you have to do it several times for several entities.&lt;/p&gt;

&lt;p&gt;Note that I didn&apos;t add any unit test for this feature. Can you explain me where I should add the test?&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</description>
                <environment></environment>
            <key id="14550">DDC-2319</key>
            <summary>[GH-590] DQL Query: process ArrayCollection values to ease development</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, 25 Feb 2013 16:03:47 +0000</created>
                <updated>Sat, 4 May 2013 12:52:29 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2318] Count all element</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2318</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I&apos;m sorry if it is not the right place to ask and suggest but I was not sure where to contact you.&lt;/p&gt;

&lt;p&gt;I have been trying to make a pagination of articles without using DQL. For me, it defies the purpose of the ORM to do DQL for things like pagination.&lt;/p&gt;

&lt;p&gt;After some research I found the method findBy() which allows me to select X element starting at position Y.&lt;br/&gt;
Yet, to know the number of pages, I needed to count the number of elements in my database and I didn&apos;t find any count() method in the Entity Repository.&lt;/p&gt;

&lt;p&gt;I was wondering why there is no count method ?&lt;/p&gt;

&lt;p&gt;Moreover, I did my own entity Repository that extends the default one to have a count method 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;use Doctrine\ORM\EntityRepository;

class CountableEntityRepository &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; EntityRepository {
    
    /**
     * returns the number of entity&apos;s rows
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function count() {
        $query = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;createQueryBuilder(&apos;e&apos;)-&amp;gt;select(&apos;count(e)&apos;)-&amp;gt;getQuery();
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $query-&amp;gt;getSingleScalarResult();
    }
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;as I am new to Doctrine I don&apos;t know if this is a good solution, if it is not, could you add a count method to the repository ?&lt;/p&gt;

&lt;p&gt;Thank you very much.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Benjamin.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14549">DDC-2318</key>
            <summary>Count all element</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="xzan">Benjamin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 25 Feb 2013 15:21:19 +0000</created>
                <updated>Mon, 25 Feb 2013 15:27:04 +0000</updated>
                    <resolved>Mon, 25 Feb 2013 15:27:04 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19684" author="ocramius" created="Mon, 25 Feb 2013 15:26:53 +0000"  >&lt;p&gt;Heya!&lt;/p&gt;

&lt;p&gt;First of all, consider that this is an issue tracker, not a Q&amp;amp;A platform (use StackOverflow, the mailing list or IRC for that). &lt;/p&gt;

&lt;p&gt;Anyway, the use case seems reasonable to me, but consider that Doctrine comes with a powerful paginator ( &lt;a href=&quot;http://docs.doctrine-project.org/en/latest/tutorials/pagination.html&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/en/latest/tutorials/pagination.html&lt;/a&gt; )&lt;/p&gt;

&lt;p&gt;I don&apos;t think this logic fits repositories by default.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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


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

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

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

&lt;p&gt;Finally, i tried to comment the test &lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;em-&amp;gt;contains($entity)))&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; in EntityChoiceList::getIdentifierValues() and everything seemed to work properly.&lt;/p&gt;</description>
                <environment>php 5.4.11, MySQL 5.5, ubuntu 12.10</environment>
            <key id="14548">DDC-2317</key>
            <summary>[UnitOfWork] Entity in identityMap but not present in entityIdentifiers</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="rpiotaix">R&#233;mi Piotaix</reporter>
                        <labels>
                        <label>orm</label>
                        <label>unitofwork</label>
                    </labels>
                <created>Sun, 24 Feb 2013 19:57:11 +0000</created>
                <updated>Tue, 26 Feb 2013 08:35:23 +0000</updated>
                    <resolved>Tue, 26 Feb 2013 08:35:23 +0000</resolved>
                            <version>2.3.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19680" author="ocramius" created="Sun, 24 Feb 2013 20:18:47 +0000"  >&lt;p&gt;Can you please reproduce this in an insulated environment (without symfony forms involved)?&lt;/p&gt;</comment>
                    <comment id="19681" author="rpiotaix" created="Sun, 24 Feb 2013 21:02:10 +0000"  >&lt;p&gt;By doing this, all work properly, the exception is not thrown:&lt;/p&gt;


&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;$competence = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getRepo(\Sistearth\JeuBundle\Entity\Competence\Competence::REPO)-&amp;gt;find(1);
$buff = $competence-&amp;gt;getActions()[0]-&amp;gt;getBuff();
      
$em = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getDoctrine()-&amp;gt;getEntityManager();
        
&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(!$em-&amp;gt;contains($buff))
    &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Exception(&lt;span class=&quot;code-quote&quot;&gt;&quot;Not in EntityManager&quot;&lt;/span&gt;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;but if i add this after:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;$form = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;createForm(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Sistearth\JeuBundle\Form\Competence\CompetenceType(), $competence);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

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

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


&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;php composer.phar require doctrine/orm:dev-master@dev&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="19683" author="rpiotaix" created="Sun, 24 Feb 2013 22:22:10 +0000"  >&lt;p&gt;Bug found!&lt;/p&gt;

&lt;p&gt;In the form type CompetenceActionBuffType, i marked the field buff with &lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;array(&apos;by_reference&quot;=&amp;gt;&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;. If by_reference is set to false, the modelData is cloned (here the Buff proxy) at line 349 in Form.php.&lt;br/&gt;
And, by cloning the object, the spl_object_hash of the clone is different from the original one&apos;s.&lt;/p&gt;

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

<item>
            <title>[DDC-2316] [GH-588] ClassMetadataInfo: use reflection for creating new instance (on PHP &gt;=5.4)</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2316</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 Majkl578:&lt;/p&gt;

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

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

&lt;p&gt;On PHP &amp;gt;=5.4, use proper way for instantiating classes without invoking constructor.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14545">DDC-2316</key>
            <summary>[GH-588] ClassMetadataInfo: use reflection for creating new instance (on PHP &gt;=5.4)</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>Sat, 23 Feb 2013 18:04:25 +0000</created>
                <updated>Sat, 4 May 2013 12:12:14 +0000</updated>
                                                    <fixVersion>3.0</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20209" author="beberlei" created="Sat, 4 May 2013 12:12:14 +0000"  >&lt;p&gt;Scheduling this for 3.0, when we move to php 5.4 or higher requirement&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2315] [GH-587] Fixed the license and the added version for NewObjectExpression</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2315</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 stof:&lt;/p&gt;

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

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

&lt;p&gt;this feature is new in 2.4, not 2.3&lt;/p&gt;</description>
                <environment></environment>
            <key id="14544">DDC-2315</key>
            <summary>[GH-587] Fixed the license and the added version for NewObjectExpression</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 Feb 2013 16:57:35 +0000</created>
                <updated>Fri, 22 Feb 2013 17:35:01 +0000</updated>
                    <resolved>Fri, 22 Feb 2013 17:35:01 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19673" author="beberlei" created="Fri, 22 Feb 2013 17:10:42 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-587&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/587&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/587&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2314] getResults with numeric indexes for fields</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2314</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When executing a simple query with field names in SELECT clause, it is not possible to map field to numeric indexes.&lt;/p&gt;

&lt;p&gt;This is an example that i would imagine to be useful:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;SELECT c.id AS 0, c.name AS 1, l.text AS 2 FROM Category c LEFT JOIN c.label l&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Thus, the resulting results could be numeric indexed array. It is useful for many situations: when working with an API which expects such arrays, or when using &lt;tt&gt;list&lt;/tt&gt; to assign result fields to variables directly.&lt;/p&gt;

&lt;p&gt;Query::HYDRATE_SCALAR does not achieve this, as one could think at first glance.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14543">DDC-2314</key>
            <summary>getResults with numeric indexes for fields</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="ninjds">Ninj</reporter>
                        <labels>
                    </labels>
                <created>Fri, 22 Feb 2013 13:27:27 +0000</created>
                <updated>Tue, 26 Feb 2013 08:36:04 +0000</updated>
                                                                    <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</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-2310] Recent changes to DBAL SQL Server platform lock hinting breaks ORM SqlWalker in DQL queries with joins</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2310</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The SQL Server platform throws an error when you try to run DQL with JOIN statements.&lt;/p&gt;

&lt;p&gt;The breaking change was in the DBAL SQL Server platform &amp;#8211; it was changed to add a &apos; WITH (NOLOCK)&apos; to the appendLockHint function. Change was in &lt;a href=&quot;https://github.com/doctrine/dbal/commit/6af7845cc3779176ec7e111200fe69654179eaf8#L0R851&quot; class=&quot;external-link&quot;&gt;this rev&lt;/a&gt;. The change in DBAL is not wrong, it just highlighted the bug in the ORM...&lt;/p&gt;


&lt;p&gt;The ORM SqlWalker runs the appendLockHint function against a generated FROM / JOIN clause in the walkFromClause func &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/1bcda5147a890a8f419eb333df69852bd4f6b307/lib/Doctrine/ORM/Query/SqlWalker.php#L777&quot; class=&quot;external-link&quot;&gt;here&lt;/a&gt;. This is actually the wrong place to append lock hints. This is generating the FROM clause 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; FROM foo f0_ LEFT JOIN foo_bar f1_ ON f0_.id = f1_.foo_id LEFT JOIN bar b2_ ON f1_.bar_id = b2_.id WITH (NOLOCK)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;When it should actually generate something 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; FROM foo f0_ WITH (NOLOCK) LEFT JOIN foo_bar f1_ WITH (NOLOCK) ON f0_.id = f1_.foo_id LEFT JOIN bar b2_ WITH (NOLOCK) ON f1_.bar_id = b2_.id&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; It should append lock hints after the table alias.&lt;/p&gt;

&lt;p&gt;I think the only reason this hasn&apos;t shown up before is that the other lock hint types haven&apos;t been applied in this way before, if at all.&lt;/p&gt;</description>
                <environment>SQL Server</environment>
            <key id="14513">DDC-2310</key>
            <summary>Recent changes to DBAL SQL Server platform lock hinting breaks ORM SqlWalker in DQL queries with joins</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="wschalle">William Schaller</reporter>
                        <labels>
                        <label>dbal</label>
                        <label>lockhints</label>
                        <label>orm</label>
                        <label>sqlserver</label>
                        <label>sqlsrv</label>
                    </labels>
                <created>Thu, 21 Feb 2013 17:46:19 +0000</created>
                <updated>Thu, 21 Feb 2013 19:51:37 +0000</updated>
                    <resolved>Thu, 21 Feb 2013 18:04:07 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19583" author="stof" created="Thu, 21 Feb 2013 19:38:07 +0000"  >&lt;p&gt;I think the line appending the lock should be moved to &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/1bcda5147a890a8f419eb333df69852bd4f6b307/lib/Doctrine/ORM/Query/SqlWalker.php#L796&quot; class=&quot;external-link&quot;&gt;this place&lt;/a&gt; to achieve the result displayed above.&lt;/p&gt;

&lt;p&gt;But it may cause issues with some other vendor.&lt;/p&gt;</comment>
                    <comment id="19584" author="wschalle" created="Thu, 21 Feb 2013 19:51:26 +0000"  >&lt;p&gt;@Christophe I considered that too. None of the other platforms implement the appendLockHint function. None of the other platforms implement this because it is handled differently on other platforms &amp;#8211; with transaction isolation levels and such.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2309] Invalid behaviour to flush only one entity</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2309</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Current implementation of $em-&amp;gt;flush($entity):&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;does not flush entity scheduled for delete&lt;/li&gt;
	&lt;li&gt;flush all entities scheduled for insert&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-720&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-720&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14512">DDC-2309</key>
            <summary>Invalid behaviour to flush only one 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="3">Duplicate</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="hason">Martin Haso&#328;</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Feb 2013 15:58:25 +0000</created>
                <updated>Wed, 1 May 2013 17:23:01 +0000</updated>
                    <resolved>Wed, 1 May 2013 17:22:50 +0000</resolved>
                            <version>2.2</version>
                <version>2.3</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19857" author="beberlei" created="Thu, 14 Mar 2013 21:57:13 +0000"  >&lt;p&gt;The second point is documented, the first point i don&apos;t understand, can you elaborate?&lt;/p&gt;</comment>
                    <comment id="20165" author="beberlei" created="Wed, 1 May 2013 17:22:50 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2267&quot; title=&quot;EntityManager throws an exception when trying to flush($entity) on a deleted entity&quot;&gt;&lt;del&gt;DDC-2267&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                <outwardlinks description="duplicates">
                            <issuelink>
            <issuekey id="14437">DDC-2267</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2308] Naming Strategy for Reverse Engeneering</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2308</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Unfortunately DatabaseDriver::getClassNameForTable() is declared as private method, which makes it quite difficult to change the naming strategy for reverse engeneering.&lt;/p&gt;

&lt;p&gt;IMO this sould be declared protected. An even better way would be to extend the interface of the Naming Strategy objects to support the reverse direction:&lt;/p&gt;

&lt;p&gt;classToTableName -&amp;gt; tableToClassName&lt;br/&gt;
propertyToColumnName -&amp;gt; columnToPropertyName.&lt;/p&gt;

&lt;p&gt;This way we would have a consistent name-mapping&lt;/p&gt;
</description>
                <environment></environment>
            <key id="14511">DDC-2308</key>
            <summary>Naming Strategy for Reverse Engeneering</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="ancpru">Andreas Prucha</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Feb 2013 14:49:27 +0000</created>
                <updated>Thu, 21 Feb 2013 14:49:27 +0000</updated>
                                                                    <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2307] Fields not wrapped in back ticks when removing entity.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2307</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Field definition:&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;
/** @Id @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`key`&quot;&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $_key;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When removing entity mysql.log shows 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;
36 Query     START TRANSACTION
                   36 Query     DELETE FROM `settings` WHERE section = &apos;Test123&apos; AND key = &apos;test12312&apos;
                   36 Query     rollback
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It seems that on a remove statement the field names aren&apos;t being wrapped in back ticks.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14507">DDC-2307</key>
            <summary>Fields not wrapped in back ticks when removing 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="5">Cannot Reproduce</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="amamut">Alex Mamut</reporter>
                        <labels>
                    </labels>
                <created>Wed, 20 Feb 2013 13:05:37 +0000</created>
                <updated>Wed, 1 May 2013 12:44:35 +0000</updated>
                    <resolved>Wed, 1 May 2013 12:44:35 +0000</resolved>
                                                            <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19859" author="beberlei" created="Thu, 14 Mar 2013 22:27:31 +0000"  >&lt;p&gt;Which version are you using? This has been fixed at some point&lt;/p&gt;</comment>
                    <comment id="20153" author="beberlei" created="Wed, 1 May 2013 12:44:35 +0000"  >&lt;p&gt;Closing because of no feedback&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-2305] [GH-584] QueryBuilder::addCriteria improvements</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2305</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 chEbba:&lt;/p&gt;

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

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

&lt;p&gt;1. Fix problem with different comparisons on the same field in QueryExpressonVisitor (now index value is added).&lt;br/&gt;
2. Add criteria field aliasing. Usually oject criteria has &quot;filed = value&quot; notation while DQL has &quot;alias.field = value&quot;.&lt;br/&gt;
First level fields are added with alias, second+ level fields (object.field, parent.object.field) are truncated to the second level (object.field) without alias. Alias map can be implemented in future.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14499">DDC-2305</key>
            <summary>[GH-584] QueryBuilder::addCriteria improvements</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>Tue, 19 Feb 2013 17:59:48 +0000</created>
                <updated>Tue, 19 Feb 2013 18:00:03 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19569" author="beberlei" created="Tue, 19 Feb 2013 18:00:03 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-584&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/584&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/584&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </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-2303] @param wrong in Doctrine\ORM\PersistentCollection::__constructor Edit</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2303</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When  i try to generate a new PersistentCollection like this: &lt;br/&gt;
###############################################&lt;br/&gt;
     $collection = new ArrayCollection();&lt;br/&gt;
     new \Doctrine\ORM\PersistentCollection(&lt;br/&gt;
				$this-&amp;gt;getEntityManager(),&lt;br/&gt;
				new ClassMetadata(&apos;&apos;),&lt;br/&gt;
				 $collection&lt;br/&gt;
			);&lt;br/&gt;
###############################################&lt;br/&gt;
i get an typ hinting error like &lt;br/&gt;
&lt;b&gt;&quot;Expected array, got &quot;Doctrine\Common\Collections\ArrayCollection&quot;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;This could be fixed by changing the type hinting for the Doctrine\ORM\PersistentCollection::__constructor  &lt;br/&gt;
_&lt;em&gt;From:&lt;/em&gt;_&lt;br/&gt;
###############################################&lt;br/&gt;
     /**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Creates a new persistent collection.&lt;br/&gt;
     *&lt;/li&gt;
	&lt;li&gt;@param EntityManager $em    The EntityManager the collection will be associated with.&lt;/li&gt;
	&lt;li&gt;@param ClassMetadata $class The class descriptor of the entity type of this collection.&lt;/li&gt;
	&lt;li&gt;@param array       $coll  The collection elements.&lt;br/&gt;
     */&lt;br/&gt;
    public function __construct(EntityManager $em, $class, $coll)&lt;br/&gt;
    {
	&lt;ol&gt;
		&lt;li&gt;
		&lt;ol&gt;
			&lt;li&gt;
			&lt;ol&gt;
				&lt;li&gt;
				&lt;ol&gt;
					&lt;li&gt;
					&lt;ol&gt;
						&lt;li&gt;
						&lt;ol&gt;
							&lt;li&gt;
							&lt;ol&gt;
								&lt;li&gt;
								&lt;ol&gt;
									&lt;li&gt;
									&lt;ol&gt;
										&lt;li&gt;
										&lt;ol&gt;
											&lt;li&gt;
											&lt;ol&gt;
												&lt;li&gt;
												&lt;ol&gt;
													&lt;li&gt;
													&lt;ol&gt;
														&lt;li&gt;
														&lt;ol&gt;
															&lt;li&gt;
															&lt;ol&gt;
																&lt;li&gt;
																&lt;ol&gt;
																	&lt;li&gt;
																	&lt;ol&gt;
																		&lt;li&gt;
																		&lt;ol&gt;
																			&lt;li&gt;
																			&lt;ol&gt;
																				&lt;li&gt;
																				&lt;ol&gt;
																					&lt;li&gt;
																					&lt;ol&gt;
																						&lt;li&gt;
																						&lt;ol&gt;
																							&lt;li&gt;
																							&lt;ol&gt;
																								&lt;li&gt;
																								&lt;ol&gt;
																									&lt;li&gt;
																									&lt;ol&gt;
																										&lt;li&gt;
																										&lt;ol&gt;
																											&lt;li&gt;
																											&lt;ol&gt;
																												&lt;li&gt;
																												&lt;ol&gt;
																													&lt;li&gt;
																													&lt;ol&gt;
																														&lt;li&gt;
																														&lt;ol&gt;
																															&lt;li&gt;
																															&lt;ol&gt;
																																&lt;li&gt;
																																&lt;ol&gt;
																																	&lt;li&gt;
																																	&lt;ol&gt;
																																		&lt;li&gt;
																																		&lt;ol&gt;
																																			&lt;li&gt;
																																			&lt;ol&gt;
																																				&lt;li&gt;
																																				&lt;ol&gt;
																																					&lt;li&gt;
																																					&lt;ol&gt;
																																						&lt;li&gt;
																																						&lt;ol&gt;
																																							&lt;li&gt;
																																							&lt;ol&gt;
																																								&lt;li&gt;
																																								&lt;ol&gt;
																																									&lt;li&gt;
																																									&lt;ol&gt;
																																										&lt;li&gt;
																																										&lt;ol&gt;
																																											&lt;li&gt;
																																											&lt;ol&gt;
																																												&lt;li&gt;
																																												&lt;ol&gt;
																																													&lt;li&gt;
																																													&lt;ol&gt;
																																														&lt;li&gt;
																																														&lt;ol&gt;
																																															&lt;li&gt;&lt;p&gt;_&lt;em&gt;To:&lt;/em&gt;_&lt;br/&gt;
###############################################&lt;br/&gt;
     /**&lt;/p&gt;&lt;/li&gt;
																																														&lt;/ol&gt;
																																														&lt;/li&gt;
																																													&lt;/ol&gt;
																																													&lt;/li&gt;
																																												&lt;/ol&gt;
																																												&lt;/li&gt;
																																											&lt;/ol&gt;
																																											&lt;/li&gt;
																																										&lt;/ol&gt;
																																										&lt;/li&gt;
																																									&lt;/ol&gt;
																																									&lt;/li&gt;
																																								&lt;/ol&gt;
																																								&lt;/li&gt;
																																							&lt;/ol&gt;
																																							&lt;/li&gt;
																																						&lt;/ol&gt;
																																						&lt;/li&gt;
																																					&lt;/ol&gt;
																																					&lt;/li&gt;
																																				&lt;/ol&gt;
																																				&lt;/li&gt;
																																			&lt;/ol&gt;
																																			&lt;/li&gt;
																																		&lt;/ol&gt;
																																		&lt;/li&gt;
																																	&lt;/ol&gt;
																																	&lt;/li&gt;
																																&lt;/ol&gt;
																																&lt;/li&gt;
																															&lt;/ol&gt;
																															&lt;/li&gt;
																														&lt;/ol&gt;
																														&lt;/li&gt;
																													&lt;/ol&gt;
																													&lt;/li&gt;
																												&lt;/ol&gt;
																												&lt;/li&gt;
																											&lt;/ol&gt;
																											&lt;/li&gt;
																										&lt;/ol&gt;
																										&lt;/li&gt;
																									&lt;/ol&gt;
																									&lt;/li&gt;
																								&lt;/ol&gt;
																								&lt;/li&gt;
																							&lt;/ol&gt;
																							&lt;/li&gt;
																						&lt;/ol&gt;
																						&lt;/li&gt;
																					&lt;/ol&gt;
																					&lt;/li&gt;
																				&lt;/ol&gt;
																				&lt;/li&gt;
																			&lt;/ol&gt;
																			&lt;/li&gt;
																		&lt;/ol&gt;
																		&lt;/li&gt;
																	&lt;/ol&gt;
																	&lt;/li&gt;
																&lt;/ol&gt;
																&lt;/li&gt;
															&lt;/ol&gt;
															&lt;/li&gt;
														&lt;/ol&gt;
														&lt;/li&gt;
													&lt;/ol&gt;
													&lt;/li&gt;
												&lt;/ol&gt;
												&lt;/li&gt;
											&lt;/ol&gt;
											&lt;/li&gt;
										&lt;/ol&gt;
										&lt;/li&gt;
									&lt;/ol&gt;
									&lt;/li&gt;
								&lt;/ol&gt;
								&lt;/li&gt;
							&lt;/ol&gt;
							&lt;/li&gt;
						&lt;/ol&gt;
						&lt;/li&gt;
					&lt;/ol&gt;
					&lt;/li&gt;
				&lt;/ol&gt;
				&lt;/li&gt;
			&lt;/ol&gt;
			&lt;/li&gt;
		&lt;/ol&gt;
		&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
	&lt;li&gt;Creates a new persistent collection.&lt;br/&gt;
     *&lt;/li&gt;
	&lt;li&gt;@param EntityManager $em    The EntityManager the collection will be associated with.&lt;/li&gt;
	&lt;li&gt;@param ClassMetadata $class The class descriptor of the entity type of this collection.&lt;/li&gt;
	&lt;li&gt;@param \ArrayAccess $coll  The collection elements.&lt;br/&gt;
     */&lt;br/&gt;
    public function __construct(EntityManager $em, $class, $coll)&lt;br/&gt;
    {&lt;br/&gt;
###############################################&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="14494">DDC-2303</key>
            <summary>@param wrong in Doctrine\ORM\PersistentCollection::__constructor 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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="datkind">Torsten Granek</reporter>
                        <labels>
                        <label>collection</label>
                    </labels>
                <created>Mon, 18 Feb 2013 15:27:10 +0000</created>
                <updated>Tue, 26 Feb 2013 08:47:07 +0000</updated>
                    <resolved>Tue, 26 Feb 2013 08:47:07 +0000</resolved>
                                                            <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19559" author="datkind" created="Mon, 18 Feb 2013 15:30:28 +0000"  >&lt;p&gt; When  i try to generate a new PersistentCollection 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;

     $collection = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; ArrayCollection();
     &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\ORM\PersistentCollection(
				$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getEntityManager(),
				&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; ClassMetadata(&apos;&apos;),
				 $collection
			);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I get an typ hinting error like &lt;br/&gt;
&lt;b&gt;&quot;Expected array, got &quot;Doctrine\Common\Collections\ArrayCollection&quot;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;This could be fixed by changing the type hinting for the Doctrine\ORM\PersistentCollection::__constructor  &lt;br/&gt;
_&lt;em&gt;From:&lt;/em&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;
     /**
     * Creates a &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; persistent collection.
     *
     * @param EntityManager $em    The EntityManager the collection will be associated with.
     * @param ClassMetadata $class The class descriptor of the entity type of &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; collection.
     * @param array       $coll  The collection elements.
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct(EntityManager $em, $class, $coll)
    {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;_&lt;em&gt;To:&lt;/em&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;
     /**
     * Creates a &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; persistent collection.
     *
     * @param EntityManager $em    The EntityManager the collection will be associated with.
     * @param ClassMetadata $class The class descriptor of the entity type of &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; collection.
     * @param \ArrayAccess $coll  The collection elements.
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct(EntityManager $em, $class, $coll)
    {

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="19564" author="stof" created="Mon, 18 Feb 2013 22:34:49 +0000"  >&lt;p&gt;There is no typehint in the PersistentCollection constructor. So the issue cannot come from this place (the phpdoc is wrong btw, it expects a Collection, not an array)&lt;/p&gt;

&lt;p&gt;Please give the full error, i.e. the message &lt;b&gt;and the location&lt;/b&gt; so that we can know where it happens.&lt;/p&gt;</comment>
                    <comment id="19570" author="datkind" created="Wed, 20 Feb 2013 07:53:14 +0000"  >&lt;p&gt;There error is not in the function declaration, it is in the @param in the doc block of the constructor.&lt;/p&gt;

&lt;p&gt;Using PHPStorm as IDE i got this error thrown by the IDE it self, not php. (Screenshot will be attached)&lt;/p&gt;

&lt;p&gt;Using ZF2 the error is on line 121 at:&lt;br/&gt;
vendor/doctrine/orm/lib/Doctrine/ORM/PersistentCollection.php &lt;/p&gt;</comment>
                    <comment id="19571" author="datkind" created="Wed, 20 Feb 2013 07:54:35 +0000"  >&lt;p&gt;Using PHPStorm as IDE i got &quot;Expected array, got &quot;Doctrine\Common\Collections\ArrayCollection&quot; thrown by the IDE it self, not php.&lt;/p&gt;</comment>
                    <comment id="19572" author="datkind" created="Wed, 20 Feb 2013 07:56:41 +0000"  >&lt;p&gt;Using PHPStorm as IDE i got &quot;Expected array, got &quot;Doctrine\Common\Collections\ArrayCollection&quot; thrown by the IDE it self, not php.&lt;/p&gt;</comment>
                    <comment id="19689" author="ocramius" created="Tue, 26 Feb 2013 08:47:07 +0000"  >&lt;p&gt;The correct type hint here is `Doctrine\Common\Collections\Collection`.&lt;/p&gt;

&lt;p&gt;I&apos;m closing this as invalid, since you shouldn&apos;t instantiate a persistent collection on your own. Consider opening a pull request at &lt;a href=&quot;https://github.com/doctrine/doctrine2&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2&lt;/a&gt; instead if you want to fix the typehint.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11381" name="screenshot-1.jpg" size="22940" author="datkind" created="Wed, 20 Feb 2013 07:56:41 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2302] entity not updating with existing \Datetime object</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2302</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Within an entity i have an method to add days to a subscription. For that an datetime object is modified.&lt;/p&gt;

&lt;p&gt;But the database is not going to be updated if an already existing datetime-object is modified an set. It&apos;s only working when an freshly created datetime object is used.&lt;/p&gt;

&lt;p&gt;NOT WORKING 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;
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function addDaysToSubscription($days) {

        &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;hasValidSubscription()) {

            $startFromDate = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getSubscriptionValidUntil();
        }
        &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {

            $startFromDate = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \DateTime(&apos;now&apos;);
        }

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;setSubscriptionValidUntil($startFromDate-&amp;gt;modify(&apos;+&apos; . $days .&apos; days&apos;));
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;WORKAROUND:&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 addDaysToSubscription($days) {

        &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;hasValidSubscription()) {

            $validDate = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getSubscriptionValidUntil()-&amp;gt;format(&apos;Y-m-d H:i:s&apos;);
            $startFromDate = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \DateTime($validDate);
        }
        &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {

            $startFromDate = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \DateTime(&apos;now&apos;);
        }

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;setSubscriptionValidUntil($startFromDate-&amp;gt;modify(&apos;+&apos; . $days .&apos; days&apos;));
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>ubuntu 12.04&lt;br/&gt;
PHP 5.3.10&lt;br/&gt;
PostgreSQL 8.4&lt;br/&gt;
Symfony 2.0.15</environment>
            <key id="14489">DDC-2302</key>
            <summary>entity not updating with existing \Datetime object</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="stijink">Stephan Tijink</reporter>
                        <labels>
                    </labels>
                <created>Sun, 17 Feb 2013 14:13:57 +0000</created>
                <updated>Sun, 17 Feb 2013 16:20:49 +0000</updated>
                    <resolved>Sun, 17 Feb 2013 15:37:20 +0000</resolved>
                            <version>2.1.7</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19551" author="beberlei" created="Sun, 17 Feb 2013 15:37:20 +0000"  >&lt;p&gt;From the documentation (Mapping Objects):&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;
DateTime and &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt; types are compared by reference, not by value. Doctrine updates &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; values &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; the reference changes and therefore behaves as &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; these objects are immutable value objects.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;You have to replace them with a new instance.&lt;/p&gt;</comment>
                    <comment id="19552" author="stijink" created="Sun, 17 Feb 2013 15:46:17 +0000"  >&lt;p&gt;Whats the reason for this behaviour ? For me it seem not very intuitive and cost me a couple of hours of project time &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="19553" author="ocramius" created="Sun, 17 Feb 2013 15:56:00 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=stijink&quot; class=&quot;user-hover&quot; rel=&quot;stijink&quot;&gt;Stephan Tijink&lt;/a&gt; there is no real &quot;global&quot; way of comparing objects in PHP. The only way would be to use a non-strict comparison (aka `==` vs `===`), and that leads to many unexpected problems.&lt;/p&gt;

&lt;p&gt;Since `DateTime` instances are objects like any other, the comparison is applied with `===`. &lt;/p&gt;

&lt;p&gt;This the safest way to handle this is to work with it as if it was an immutable:&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 setCreationTime(\DateTime $dateTime)
{
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;creationTime = clone $dateTime;
}

&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getCreationTime(\DateTime $dateTime)
{
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; clone $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;creationTime;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This basically disallows a lot of unexpected behaviors, even when not working with the ORM.&lt;/p&gt;</comment>
                    <comment id="19554" author="beberlei" created="Sun, 17 Feb 2013 16:20:46 +0000"  >&lt;p&gt;Also DateTime objects being mutable was a mistake in PHP, this is why 5.5 will have DateTimeImmutable, which we will switch to if possible in the future &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>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2301] Support inheritance in ResultSetMappingBuilder</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2301</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;ResultSetMappingBuilder does not support inherited fields. For example, calling &lt;tt&gt;ResultSetMappingBuilder::addRootEntityFromClassMetadata($class, $alias)&lt;/tt&gt; throws an exception to say this.&lt;/p&gt;

&lt;p&gt;I was wondering if there were any reasons as to why this would be difficult to implement? I haven&apos;t had an extensive look at Doctrine&apos;s source but it feels like this has been not implemented on purpose.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</description>
                <environment></environment>
            <key id="14488">DDC-2301</key>
            <summary>Support inheritance in ResultSetMappingBuilder</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="rmasters">Ross Masters</reporter>
                        <labels>
                        <label>nativesql</label>
                        <label>resultsetmapping</label>
                    </labels>
                <created>Sat, 16 Feb 2013 22:34:48 +0000</created>
                <updated>Sat, 16 Feb 2013 22:34:48 +0000</updated>
                                    <version>Git Master</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2300] Xmldriver does not convert the version field to boolean but keeps it as a SimpleXMLElement which breaks serialization</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2300</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Serialization breaks because the cache driver tries to serialize the ClassMetaData instance containing a simplexml element:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
Doctrine\ORM\Mapping\ClassMetadata &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;
(
    [fieldMappings] =&amp;gt; Array
        (
            [version] =&amp;gt; Array
                (
                    [fieldName] =&amp;gt; version
                    [type] =&amp;gt; integer
                    [columnName] =&amp;gt; version
                    [version] =&amp;gt; SimpleXMLElement &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;
                        (
                            [0] =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
                        )

                    [&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;] =&amp;gt; 1
                    [declared] =&amp;gt; path to entity
                )
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The fix is simple change in the columnToArray method in the XML driver class:&lt;/p&gt;

&lt;p&gt;changing:&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;
$mapping[&apos;version&apos;] = $fieldMapping[&apos;version&apos;];
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;to:&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;
$mapping[&apos;version&apos;] = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;evaluateBoolean($fieldMapping[&apos;version&apos;]);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14487">DDC-2300</key>
            <summary>Xmldriver does not convert the version field to boolean but keeps it as a SimpleXMLElement which breaks 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="jaco">Jaco Stienstra</reporter>
                        <labels>
                    </labels>
                <created>Sat, 16 Feb 2013 18:18:44 +0000</created>
                <updated>Thu, 14 Mar 2013 22:22:17 +0000</updated>
                    <resolved>Thu, 14 Mar 2013 22:22:17 +0000</resolved>
                            <version>2.3.2</version>
                                <fixVersion>2.3.3</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

</description>
                <environment></environment>
            <key id="14485">DDC-2299</key>
            <summary>[GH-582] Test for DDC-2106</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="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 16 Feb 2013 01:51:22 +0000</created>
                <updated>Tue, 26 Feb 2013 08:49:08 +0000</updated>
                    <resolved>Tue, 26 Feb 2013 08:49:08 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19690" author="ocramius" created="Tue, 26 Feb 2013 08:49:08 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2106&quot; title=&quot;Notice trying to match a Criteria referencing a managed entity not yet persisted&quot;&gt;&lt;del&gt;DDC-2106&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

&lt;p&gt;Removing submodules (my bad, wasn&apos;t done in #570 &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;/p&gt;</description>
                <environment></environment>
            <key id="14484">DDC-2298</key>
            <summary>[GH-581] Removing submodules</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>Fri, 15 Feb 2013 17:15:58 +0000</created>
                <updated>Fri, 15 Feb 2013 17:45:01 +0000</updated>
                    <resolved>Fri, 15 Feb 2013 17:45:00 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19545" author="beberlei" created="Fri, 15 Feb 2013 17:41:45 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-581&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/581&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/581&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19546" author="ocramius" created="Fri, 15 Feb 2013 17:45:01 +0000"  >&lt;p&gt;merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2297] Add ConstraintException for parent row</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2297</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Currently there is no constraint check for entities that depends another one.&lt;br/&gt;
I always check the dependencies using repository. Something 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;
$childRepository = $em-&amp;gt;getRepository(&apos;Child&apos;);
$parent = $em-&amp;gt;getReference(&apos;app:Parent&apos;, $id);
$children = $childRepository-&amp;gt;findBy(array(&apos;parent&apos; =&amp;gt; $parent));

&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($children) {
    &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Exception(&apos;You can not delete &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; record. There are records related&apos;);
}
        
$em-&amp;gt;remove($parent);
$em-&amp;gt;flush();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This exception could be thrown in $em-&amp;gt;flush(); or could look 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-none&quot;&gt; 
try {
    $parentEntity = $em-&amp;gt;gerReference(&apos;ParentEntity&apos;, $id);
    $em-&amp;gt;remove($parentEntity);
    $em-&amp;gt;flush();
catch (SomeORMNamespace\ConstraintException $e) {
    echo $e-&amp;gt;getMessage(); //outs: You cannot remove this entity. There is another one related.
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;I think this functionality could be implemented through metadata on any sides of the relationship or on the @Entity mapping.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
@Entity(children={&apos;Child&apos;}) &lt;span class=&quot;code-comment&quot;&gt;//&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; is not a good attr name =)
&lt;/span&gt;class Parent {}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I know that is more app business logic related, but is it possible to implement this feature in next releases?&lt;/p&gt;</description>
                <environment></environment>
            <key id="14483">DDC-2297</key>
            <summary>Add ConstraintException for parent row</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="2">Won&apos;t Fix</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="yourwebmaker">Daniel Lima</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Feb 2013 05:16:06 +0000</created>
                <updated>Fri, 15 Feb 2013 08:29:48 +0000</updated>
                    <resolved>Fri, 15 Feb 2013 08:29:47 +0000</resolved>
                                                            <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19543" author="beberlei" created="Fri, 15 Feb 2013 08:29:47 +0000"  >&lt;p&gt;This is responsiblity of the the application developer.&lt;/p&gt;

&lt;p&gt;You can implement this generically using parts of the API shown below:&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;
$metadata = $entityManager-&amp;gt;getClassMetadata(&lt;span class=&quot;code-quote&quot;&gt;&quot;ClassName&quot;&lt;/span&gt;);

foreach ($metadata-&amp;gt;associationMappings as $assoc) {
   &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($assoc[&apos;type&apos;] &amp;amp; ClassMetadata::TO_ONE) {
      
   }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2296] Naming Strategy ORM Entity - plural problem</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2296</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;We are using Doctringe since 2.2.2.&lt;/p&gt;

&lt;p&gt;We the follow relation:&lt;/p&gt;

&lt;p&gt;  manyToMany:&lt;br/&gt;
    categories:&lt;br/&gt;
       targetEntity: \Application\Model\Db\Entity\Category&lt;br/&gt;
       inversedBy: topics&lt;br/&gt;
       joinTable: &lt;br/&gt;
         name: finq_topic_category&lt;br/&gt;
         joinColumns:&lt;br/&gt;
           topic_id:&lt;br/&gt;
             referencedColumnName: id&lt;br/&gt;
         inverseJoinColumns:&lt;br/&gt;
           category_id:&lt;br/&gt;
             referencedColumnName: id&lt;/p&gt;


&lt;p&gt;As expected the generated methods in our entities were named like:&lt;/p&gt;

&lt;p&gt;addCategory()&lt;br/&gt;
getCategories()&lt;br/&gt;
...&lt;/p&gt;

&lt;p&gt;After we updated to 2.3.2 we got the follow method names:&lt;/p&gt;

&lt;p&gt;addCategorie()&lt;br/&gt;
getCateogires()&lt;/p&gt;

&lt;p&gt;I found in the changelog some notes like &quot;changed naming strategy&quot;.&lt;br/&gt;
Took us several hours too find out that we had to downgrade back to&lt;br/&gt;
2.2.2. Is this a bug or &quot;just&quot; a new behavior?&lt;/p&gt;</description>
                <environment></environment>
            <key id="14482">DDC-2296</key>
            <summary>Naming Strategy ORM Entity - plural problem</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="7">Can&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="keksnicoh">keks nicoh</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Feb 2013 12:26:52 +0000</created>
                <updated>Thu, 14 Mar 2013 22:25:08 +0000</updated>
                    <resolved>Thu, 14 Mar 2013 22:24:57 +0000</resolved>
                            <version>2.3.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19858" author="beberlei" created="Thu, 14 Mar 2013 22:25:08 +0000"  >&lt;p&gt;Its &quot;just&quot; a new behavior, sadly non BC. The EntityGenerator is really a mess in that regard, because its very hard to test as well. However all the methods are &quot;protected&quot;, so you should be able to extend it with your custom entity generator and fixing it.&lt;/p&gt;

&lt;p&gt;We are slowly deprecating the EntityGenerator, because this kind of problem and its huge monolithic structure makes it so hard to use and customize.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

&lt;p&gt;Hi guys. &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;After a look into some implementations I end up with the following solution for the second level cache..&lt;/p&gt;

&lt;p&gt;There is lot of work todo before merge it, but i&apos;d like to get your thoughts before i go any further on this approach.&lt;br/&gt;
I hope my drafts are good enough to explain the idea :&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;
		&lt;ol&gt;
			&lt;li&gt;Cache strategies&lt;/li&gt;
		&lt;/ol&gt;
		&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;ul&gt;
	&lt;li&gt;READ_ONLY (DEFAULT)   : ReadOnly cache can do reads, inserts and deletes, cannot perform updates or employ any locks.&lt;/li&gt;
	&lt;li&gt;NONSTRICT_READ_WRITE  : Nonstrict Read Write Cache doesn&#8217;t employ any locks but can do reads, inserts , updates and deletes.&lt;/li&gt;
	&lt;li&gt;NONSTRICT_READ_WRITE  : Read Write cache employs locks the entity before update/delete.&lt;/li&gt;
&lt;/ul&gt;



&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;
		&lt;ol&gt;
			&lt;li&gt;classes / interfaces&lt;/li&gt;
		&lt;/ol&gt;
		&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;ul&gt;
	&lt;li&gt;*&lt;b&gt;Region&lt;/b&gt;* :&lt;br/&gt;
    Defines a contract for accessing a entity/collection data cache. (Doesn&#8217;t employ any locks)&lt;/li&gt;
&lt;/ul&gt;



&lt;ul&gt;
	&lt;li&gt;*&lt;b&gt;ConcurrentRegion&lt;/b&gt;* :&lt;br/&gt;
    Defines contract for concurrently managed data region. (Locks the data before update/delete.)&lt;/li&gt;
&lt;/ul&gt;



&lt;ul&gt;
	&lt;li&gt;*&lt;b&gt;RegionAccess&lt;/b&gt;* :&lt;br/&gt;
    Defines a contract to access a cache region&lt;/li&gt;
&lt;/ul&gt;



&lt;ul&gt;
	&lt;li&gt;*&lt;b&gt;ConcurrentRegionAccess&lt;/b&gt;* :&lt;br/&gt;
    Defines contract for regions which hold concurrently managed data.&lt;/li&gt;
&lt;/ul&gt;



&lt;ul&gt;
	&lt;li&gt;*&lt;b&gt;CacheKey / EntityCacheKey / CollectionCacheKey/ QueryCacheKey&lt;/b&gt;*:&lt;br/&gt;
    Defines entity / collection key to be stored in the cache region.&lt;/li&gt;
&lt;/ul&gt;



&lt;ul&gt;
	&lt;li&gt;*&lt;b&gt;EntityEntryStructure / CollectionEntryStructure&lt;/b&gt;*&lt;br/&gt;
    Build cache entries and rebuild entities/colection from cache&lt;/li&gt;
&lt;/ul&gt;



&lt;ul&gt;
	&lt;li&gt;*&lt;b&gt;AccessProvider&lt;/b&gt;*&lt;br/&gt;
    Build RegionAccess based on entity / collection cache configuration&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Collection Caching&lt;/p&gt;




&lt;p&gt;The most common use case is to cache entities. But we can also cache relationships.&#160;&lt;br/&gt;
A &#8220;collection cache&#8221; caches the primary keys of entities that are members of a collection (OneToMany/ManyToMany).&#160;&lt;br/&gt;
and each element will be cached into its region.&lt;/p&gt;




&lt;p&gt;Only identifiers will be cached for collection. When a collection is read from the second level cache it will create proxies based on the cached identifiers, if the application needs to access an element, Doctrine will go to the cache to load the element data.&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;
		&lt;ol&gt;
			&lt;li&gt;OPERATIONS&lt;/li&gt;
		&lt;/ol&gt;
		&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;



&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;
		&lt;ol&gt;
			&lt;li&gt;
			&lt;ol&gt;
				&lt;li&gt;INSERT :&lt;/li&gt;
			&lt;/ol&gt;
			&lt;/li&gt;
		&lt;/ol&gt;
		&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;    *********************************************************************************************&lt;br/&gt;
    UnitOfWork#commit&lt;br/&gt;
        Connection#beginTransaction&lt;br/&gt;
        Persister#executeInserts&lt;br/&gt;
        Connection#commit&lt;br/&gt;
        Persister#afterTransactionComplete&lt;br/&gt;
            -&amp;gt; EntityRegionAccessStrategy#afterInsert&lt;br/&gt;
    *********************************************************************************************&lt;br/&gt;
    METHOD      | READ-ONLY             | NONSTRICT-READ-WRITE      | READ-WRITE                |&lt;br/&gt;
    ---------------------------------------------------------------------------------------------&lt;br/&gt;
    afterInsert | add item to the cache | add item to the cache     | add item to the cache     |&lt;br/&gt;
    ---------------------------------------------------------------------------------------------&lt;/p&gt;


&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;
		&lt;ol&gt;
			&lt;li&gt;
			&lt;ol&gt;
				&lt;li&gt;UPDATE :&lt;/li&gt;
			&lt;/ol&gt;
			&lt;/li&gt;
		&lt;/ol&gt;
		&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;    *********************************************************************************************&lt;br/&gt;
    UnitOfWork#commit&lt;br/&gt;
        Connection#beginTransaction&lt;br/&gt;
        Persister#update&lt;br/&gt;
            -&amp;gt; TransactionalRegionAccess#lockItem&lt;br/&gt;
            -&amp;gt; execute&lt;br/&gt;
        Connection#commit&lt;br/&gt;
        Persister#afterTransactionComplete&lt;br/&gt;
            -&amp;gt; RegionAccess#afterUpdate&lt;br/&gt;
            -&amp;gt; TransactionalRegionAccess#unlockItem&lt;br/&gt;
    *********************************************************************************************&lt;br/&gt;
    METHOD      | READ-ONLY             | NONSTRICT-READ-WRITE      | READ-WRITE                |&lt;br/&gt;
    ---------------------------------------------------------------------------------------------&lt;br/&gt;
    lockItem    |                       |                           | lock item                 |&lt;br/&gt;
    ---------------------------------------------------------------------------------------------&lt;br/&gt;
    afterUpdate | throws exception      | update item cache         | update item cache         |&lt;br/&gt;
    ---------------------------------------------------------------------------------------------&lt;br/&gt;
    unlockItem  |                       |                           | unlock item               |&lt;br/&gt;
    ---------------------------------------------------------------------------------------------&lt;/p&gt;


&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;
		&lt;ol&gt;
			&lt;li&gt;
			&lt;ol&gt;
				&lt;li&gt;DELETE :&lt;/li&gt;
			&lt;/ol&gt;
			&lt;/li&gt;
		&lt;/ol&gt;
		&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;    *********************************************************************************************&lt;br/&gt;
    UnitOfWork#commit&lt;br/&gt;
        Connection#beginTransaction&lt;br/&gt;
        Persister#delete&lt;br/&gt;
            -&amp;gt; TransactionalRegionAccess#lockItem&lt;br/&gt;
            -&amp;gt; execute&lt;br/&gt;
        Connection#commit&lt;br/&gt;
        Persister#afterTransactionComplete&lt;br/&gt;
            -&amp;gt; RegionAccess#evict&lt;br/&gt;
    *********************************************************************************************&lt;br/&gt;
    METHOD      | READ-ONLY             | NONSTRICT-READ-WRITE      | READ-WRITE                |&lt;br/&gt;
    ---------------------------------------------------------------------------------------------&lt;br/&gt;
    lockItem    |                       |                           | lock item                 |&lt;br/&gt;
    ---------------------------------------------------------------------------------------------&lt;br/&gt;
    evict       | remove item cache     | remove item cache         | remove item cache         |&lt;br/&gt;
    ---------------------------------------------------------------------------------------------&lt;/p&gt;


&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;
		&lt;ol&gt;
			&lt;li&gt;
			&lt;ol&gt;
				&lt;li&gt;USAGE :&lt;/li&gt;
			&lt;/ol&gt;
			&lt;/li&gt;
		&lt;/ol&gt;
		&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&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
&amp;lt;?php

/**
 * @Entity
 * @Cache(&lt;span class=&quot;code-quote&quot;&gt;&quot;NONSTRICT_READ_WRITE&quot;&lt;/span&gt;)
 */
class State
{
    /**
     * @Id
     * @GeneratedValue
     * @Column(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; $id;
    /**
     * @Column
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $name;
    /**
     * @Cache()
     * @ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Country&quot;&lt;/span&gt;)
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;country_id&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $country;
    /**
     * @Cache()
     * @OneToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;City&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;state&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $cities;
}
```

```php
&amp;lt;?php

$em-&amp;gt;persist(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; State($name, $country));
$em-&amp;gt;flush();                                &lt;span class=&quot;code-comment&quot;&gt;// Put into cache
&lt;/span&gt;
$em-&amp;gt;clear();                                &lt;span class=&quot;code-comment&quot;&gt;// Clear entity manager
&lt;/span&gt;
$state   = $em-&amp;gt;find(&apos;Entity\State&apos;, 1);     &lt;span class=&quot;code-comment&quot;&gt;// Retreive item from cache
&lt;/span&gt;$country = $state-&amp;gt;getCountry();             &lt;span class=&quot;code-comment&quot;&gt;// Retreive item from cache
&lt;/span&gt;$cities  = $state-&amp;gt;getCities();              &lt;span class=&quot;code-comment&quot;&gt;// Load from database and put into cache
&lt;/span&gt;
$state-&amp;gt;setName(&lt;span class=&quot;code-quote&quot;&gt;&quot;New Name&quot;&lt;/span&gt;);
$em-&amp;gt;persist($state);
$em-&amp;gt;flush();                                &lt;span class=&quot;code-comment&quot;&gt;// Update item cache
&lt;/span&gt;
$em-&amp;gt;clear();                                &lt;span class=&quot;code-comment&quot;&gt;// Clear entity manager
&lt;/span&gt;
$em-&amp;gt;find(&apos;Entity\State&apos;, 1)-&amp;gt;getCities();   &lt;span class=&quot;code-comment&quot;&gt;// Retreive from cache
&lt;/span&gt;

$em-&amp;gt;getCache()-&amp;gt;containsEntity(&apos;Entity\State&apos;, $state-&amp;gt;getId())  &lt;span class=&quot;code-comment&quot;&gt;// Check &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; the cache exists
&lt;/span&gt;$em-&amp;gt;getCache()-&amp;gt;evictEntity(&apos;Entity\State&apos;, $state-&amp;gt;getId());    &lt;span class=&quot;code-comment&quot;&gt;// Remove an entity from cache
&lt;/span&gt;$em-&amp;gt;getCache()-&amp;gt;evictEntityRegion(&apos;Entity\State&apos;);               &lt;span class=&quot;code-comment&quot;&gt;// Remove all entities from cache
&lt;/span&gt;
$em-&amp;gt;getCache()-&amp;gt;containsCollection(&apos;Entity\State&apos;, &apos;cities&apos;, $state-&amp;gt;getId());   &lt;span class=&quot;code-comment&quot;&gt;// Check &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; the cache exists        
&lt;/span&gt;$em-&amp;gt;getCache()-&amp;gt;evictCollection(&apos;Entity\State&apos;, &apos;cities&apos;, $state-&amp;gt;getId());      &lt;span class=&quot;code-comment&quot;&gt;// Remove an entity collection from cache
&lt;/span&gt;$em-&amp;gt;getCache()-&amp;gt;evictCollectionRegion(&apos;Entity\State&apos;, &apos;cities&apos;);                 &lt;span class=&quot;code-comment&quot;&gt;// Remove all collections from cache
&lt;/span&gt;
```
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;
		&lt;ol&gt;
			&lt;li&gt;
			&lt;ol&gt;
				&lt;li&gt;TODO :&lt;/li&gt;
			&lt;/ol&gt;
			&lt;/li&gt;
		&lt;/ol&gt;
		&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
	&lt;li&gt;handle many to many collection&lt;/li&gt;
	&lt;li&gt;handle inheritance&lt;/li&gt;
	&lt;li&gt;remove/add colection items on update&lt;/li&gt;
	&lt;li&gt;improve region tests&lt;/li&gt;
	&lt;li&gt;improve access strategy tests&lt;/li&gt;
	&lt;li&gt;implement xml / yml / php drivers&lt;/li&gt;
	&lt;li&gt;implement transaction region&lt;/li&gt;
	&lt;li&gt;implement transaction  access strategy&lt;/li&gt;
	&lt;li&gt;.... ????&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="14481">DDC-2295</key>
            <summary>[GH-580] Second cache level POC</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, 14 Feb 2013 01:01:12 +0000</created>
                <updated>Thu, 14 Mar 2013 21:36:42 +0000</updated>
                                                                            <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-2293] [GH-578] Fix for wrong return types in documentation.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2293</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/578&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/578&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Several methods were declaring erroneous / incomplete return types.&lt;br/&gt;
This PR fixes them.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14476">DDC-2293</key>
            <summary>[GH-578] Fix for wrong return types 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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Feb 2013 11:53:40 +0000</created>
                <updated>Tue, 12 Feb 2013 17:09:29 +0000</updated>
                    <resolved>Tue, 12 Feb 2013 17:09:29 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19536" author="beberlei" created="Tue, 12 Feb 2013 17:06:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-578&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/578&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/578&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2292] [GH-577] Allow extending EntityManager and use create method</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2292</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/577&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/577&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;If you create your own entityManager by extending this one, you can&apos;t use ::create method because&lt;br/&gt;
it will create an instance of the last one and not our new entityManager&lt;/p&gt;</description>
                <environment></environment>
            <key id="14475">DDC-2292</key>
            <summary>[GH-577] Allow extending EntityManager and use create method</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Feb 2013 15:46:28 +0000</created>
                <updated>Mon, 11 Feb 2013 15:48:43 +0000</updated>
                    <resolved>Mon, 11 Feb 2013 15:48:43 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19528" author="beberlei" created="Mon, 11 Feb 2013 15:48:27 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-577&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/577&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/577&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <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-2290] Infer custom Types from the field for query parameters</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2290</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When using a mapping Type that declares &lt;tt&gt;convertToDatabaseValue&lt;/tt&gt;, the method is not always called in queries.&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;
SELECT ... WHERE entity.field = ?1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;(with &lt;tt&gt;entity.field&lt;/tt&gt; being of custom type &apos;the_mapping_type&apos;)&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;Type::convertToDatabaseValue()&lt;/tt&gt; is correctly called when using:&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-&amp;gt;setParameter(&apos;1&apos;, &apos;foo&apos;, &apos;the_mapping_type&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But it is not called when using:&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-&amp;gt;setParameter(&apos;1&apos;, &apos;foo&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;which gives a query that returns invalid results.&lt;/p&gt;

&lt;p&gt;Like other mapping types in this situation, there is no reason the type is not inferred automatically from the field.&lt;/p&gt;

&lt;p&gt;I have written a failing test case in Doctrine\Tests\ORM\Functional\TypeValueSqlTest:&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 testQueryParameterWithoutType()
    {
        $entity = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; CustomTypeUpperCase();
        $entity-&amp;gt;lowerCaseString = &apos;foo&apos;;

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;persist($entity);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;flush();

        $id = $entity-&amp;gt;id;

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;clear();

        $query = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;createQuery(&apos;SELECT c.id from Doctrine\Tests\Models\CustomType\CustomTypeUpperCase c where c.lowerCaseString = ?1&apos;);
        $query-&amp;gt;setParameter(&apos;1&apos;, &apos;foo&apos;);

        $result = $query-&amp;gt;getResult();

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertCount(1, $result);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertEquals($id, $result[0][&apos;id&apos;]);
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14470">DDC-2290</key>
            <summary>Infer custom Types from the field for query parameters</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="mnapoli">Matthieu Napoli</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Feb 2013 11:36:49 +0000</created>
                <updated>Fri, 8 Feb 2013 12:54:06 +0000</updated>
                                                                            <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19494" author="mnapoli" created="Fri, 8 Feb 2013 11:38:48 +0000"  >&lt;p&gt;See also &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2224&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2224&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19495" author="mnapoli" created="Fri, 8 Feb 2013 12:54:06 +0000"  >&lt;p&gt;The test is in this branch: &lt;a href=&quot;https://github.com/myc-sense/doctrine2/tree/DDC-2290&quot; class=&quot;external-link&quot;&gt;https://github.com/myc-sense/doctrine2/tree/DDC-2290&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-2288] Schema Tool doesn&apos;t update collation on table level</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2288</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In Symfony2, when updating the collation option of a table, the schema tool doesn&apos;t recognize the change: &lt;/p&gt;

&lt;p&gt;Changing from:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt; 
* @ORM\Table()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;To:&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\Table(options={&lt;span class=&quot;code-quote&quot;&gt;&quot;collate&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;utf8_swedish_ci&quot;&lt;/span&gt;})
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;Results in:&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 app/console doctrine:schema:update --dump-sql
Nothing to update - your database is already in sync with the current entity metadata.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; </description>
                <environment></environment>
            <key id="14468">DDC-2288</key>
            <summary>Schema Tool doesn&apos;t update collation on table level</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="rickard">Rickard Andersson</reporter>
                        <labels>
                        <label>collation</label>
                        <label>schematool</label>
                    </labels>
                <created>Fri, 8 Feb 2013 09:50:30 +0000</created>
                <updated>Fri, 8 Feb 2013 09:50:30 +0000</updated>
                                                                    <component>Mapping Drivers</component>
                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2287] Getter/Setter: generate &quot;isEnabled()&quot; instead of &quot;getEnabled()&quot; for boolean field in entity classes</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2287</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;It would be better if doctrine generated &quot;isEnabled()&quot; instead of &quot;getEnabled()&quot; for boolean field in entity classes. Because, it is more meaningful.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14467">DDC-2287</key>
            <summary>Getter/Setter: generate &quot;isEnabled()&quot; instead of &quot;getEnabled()&quot; for boolean field in entity classes</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="sukhrob">Sukhrob Khakimov</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Feb 2013 09:36:14 +0000</created>
                <updated>Tue, 26 Feb 2013 08:50:40 +0000</updated>
                                                                    <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19486" author="ocramius" created="Fri, 8 Feb 2013 09:40:45 +0000"  >&lt;p&gt;Not sure this kind of check should be handled. Starting to add all this kind of rules makes me think that it is becoming a big ball of mud&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2286] Update documentation for collation</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2286</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The documentation at &lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/faq.html#how-do-i-set-the-charset-and-collation-for-mysql-tables&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/faq.html#how-do-i-set-the-charset-and-collation-for-mysql-tables&lt;/a&gt; clearly states that the collation should be set at database level and then inherited for all tables created. &lt;/p&gt;

&lt;p&gt;Digging through the code and reading this issue &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2139&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2139&lt;/a&gt; it&apos;s clear that this is no longer the case.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14466">DDC-2286</key>
            <summary>Update documentation for collation</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="rickard">Rickard Andersson</reporter>
                        <labels>
                        <label>collation</label>
                        <label>documentation</label>
                    </labels>
                <created>Fri, 8 Feb 2013 09:27:56 +0000</created>
                <updated>Fri, 8 Feb 2013 09:27:56 +0000</updated>
                                                                    <component>Documentation</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2285] Repeating the same query with different parameter value returns the same results</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2285</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;
$activeAdsCustomers = \Ez\Registry::getDoctrineEntityManager()
    -&amp;gt;createQuery( &lt;span class=&quot;code-quote&quot;&gt;&quot;SELECT c, a FROM \Spot101\Model\Ad\Customer c JOIN c.ads a WHERE a.status = :status&quot;&lt;/span&gt; )
    -&amp;gt;setParameter( &lt;span class=&quot;code-quote&quot;&gt;&quot;status&quot;&lt;/span&gt;, \Spot101\Model\Ad\Status::ACTIVE )
    -&amp;gt;getResult();

$inactiveAdsCustomers = \Ez\Registry::getDoctrineEntityManager()
    -&amp;gt;createQuery( &lt;span class=&quot;code-quote&quot;&gt;&quot;SELECT c, a FROM \Spot101\Model\Ad\Customer c JOIN c.ads a WHERE a.status = :status&quot;&lt;/span&gt; )
    -&amp;gt;setParameter( &lt;span class=&quot;code-quote&quot;&gt;&quot;status&quot;&lt;/span&gt;, \Spot101\Model\Ad\Status::INACTIVE )
    -&amp;gt;getResult();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Having the code above I am getting the same results for $inactiveAdsCustomers as I get for $activeAdsCustomers. And when I try hydrating the results everything works so fine.&lt;/p&gt;

&lt;p&gt;Both queries look the same except the value provided for the &quot;status&quot; parameter.&lt;/p&gt;</description>
                <environment>Ubuntu 12.10, Zend Server CE</environment>
            <key id="14465">DDC-2285</key>
            <summary>Repeating the same query with different parameter value returns the same results</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="mehdone">Mehdi Bakhtiari</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Feb 2013 04:38:32 +0000</created>
                <updated>Fri, 8 Feb 2013 08:26:18 +0000</updated>
                    <resolved>Fri, 8 Feb 2013 08:26:18 +0000</resolved>
                            <version>2.3.2</version>
                                                <component>DQL</component>
                <component>Mapping Drivers</component>
                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19485" author="ocramius" created="Fri, 8 Feb 2013 08:26:18 +0000"  >&lt;p&gt;You are hydrating joined and filtered resultsets. You should never do this, as this will hydrate an invalid association into your objects.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2284] [GH-573] [Documentation] Noted prePersist event only triggers on first persist</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2284</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 EvanK:&lt;/p&gt;

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

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

&lt;p&gt;While probably obvious to a core doctrine developer, a user of doctrine would not necessarily know this without doing some digging or &lt;span class=&quot;error&quot;&gt;&amp;#91;stack overflowing&amp;#93;&lt;/span&gt;(&lt;a href=&quot;http://stackoverflow.com/questions/7934555/doctrine-2-prepersist-doesnt-fire&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/7934555/doctrine-2-prepersist-doesnt-fire&lt;/a&gt;)&lt;/p&gt;</description>
                <environment></environment>
            <key id="14464">DDC-2284</key>
            <summary>[GH-573] [Documentation] Noted prePersist event only triggers on first persist</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Feb 2013 19:01:33 +0000</created>
                <updated>Fri, 8 Feb 2013 08:24:14 +0000</updated>
                    <resolved>Fri, 8 Feb 2013 08:24:13 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19484" author="beberlei" created="Fri, 8 Feb 2013 02:27:13 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-573&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/573&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/573&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2283] Paginator with orderBy in joined data retrieve bad result</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2283</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;entity A have many entity B&lt;/p&gt;

&lt;p&gt;If DQL is something like &quot;select A, B from A join B order by A.field1, B.field2&quot;&lt;br/&gt;
Then Paginator retrieve different Id by a query like : &lt;br/&gt;
&quot;select distinct a.id, a.field1, b.field2 from ( ....) order by a.field1 ASC , b.field2 ASC limit 15 offset 0&quot;&lt;/p&gt;


&lt;p&gt;so, if a entity A have 20 entity B (and these sub-entity have all a different b.field2) then there&apos;s only 1 A retrieved &lt;/p&gt;</description>
                <environment></environment>
            <key id="14463">DDC-2283</key>
            <summary>Paginator with orderBy in joined data retrieve bad result</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="sylfel">Jean-Philippe THEVENOUX</reporter>
                        <labels>
                        <label>paginator</label>
                    </labels>
                <created>Thu, 7 Feb 2013 15:33:45 +0000</created>
                <updated>Tue, 26 Feb 2013 08:52:40 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2282] [GH-572] Fixed SQLServer ORDER BY problem in paginator CountOutputWalker</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2282</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 norzechowicz:&lt;/p&gt;

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

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

&lt;p&gt;Code explains everything &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;</description>
                <environment></environment>
            <key id="14462">DDC-2282</key>
            <summary>[GH-572] Fixed SQLServer ORDER BY problem in paginator CountOutputWalker</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, 7 Feb 2013 13:46:40 +0000</created>
                <updated>Tue, 12 Mar 2013 18:06:53 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 18:06:53 +0000</resolved>
                                            <fixVersion>2.3.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2281] Validation against database-first generated xml requires that the column order within a composite primary key match the order the columns are in in mapping xml</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2281</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In using a database-first approach utilizing orm:convert-mapping to generate xml, the validation and schema-tool reports that my composite primary key (ex. Columns A, C, B) be dropped and added in the order in which the mapping appears in the xml (ex. Columns A, B, C).&lt;/p&gt;

&lt;p&gt;These columns are not auto-increment and are simply a mixture of int and varchar.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14460">DDC-2281</key>
            <summary>Validation against database-first generated xml requires that the column order within a composite primary key match the order the columns are in in mapping xml</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="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="mcaden">Aaron Moore</reporter>
                        <labels>
                    </labels>
                <created>Wed, 6 Feb 2013 18:26:47 +0000</created>
                <updated>Thu, 9 May 2013 16:30:08 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20253" author="beberlei" created="Thu, 9 May 2013 16:20:59 +0000"  >&lt;p&gt;Is the composite key a mix of association and field types?&lt;/p&gt;</comment>
                    <comment id="20254" author="mcaden" created="Thu, 9 May 2013 16:30:08 +0000"  >&lt;p&gt;I&apos;m trying to remember the usage as it was a short term project but I believe it is.&lt;/p&gt;

&lt;p&gt;For example a user has a userid.&lt;/p&gt;

&lt;p&gt;The table in question might have a primary key consisting of the userid and an int representing a year..&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2280] Database-first convert-mapping to XML fails to add length to varchar primary key in id tag</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2280</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In using orm:convert-mapping xml --from-database the xml that is generated for varchar columns does not receive a length attribute.&lt;/p&gt;

&lt;p&gt;Therefore - orm:validate-schema fails and the schema tool reports that the column must change to a varchar(255) when it should be just fine with the varchar that was already there (ex. varchar(10)).&lt;/p&gt;

&lt;p&gt;Note: I discovered this on composite keys - unsure whether this is for all or only composite.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14459">DDC-2280</key>
            <summary>Database-first convert-mapping to XML fails to add length to varchar primary key in id tag</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="mcaden">Aaron Moore</reporter>
                        <labels>
                    </labels>
                <created>Wed, 6 Feb 2013 18:21:21 +0000</created>
                <updated>Thu, 9 May 2013 16:17:23 +0000</updated>
                    <resolved>Thu, 9 May 2013 16:17:23 +0000</resolved>
                            <version>2.3.2</version>
                                <fixVersion>2.3.4</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20252" author="beberlei" created="Thu, 9 May 2013 16:17:23 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2279] [GH-571] Update lib/Doctrine/ORM/EntityRepository.php</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2279</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 flo-ITN:&lt;/p&gt;

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

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

&lt;p&gt;Add &quot;indexby&quot; missing parameter that permit an &quot;index by&quot; easily.&lt;/p&gt;

&lt;p&gt;Ex :&#65533;&#65533;&lt;br/&gt;
#Acme\AcmeBundle\Repository&lt;br/&gt;
#Before&lt;br/&gt;
public function findAllIndexById()&lt;/p&gt;
{
&#65533;&#65533; &#65533;&#65533; $qb = $this-&amp;gt;_em-&amp;gt;createQueryBuilder()
&#65533;&#65533; &#65533;&#65533; &#65533;&#65533; &#65533;&#65533; &#65533;&#65533; &#65533;&#65533; &#65533;&#65533; &#65533;&#65533; &#65533;&#65533; &#65533;&#65533; -&amp;gt;select(&apos;root&apos;)
&#65533;&#65533; &#65533;&#65533; &#65533;&#65533; &#65533;&#65533; &#65533;&#65533; &#65533;&#65533; &#65533;&#65533; &#65533;&#65533; &#65533;&#65533; &#65533;&#65533; -&amp;gt;from(&apos;Acme&apos;, &apos;root&apos;, &apos;root.id&apos;);
&#65533;&#65533; &#65533;&#65533; /*...*/
}

&lt;p&gt;#After&lt;br/&gt;
public function findAllIndexById()&lt;/p&gt;
{
&#65533;&#65533; &#65533;&#65533; $qb = $this-&amp;gt;createQueryBuilder(&apos;root&apos;,&apos;root.id&apos;);
&#65533;&#65533; &#65533;&#65533;&#65533;&#65533;/*...*/
}</description>
                <environment></environment>
            <key id="14458">DDC-2279</key>
            <summary>[GH-571] Update lib/Doctrine/ORM/EntityRepository.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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Feb 2013 13:18:43 +0000</created>
                <updated>Tue, 12 Mar 2013 19:04:52 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 19:04:52 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2278] Invalid arguments to PreFlushEventArgs class</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2278</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Here &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/UnitOfWork.php#L527&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/UnitOfWork.php#L527&lt;/a&gt; PreFlushEventArgs expects number of arguments to be 2 and the first argument have to be instance of entity manager. But two arguments are passed and the first one is not instanceof em.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14457">DDC-2278</key>
            <summary>Invalid arguments to PreFlushEventArgs class</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="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="thestanislav">Stanislav Anisimov</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Feb 2013 08:00:37 +0000</created>
                <updated>Tue, 5 Feb 2013 08:14:33 +0000</updated>
                    <resolved>Tue, 5 Feb 2013 08:14:33 +0000</resolved>
                            <version>2.3.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19471" author="ocramius" created="Tue, 5 Feb 2013 08:14:33 +0000"  >&lt;p&gt;Being handled in &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2276&quot; title=&quot;[GH-569] Hotfix/pre flush event args params&quot;&gt;&lt;del&gt;DDC-2276&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2277] [GH-570] Deprecation of PEAR/GIT/TAR autoloading</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2277</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/570&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/570&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Updates the test suite to use composer based autoloading&lt;/p&gt;</description>
                <environment></environment>
            <key id="14456">DDC-2277</key>
            <summary>[GH-570] Deprecation of PEAR/GIT/TAR autoloading</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 20:32:09 +0000</created>
                <updated>Thu, 14 Feb 2013 09:19:21 +0000</updated>
                    <resolved>Thu, 14 Feb 2013 09:19:21 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19539" author="beberlei" created="Thu, 14 Feb 2013 08:55:14 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-570&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/570&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/570&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19540" author="ocramius" created="Thu, 14 Feb 2013 09:19:21 +0000"  >&lt;p&gt;Merged&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-2275] [GH-568] Fixed plural variable names to singular when generating add or remove methods for entities</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2275</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/568&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/568&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Changed generateEntityStubMethod so that variable names in add or remove methods are singular too&lt;/p&gt;

&lt;p&gt;Edited tests for EntityGenerator so that variable names are checked too&lt;/p&gt;</description>
                <environment></environment>
            <key id="14454">DDC-2275</key>
            <summary>[GH-568] Fixed plural variable names to singular when generating add or remove methods for entities</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="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, 4 Feb 2013 01:47:46 +0000</created>
                <updated>Mon, 4 Feb 2013 01:47:46 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <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 20