<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed Jun 19 21:12:51 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+DDC+AND+fixVersion+%3D+%222.0.5%22+ORDER+BY+updated+DESC%2C+priority+DESC%2C+created+ASC&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+DDC+AND+fixVersion+%3D+%222.0.5%22+ORDER+BY+updated+DESC%2C+priority+DESC%2C+created+ASC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="15" total="15"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DDC-1136] Prevent backup files to be recognized as valid Entity files</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1136</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The Doctrine2 generator backup Entity files when it adds code into them. The files are named after the original file with a ~ prepended.&lt;/p&gt;

&lt;p&gt;The problem is that these backup files are valid PHP files, and as such, they are loaded by Doctrine2. A PHP fatal error is then fired: &quot;Cannot redeclare class...&quot;.&lt;/p&gt;

&lt;p&gt;Instead of prepending &lt;sub&gt;, why not appending ~, which is a well supported convention? (foo.php&lt;/sub&gt; vs ~foo.php)&lt;/p&gt;

&lt;p&gt;Patch is here: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/35&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/35&lt;/a&gt;&lt;/p&gt;</description>
                <environment>all</environment>
            <key id="12613">DDC-1136</key>
            <summary>Prevent backup files to be recognized as valid Entity files</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/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="fabpot">Fabien Potencier</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 May 2011 13:29:22 +0000</created>
                <updated>Sat, 14 May 2011 09:59:31 +0000</updated>
                    <resolved>Sat, 14 May 2011 09:59:31 +0000</resolved>
                            <version>2.0.4</version>
                <version>Git Master</version>
                                <fixVersion>2.0.5</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15847" author="beberlei" created="Sat, 14 May 2011 09:59:31 +0000"  >&lt;p&gt;Applied and merged to 2.0.x&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1151] Table name at reference is not quoted, even if table name in entity has quotation marks.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1151</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Reference for PostgreSQL and MySQL is folloing:&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 &lt;span class=&quot;code-quote&quot;&gt;&quot;user_group&quot;&lt;/span&gt; ADD FOREIGN KEY (user_id) REFERENCES user(id) NOT DEFERRABLE INITIALLY IMMEDIATE;
ALTER TABLE &lt;span class=&quot;code-quote&quot;&gt;&quot;user_group&quot;&lt;/span&gt; ADD FOREIGN KEY (group_id) REFERENCES group(id) NOT DEFERRABLE INITIALLY IMMEDIATE
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Entity is quoted:&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;`user`&quot;&lt;/span&gt;)
 */
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="12619">DDC-1151</key>
            <summary>Table name at reference is not quoted, even if table name in entity has quotation marks.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/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="margus">Margus Sipria</reporter>
                        <labels>
                    </labels>
                <created>Sat, 7 May 2011 11:23:27 +0000</created>
                <updated>Sat, 14 May 2011 06:50:47 +0000</updated>
                    <resolved>Sat, 14 May 2011 06:50:47 +0000</resolved>
                            <version>2.0.3</version>
                <version>2.0.4</version>
                                <fixVersion>2.0.5</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15843" author="beberlei" created="Sat, 14 May 2011 06:31:33 +0000"  >&lt;p&gt;Moved to ORM as its a SChemaTool bug&lt;/p&gt;</comment>
                    <comment id="15844" author="beberlei" created="Sat, 14 May 2011 06:50:47 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1090] API Documentation for Doctrine\DBAL\Logging\SQLLogger::startQuery() is Incorrect</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1090</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This page displays contradicting information about the startQuery() interface method: &lt;a href=&quot;http://www.doctrine-project.org/api/dbal/2.0/doctrine/dbal/logging/sqllogger.html&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/api/dbal/2.0/doctrine/dbal/logging/sqllogger.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The $types argument is documented as $executionMS, which is not even in the method declaration.&lt;/p&gt;</description>
                <environment>N/A</environment>
            <key id="12516">DDC-1090</key>
            <summary>API Documentation for Doctrine\DBAL\Logging\SQLLogger::startQuery() is Incorrect</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="kherge">Kevin Herrera</reporter>
                        <labels>
                    </labels>
                <created>Thu, 31 Mar 2011 01:02:53 +0000</created>
                <updated>Fri, 13 May 2011 02:57:56 +0000</updated>
                    <resolved>Fri, 13 May 2011 02:57:56 +0000</resolved>
                            <version>2.0.3</version>
                                <fixVersion>2.0.5</fixVersion>
                                <component>Documentation</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15832" author="guilhermeblanco" created="Fri, 13 May 2011 02:57:56 +0000"  >&lt;p&gt;Fixed on master.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/commit/10ff0e0e6f327976cf9998b44a54168a568a0264&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/10ff0e0e6f327976cf9998b44a54168a568a0264&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10962" name="Screen shot 2011-03-30 at 10.01.19 PM.png" size="26529" author="kherge" created="Thu, 31 Mar 2011 01:02:53 +0000" />
                    <attachment id="10963" name="Screen shot 2011-03-30 at 10.02.16 PM.png" size="48023" author="kherge" created="Thu, 31 Mar 2011 01:02:53 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-994] YAML parser seems out of date (and references an undefined variable</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-994</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;line: 158&lt;br/&gt;
$merged = array_merge($merge, $parsed);&lt;/p&gt;

&lt;p&gt;but $merge is no where defined&lt;/p&gt;

&lt;p&gt;when i compared it against current Symfony2 the file seemed quite a bit different.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12314">DDC-994</key>
            <summary>YAML parser seems out of date (and references an undefined variable</summary>
                <type id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/task.png">Task</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="lsmith">Lukas Kahwe</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Jan 2011 17:53:22 +0000</created>
                <updated>Sun, 1 May 2011 06:40:12 +0000</updated>
                    <resolved>Sun, 1 May 2011 06:40:12 +0000</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0.5</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15796" author="beberlei" created="Sun, 1 May 2011 06:40:12 +0000"  >&lt;p&gt;This was fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1119] CLONE -Call to undefined method Doctrine\DBAL\Platforms\MySqlPlatform::quote()</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1119</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Fatal error: Call to undefined method Doctrine\DBAL\Platforms\MySqlPlatform::quote() in /srv/abf/trunk/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php on line 1181&lt;/p&gt;

&lt;p&gt;I think you should use quoteIdentifier instead of quote&lt;/p&gt;</description>
                <environment>trunk</environment>
            <key id="12568">DDC-1119</key>
            <summary>CLONE -Call to undefined method Doctrine\DBAL\Platforms\MySqlPlatform::quote()</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/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="cehmke">Christian Ehmke</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Apr 2011 04:28:38 +0000</created>
                <updated>Sun, 1 May 2011 06:00:29 +0000</updated>
                    <resolved>Sun, 1 May 2011 06:00:29 +0000</resolved>
                            <version>2.0-ALPHA2</version>
                                <fixVersion>2.0.5</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15736" author="cehmke" created="Mon, 18 Apr 2011 04:29:47 +0000"  >&lt;p&gt;Version 2.0.4&lt;/p&gt;

&lt;p&gt;Fatal error: Call to undefined method Doctrine\DBAL\Platforms\MySqlPlatform::quote() in \Doctrine\DBAL\Platforms\MySqlPlatform.php on line 373&lt;/p&gt;

&lt;p&gt;There is no such function implemented in MySqlPlatform or AbstractPlatform.&lt;/p&gt;</comment>
                    <comment id="15792" author="beberlei" created="Sun, 1 May 2011 06:00:29 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1129] UnitOfWork consider version field changed as entity changed</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1129</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I use @version field and after first save it thinks that versionField was changed.&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 = $em-&amp;gt;find(...);
$Entity-&amp;gt;changeField();
$em-&amp;gt;persist($Entity);
$em-&amp;gt;flush();
$em-&amp;gt;getUnitOfWork()-&amp;gt;computeChangeSets();
var_dump($em-&amp;gt;getUnitOfWork()-&amp;gt;getEntityChangeSet($Entity);
&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;array(1) {
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;version&quot;&lt;/span&gt;]=&amp;gt;
  array(2) {
    [0]=&amp;gt;
    &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(183)
    [1]=&amp;gt;
    &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(184)
  }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;I fixed it in method computeChangeSet on lines around 473:&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;Index: ../vendor/doctrine/lib/Doctrine/ORM/UnitOfWork.php
===================================================================
@@ -448,6 +448,9 @@
             $changeSet = $isChangeTrackingNotify ? $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;entityChangeSets[$oid] : array();
 
             foreach ($actualData as $propName =&amp;gt; $actualValue) {
+                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($class-&amp;gt;isVersioned &amp;amp;&amp;amp; $propName == $class-&amp;gt;versionField) {
+                    &lt;span class=&quot;code-keyword&quot;&gt;continue&lt;/span&gt;;
+                }
                 $orgValue = isset($originalData[$propName]) ? $originalData[$propName] : &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;
                 &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (isset($class-&amp;gt;associationMappings[$propName])) {
                     $assoc = $class-&amp;gt;associationMappings[$propName];
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="12590">DDC-1129</key>
            <summary>UnitOfWork consider version field changed as entity changed</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/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="realmfoo">Konstantin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Apr 2011 11:03:23 +0000</created>
                <updated>Sun, 1 May 2011 05:46:44 +0000</updated>
                    <resolved>Sun, 1 May 2011 05:46:44 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.0.5</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15755" author="beberlei" created="Sat, 30 Apr 2011 05:42:42 +0000"  >&lt;p&gt;The fix is bad. There is a much better way, but i can confirm this issue exists.&lt;/p&gt;</comment>
                    <comment id="15790" author="beberlei" created="Sun, 1 May 2011 05:46:44 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1091] Parser::FunctionsReturningStrings() doesn&apos;t check for custom DQL functions.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1091</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I defined a custom DQL FunctionNode that wasn&apos;t detected by the Parser.&lt;br/&gt;
Problem was in the Parser::FunctionsReturningStrings(), but I suspect the problem is more general.&lt;/p&gt;

&lt;p&gt;Here&apos;s my (ugly) fix:&lt;/p&gt;

&lt;p&gt;public function FunctionsReturningStrings()&lt;br/&gt;
    {&lt;br/&gt;
        $funcNameLower = strtolower($this-&amp;gt;_lexer-&amp;gt;lookahead&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;value&amp;#39;&amp;#93;&lt;/span&gt;);&lt;br/&gt;
        if (isset(self::$_STRING_FUNCTIONS&lt;span class=&quot;error&quot;&gt;&amp;#91;$funcNameLower&amp;#93;&lt;/span&gt;)) &lt;/p&gt;
{
        	$funcClass = self::$_STRING_FUNCTIONS[$funcNameLower];
        	$function = new $funcClass($funcNameLower);
        	$function-&amp;gt;parse($this);
        }
&lt;p&gt;        else $function = $this-&amp;gt;CustomFunctionsReturningStrings();&lt;/p&gt;

&lt;p&gt;        return $function;&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;I include the custom DQL FunctionNode created.&lt;/p&gt;</description>
                <environment>N/A</environment>
            <key id="12517">DDC-1091</key>
            <summary>Parser::FunctionsReturningStrings() doesn&apos;t check for custom DQL functions.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/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="iksela">Alexandre Mathieu</reporter>
                        <labels>
                    </labels>
                <created>Thu, 31 Mar 2011 05:14:15 +0000</created>
                <updated>Sun, 1 May 2011 05:02:40 +0000</updated>
                    <resolved>Sun, 1 May 2011 05:02:40 +0000</resolved>
                            <version>2.0.3</version>
                                <fixVersion>2.0.5</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15789" author="beberlei" created="Sun, 1 May 2011 05:02:40 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10964" name="bDqlNvl.php" size="774" author="iksela" created="Thu, 31 Mar 2011 05:14:15 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1111] EntityGenerator duplicates attributes, getters and setters in mapped subclasses</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1111</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;when I want to generate getters and setters for my entity which subclasses another entity-base-class, my properties are duplicated.&lt;/p&gt;

&lt;p&gt;before 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;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt;/**
 * @orm:Entity
 */
class User &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; BaseUser
{
    /**
     * @orm:Id
     * @orm:Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
     * @orm:generatedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;AUTO&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;after 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;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt;/**
 * @orm:Entity
 */
class User &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; BaseUser
{
    /**
     * @orm:Id
     * @orm:Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
     * @orm:generatedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;AUTO&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;


    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer $id
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $id;


    /**
     * Get id
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; integer $id
     */
    &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;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;SuperSuperClass (there are multiple levels of inheritance...):&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt;&lt;span class=&quot;code-keyword&quot;&gt;abstract&lt;/span&gt; class User &lt;span class=&quot;code-keyword&quot;&gt;implements&lt;/span&gt; UserInterface
{
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;
   &lt;span class=&quot;code-comment&quot;&gt;//...
&lt;/span&gt;}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>mac osx, symfony framework (standard distribution PR10) with installed userbundle</environment>
            <key id="12555">DDC-1111</key>
            <summary>EntityGenerator duplicates attributes, getters and setters in mapped subclasses</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="stoefln">Stephan Petzl</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Apr 2011 04:22:58 +0000</created>
                <updated>Sun, 1 May 2011 04:09:30 +0000</updated>
                    <resolved>Sun, 1 May 2011 04:09:30 +0000</resolved>
                            <version>2.0.3</version>
                                <fixVersion>2.0.5</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="15785" author="beberlei" created="Sun, 1 May 2011 04:09:30 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1134&quot; title=&quot;Entity Generator: Namespace parsing fix&quot;&gt;&lt;del&gt;DDC-1134&lt;/del&gt;&lt;/a&gt;, fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1121] Doctrine CLI tool produces wrong schema when the id columns of the entities are not named as $id. The annotations block aren&apos;t taken into account</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1121</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;namespace Entities;

&lt;span class=&quot;code-comment&quot;&gt;//use Doctrine\Common\Collections\ArrayCollection;
&lt;/span&gt;
/** 
 *@Entity
 *@Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;user&quot;&lt;/span&gt;)
 */
class User
{
	/** 
	*@Id 
	*@Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;user_id&quot;&lt;/span&gt;)
	*@GeneratedValue
	* */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $userId;
	
	/** @Column(length=255) */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $lastName;
	
	/** @Column(length=255, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;user_firstname&quot;&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $firstName;
	
	 /**
     * Bidirectional - Many users are geathered within one group (OWNING SIDE)
     *
     * @ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;\Entities\Group&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;user&quot;&lt;/span&gt;)
     */
	&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $group;
	
&lt;span class=&quot;code-comment&quot;&gt;/// ---
&lt;/span&gt;}
&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;&amp;lt;?php
namespace Entities;
/** 
 *@Entity
 *@Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;group&quot;&lt;/span&gt;)
 */
class Group
{
	/** 
	*@Id 
	*@Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;group_id&quot;&lt;/span&gt;)
	*@GeneratedValue
	* */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $groupId;
	
	/** @Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;group_name&quot;&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $name;
	
    /**
     * @OneToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;\Entities\User&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;group&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $users;

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct() {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;users = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\Collections\ArrayCollection();
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In the following examples the id fields are set to $userId (mapped to user_id) and $groupId (mapped to group_id), but when it comes to generating the schema an error occures. The Doctrine CLI Tool doesn&apos;t work properly. When it generates the schema it fails to take into account the annotation blocks and just uses &quot;id&quot; instead of &quot;group_id&quot;.&lt;/p&gt;

&lt;p&gt;Let me explain it better. If we run the tool it will produce the following code&lt;/p&gt;

&lt;p&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;ALTER TABLE user ADD FOREIGN KEY (group_id) REFERENCES group(id)
&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;ALTER TABLE `user`  ADD  FOREIGN KEY (`group_id`) REFERENCES `groups` (`group_id`);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Moreover using &quot;group&quot; as a name of the entity class will lead to numerous problems, because it&apos;s a reserved word in SQL. Even if we specify the quoatation forcibly using backticks it won&apos;t 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-java&quot;&gt; /**@Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`group`&quot;&lt;/span&gt;)*/
&lt;span class=&quot;code-object&quot;&gt;Class&lt;/span&gt; Group {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The quoatation won&apos;t be taken into account while generation the schema.&lt;/p&gt;

&lt;p&gt;I&apos;m enclosing the files I&apos;ve tried to play with. Just try to generate the schema.&lt;/p&gt;</description>
                <environment>Windows xp sp3, php 5.3.6, apache 2.2.17</environment>
            <key id="12572">DDC-1121</key>
            <summary>Doctrine CLI tool produces wrong schema when the id columns of the entities are not named as $id. The annotations block aren&apos;t taken into account</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/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="screwyprof">Eddie O&apos;Donnell</reporter>
                        <labels>
                    </labels>
                <created>Wed, 20 Apr 2011 11:51:38 +0000</created>
                <updated>Sun, 1 May 2011 04:06:09 +0000</updated>
                    <resolved>Sun, 1 May 2011 04:06:09 +0000</resolved>
                            <version>2.0.4</version>
                                <fixVersion>2.0.5</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15759" author="beberlei" created="Sat, 30 Apr 2011 05:49:23 +0000"  >&lt;p&gt;Fixed formatting, scheduled for 2.0.5&lt;/p&gt;</comment>
                    <comment id="15783" author="beberlei" created="Sun, 1 May 2011 04:05:43 +0000"  >&lt;p&gt;Just understood this. This is expected behavior, &quot;id&quot; is the default value. Doctrine cannot - for optimization reasons - check the id column names on the other entity. That is what the @JoinColumn annotation is for, where you can explicitly give a name.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10973" name="mydoctrine.zip" size="3389" author="screwyprof" created="Wed, 20 Apr 2011 11:51:38 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1102] Typo in ORM/Tools/EntityGenerator.php</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1102</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;There is a typo in ORM/Tools/EntityGenerator.php (line 502 in github master): MappedSupperClass instead of MappedSuperClass&lt;/p&gt;</description>
                <environment></environment>
            <key id="12533">DDC-1102</key>
            <summary>Typo in ORM/Tools/EntityGenerator.php</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/trivial.png">Trivial</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="alexmancini">Alex Mancini</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Apr 2011 01:34:14 +0000</created>
                <updated>Sun, 1 May 2011 04:02:43 +0000</updated>
                    <resolved>Sun, 1 May 2011 04:02:43 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.0.5</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15782" author="beberlei" created="Sun, 1 May 2011 04:02:43 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1134] Entity Generator: Namespace parsing fix</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1134</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The entity generator is not able to parse the namespace/class of existing entities in many cases. Here is a simple class that fails:&lt;/p&gt;

&lt;p&gt;    &amp;lt;?php namespace Foo\Bar; use Foo; class Baz {}&lt;/p&gt;

&lt;p&gt;Fix is here: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/49&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/49&lt;/a&gt;&lt;/p&gt;
</description>
                <environment>any</environment>
            <key id="12600">DDC-1134</key>
            <summary>Entity Generator: Namespace parsing 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="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="fabpot">Fabien Potencier</reporter>
                        <labels>
                    </labels>
                <created>Sat, 30 Apr 2011 13:39:06 +0000</created>
                <updated>Sun, 1 May 2011 03:53:27 +0000</updated>
                    <resolved>Sun, 1 May 2011 03:53:27 +0000</resolved>
                            <version>2.0.4</version>
                <version>Git Master</version>
                                <fixVersion>2.0.5</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15770" author="beberlei" created="Sat, 30 Apr 2011 13:40:58 +0000"  >&lt;p&gt;Schedule for 2.0.5&lt;/p&gt;</comment>
                    <comment id="15780" author="beberlei" created="Sun, 1 May 2011 03:53:27 +0000"  >&lt;p&gt;Fixed in master and 2.0.x&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1133] DuckType AnnotationReader in AnnotationDriver</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1133</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Currently the hint is strict in AnnotationDriver for the AnnotationReader. This should be duck-typed to support usage of &lt;a href=&quot;https://github.com/schmittjoh/annotations&quot; class=&quot;external-link&quot;&gt;https://github.com/schmittjoh/annotations&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12597">DDC-1133</key>
            <summary>DuckType AnnotationReader in AnnotationDriver</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>Sat, 30 Apr 2011 08:23:22 +0000</created>
                <updated>Sat, 30 Apr 2011 08:24:53 +0000</updated>
                    <resolved>Sat, 30 Apr 2011 08:24:53 +0000</resolved>
                                            <fixVersion>2.0.5</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15766" author="beberlei" created="Sat, 30 Apr 2011 08:24:53 +0000"  >&lt;p&gt;Implemented&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1109] SINGLE_TABLE mapping fails to set the discriminator column value on persist if the mapping classes are specified with fully qualified namespace</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1109</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;If I specify a single inheritance structure with the mapping classes specified with fully qualified namespace in the annotation and then if I create a new mapped entity and try to save it, doctrine specifies the value for the discriminator column as NULL and thus the fush fails with mysql complaining the discriminator column to be NULL. If I specify the mapping classes without fully qualified namespace the persist works as expected&lt;/p&gt;

&lt;p&gt;For example this fails:&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 Entities;
/**
 * @Entity
 * @InheritanceType(&lt;span class=&quot;code-quote&quot;&gt;&quot;SINGLE_TABLE&quot;&lt;/span&gt;)
 * @DiscriminatorColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;itemType&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
 * @DiscriminatorMap({
 * &lt;span class=&quot;code-quote&quot;&gt;&quot;0&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;\Entities\Data\&lt;span class=&quot;code-object&quot;&gt;Integer&lt;/span&gt;&quot;&lt;/span&gt;,
 * &lt;span class=&quot;code-quote&quot;&gt;&quot;5&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;\Entities\Data\Text&quot;&lt;/span&gt;,
 * &lt;span class=&quot;code-quote&quot;&gt;&quot;6&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;\Entities\Data\Form&quot;&lt;/span&gt;
 * })
 */
class master {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But this works as expected:&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 Entities;
/**
 * @Entity
 * @InheritanceType(&lt;span class=&quot;code-quote&quot;&gt;&quot;SINGLE_TABLE&quot;&lt;/span&gt;)
 * @DiscriminatorColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;itemType&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
 * @DiscriminatorMap({
 * &lt;span class=&quot;code-quote&quot;&gt;&quot;0&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;Entities\Data\&lt;span class=&quot;code-object&quot;&gt;Integer&lt;/span&gt;&quot;&lt;/span&gt;,
 * &lt;span class=&quot;code-quote&quot;&gt;&quot;5&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;Entities\Data\Text&quot;&lt;/span&gt;,
 * &lt;span class=&quot;code-quote&quot;&gt;&quot;6&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;Entities\Data\Form&quot;&lt;/span&gt;
 * })
 */
class master {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The obivous workaround for now is to not use fully qualified namespaced classes for the discriminator maps, but rather relative.&lt;/p&gt;

&lt;p&gt;attached is the doctrine sanbox with the failing setup&lt;/p&gt;</description>
                <environment>Debian GNU/Linux 6.0, mysql 5.1.56-0.dotdeb.1, PHP 5.3.5-0.dotdeb.1</environment>
            <key id="12553">DDC-1109</key>
            <summary>SINGLE_TABLE mapping fails to set the discriminator column value on persist if the mapping classes are specified with fully qualified namespace</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="simen">Simon Zamecnik</reporter>
                        <labels>
                    </labels>
                <created>Sun, 10 Apr 2011 07:46:21 +0000</created>
                <updated>Sat, 30 Apr 2011 06:52:52 +0000</updated>
                    <resolved>Sat, 30 Apr 2011 06:52:52 +0000</resolved>
                            <version>2.0.4</version>
                                <fixVersion>2.0.5</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15762" author="beberlei" created="Sat, 30 Apr 2011 06:03:49 +0000"  >&lt;p&gt;Namespaces are never referred with a leading prefix in strings. This is PHP convention. However we can easily ltrim the slash here in the mapping drivers for convenenince.&lt;/p&gt;

&lt;p&gt;schedulding for 2.0.5&lt;/p&gt;</comment>
                    <comment id="15765" author="beberlei" created="Sat, 30 Apr 2011 06:52:52 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10968" name="sandbox-example.tar.bz2" size="3128" author="simen" created="Sun, 10 Apr 2011 07:46:21 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1108] Parameters name of a single letter don&apos;t work</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1108</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;&quot;SELECT c FROM MyBundle\AppBundle\Entity\Cities c WHERE c.nume LIKE :q&quot; throws an Exception in Doctrine\ORM\Query\AST\InputParameter line 46 because strlen return 1.&lt;br/&gt;
I don&apos;t know the DQL parser deeply but it seems that the value passed to this class does not contain the colon. In this case the exception does not make sense here.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12552">DDC-1108</key>
            <summary>Parameters name of a single letter don&apos;t work</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="stof">Christophe Coevoet</reporter>
                        <labels>
                    </labels>
                <created>Sat, 9 Apr 2011 20:23:53 +0000</created>
                <updated>Sat, 30 Apr 2011 06:29:20 +0000</updated>
                    <resolved>Sat, 30 Apr 2011 06:29:20 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.0.5</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15763" author="beberlei" created="Sat, 30 Apr 2011 06:29:20 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1132] Reverse Engeneering Fatal Error</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1132</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Following this cookbook article&lt;br/&gt;
&lt;a href=&quot;http://symfony.com/doc/2.0/cookbook/doctrine/reverse_engineering.html&quot; class=&quot;external-link&quot;&gt;http://symfony.com/doc/2.0/cookbook/doctrine/reverse_engineering.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When I run the command, I get an 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;php app/console doctrine:mapping:convert xml ./src/Acme/BlogBundle/Resources/config/doctrine/metada/orm --from-database --force
PHP Notice: Undefined variable: otherFk in /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php on line 205
PHP Stack trace:
PHP 1. {main}() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/app/console:0
PHP 2. Symfony\Component\Console\Application-&amp;gt;run() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/app/console:16
PHP 3. Symfony\Bundle\FrameworkBundle\Console\Application-&amp;gt;doRun() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Component/Console/Application.php:119
PHP 4. Symfony\Component\Console\Application-&amp;gt;doRun() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:77
PHP 5. Symfony\Component\Console\Command\Command-&amp;gt;run() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Component/Console/Application.php:193
PHP 6. Symfony\Bundle\DoctrineBundle\Command\ConvertMappingDoctrineCommand-&amp;gt;execute() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Component/Console/Command/Command.php:188
PHP 7. Doctrine\ORM\Tools\Console\Command\ConvertMappingCommand-&amp;gt;execute() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/ConvertMappingDoctrineCommand.php:48
PHP 8. Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;getAllMetadata() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php:119
PHP 9. Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;getMetadataFor() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:123
PHP 10. Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;loadMetadata() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:176
PHP 11. Doctrine\ORM\Mapping\Driver\DatabaseDriver-&amp;gt;loadMetadataForClass() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:282

Notice: Undefined variable: otherFk in /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php on line 205

Call Stack:
0.0036 328024 1. {main}() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/app/console:0
5.6943 13982540 2. Symfony\Component\Console\Application-&amp;gt;run() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/app/console:16
5.7041 14171544 3. Symfony\Bundle\FrameworkBundle\Console\Application-&amp;gt;doRun() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Component/Console/Application.php:119
5.7043 14171544 4. Symfony\Component\Console\Application-&amp;gt;doRun() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:77
5.7105 14171588 5. Symfony\Component\Console\Command\Command-&amp;gt;run() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Component/Console/Application.php:193
5.7140 14172700 6. Symfony\Bundle\DoctrineBundle\Command\ConvertMappingDoctrineCommand-&amp;gt;execute() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Component/Console/Command/Command.php:188
5.7980 16246052 7. Doctrine\ORM\Tools\Console\Command\ConvertMappingCommand-&amp;gt;execute() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/ConvertMappingDoctrineCommand.php:48
5.8131 16613668 8. Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;getAllMetadata() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php:119
7.9402 18186692 9. Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;getMetadataFor() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:123
7.9402 18186692 10. Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;loadMetadata() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:176
7.9489 18458388 11. Doctrine\ORM\Mapping\Driver\DatabaseDriver-&amp;gt;loadMetadataForClass() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:282

PHP Fatal error: Call to a member function getColumns() on a non-object in /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php on line 205
PHP Stack trace:
PHP 1. {main}() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/app/console:0
PHP 2. Symfony\Component\Console\Application-&amp;gt;run() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/app/console:16
PHP 3. Symfony\Bundle\FrameworkBundle\Console\Application-&amp;gt;doRun() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Component/Console/Application.php:119
PHP 4. Symfony\Component\Console\Application-&amp;gt;doRun() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:77
PHP 5. Symfony\Component\Console\Command\Command-&amp;gt;run() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Component/Console/Application.php:193
PHP 6. Symfony\Bundle\DoctrineBundle\Command\ConvertMappingDoctrineCommand-&amp;gt;execute() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Component/Console/Command/Command.php:188
PHP 7. Doctrine\ORM\Tools\Console\Command\ConvertMappingCommand-&amp;gt;execute() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/ConvertMappingDoctrineCommand.php:48
PHP 8. Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;getAllMetadata() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php:119
PHP 9. Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;getMetadataFor() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:123
PHP 10. Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;loadMetadata() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:176
PHP 11. Doctrine\ORM\Mapping\Driver\DatabaseDriver-&amp;gt;loadMetadataForClass() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:282

Fatal error: Call to a member function getColumns() on a non-object in /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php on line 205

Call Stack:
0.0036 328024 1. {main}() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/app/console:0
5.6943 13982540 2. Symfony\Component\Console\Application-&amp;gt;run() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/app/console:16
5.7041 14171544 3. Symfony\Bundle\FrameworkBundle\Console\Application-&amp;gt;doRun() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Component/Console/Application.php:119
5.7043 14171544 4. Symfony\Component\Console\Application-&amp;gt;doRun() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:77
5.7105 14171588 5. Symfony\Component\Console\Command\Command-&amp;gt;run() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Component/Console/Application.php:193
5.7140 14172700 6. Symfony\Bundle\DoctrineBundle\Command\ConvertMappingDoctrineCommand-&amp;gt;execute() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Component/Console/Command/Command.php:188
5.7980 16246052 7. Doctrine\ORM\Tools\Console\Command\ConvertMappingCommand-&amp;gt;execute() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/ConvertMappingDoctrineCommand.php:48
5.8131 16613668 8. Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;getAllMetadata() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php:119
7.9402 18186692 9. Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;getMetadataFor() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:123
7.9402 18186692 10. Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;loadMetadata() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:176
7.9489 18458388 11. Doctrine\ORM\Mapping\Driver\DatabaseDriver-&amp;gt;loadMetadataForClass() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/sn/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:282
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="12596">DDC-1132</key>
            <summary>Reverse Engeneering Fatal Error</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/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, 30 Apr 2011 04:43:47 +0000</created>
                <updated>Sat, 30 Apr 2011 05:39:59 +0000</updated>
                    <resolved>Sat, 30 Apr 2011 05:39:59 +0000</resolved>
                                            <fixVersion>2.0.5</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15754" author="beberlei" created="Sat, 30 Apr 2011 05:39:59 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>