<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Mon May 20 21:26:48 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/si/jira.issueviews:issue-xml/DBAL-232/DBAL-232.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[DBAL-232] Custom commented column type removal causes unknown column type exception</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-232</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Problem happens when initially, as example, there was commented type &quot;foo&quot; registered and used:&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\DBAL\Types\Type::addType(&apos;foo&apos;, &apos;FooType&apos;);
$em-&amp;gt;getConnection()
    -&amp;gt;getDatabasePlatform()
    -&amp;gt;markDoctrineTypeCommented(Doctrine\DBAL\Types\Type::getType(&apos;foo&apos;));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When the type usage and declaration is removed, the database schema upgrade fails.&lt;br/&gt;
This is because DBAL reads the comment from the database and tries to find the type &apos;foo&apos;.&lt;/p&gt;

&lt;p&gt;I suggest ignoring the database column comment and stick to the standard type recognition in case the type is not declared.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13499">DBAL-232</key>
            <summary>Custom commented column type removal causes unknown column type exception</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="gedrox">Aigars Gedroics</reporter>
                        <labels>
                    </labels>
                <created>Tue, 6 Mar 2012 11:16:21 +0000</created>
                <updated>Fri, 9 Mar 2012 10:22:09 +0000</updated>
                                    <version>2.2.1</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17541" author="gedrox" created="Fri, 9 Mar 2012 10:22:09 +0000"  >&lt;p&gt;Trivial solution would be:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;--- a/Doctrine/DBAL/Schema/AbstractSchemaManager.php
+++ b/Doctrine/DBAL/Schema/AbstractSchemaManager.php
@@ -878,7 +878,9 @@ &lt;span class=&quot;code-keyword&quot;&gt;abstract&lt;/span&gt; class AbstractSchemaManager
     &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function extractDoctrineTypeFromComment($comment, $currentType)
     {
         &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (preg_match(&lt;span class=&quot;code-quote&quot;&gt;&quot;(\(DC2Type:([a-zA-Z0-9]+)\))&quot;&lt;/span&gt;, $comment, $match)) {
-            $currentType = $match[1];
+                       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (Types\Type::hasType($match[1])) {
+                               $currentType = $match[1];
+                       }
         }
         &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $currentType;
     }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>