<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed Jun 19 15:37:52 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-324/DBAL-324.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-324] SchemaManager should first look into comment instead of infer the type first.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-324</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When using schema tool, Doctrine tries to infer the Doctrine type via the mapped types in Platform.&lt;br/&gt;
It should first try to read from the comment; if found, ignore the Database type inference.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13972">DBAL-324</key>
            <summary>SchemaManager should first look into comment instead of infer the type first.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="guilhermeblanco">Guilherme Blanco</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Aug 2012 17:11:19 +0000</created>
                <updated>Tue, 14 May 2013 20:50:07 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18561" author="beberlei" created="Wed, 29 Aug 2012 09:39:11 +0000"  >&lt;p&gt;Why is this a bug? Can you say some more about why we need to do this and what error occurs?&lt;/p&gt;</comment>
                    <comment id="18580" author="guilhermeblanco" created="Wed, 29 Aug 2012 20:05:05 +0000"  >&lt;p&gt;This issue is strictly correlated to the commit I&apos;ve done here: &lt;a href=&quot;https://github.com/doctrine/dbal/commit/e25c774dde971dc4afd40648e9ccd0af53b34ce9&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/e25c774dde971dc4afd40648e9ccd0af53b34ce9&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Mainly, we may have legacy database that we do know how Doctrine should operate. Under this circumstance, we may want to add a comment to the field defining the Doctrine DBAL type.&lt;br/&gt;
Even though after doing this, Doctrine still complains (in my situation, a SET column type) that it&apos;s unable to handle this column type.&lt;/p&gt;

&lt;p&gt;That happens because MySQL Schema Manager (and others) first looks for the column type:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php#L112&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php#L112&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php#L312&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php#L312&lt;/a&gt;&lt;br/&gt;
which automatically fails.&lt;/p&gt;

&lt;p&gt;But if we first try to look for the commented data type:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php#L884&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php#L884&lt;/a&gt;&lt;br/&gt;
And forget about the rest if it finds one definition there, it would allow even unknown data types to be managed instead of forcing to define the DBAL Type compatible.&lt;/p&gt;</comment>
                    <comment id="20383" author="steve@onzra.com" created="Tue, 14 May 2013 20:50:07 +0000"  >&lt;p&gt;This also applies for a type of yaml. &lt;br/&gt;
Example:&lt;/p&gt;

&lt;p&gt;    /** @Column(type=&quot;yaml&quot;) */&lt;br/&gt;
    protected $data = array();&lt;/p&gt;

&lt;p&gt;./scripts/doctrine orm:schema-tool:update --dump-sql&lt;br/&gt;
ALTER TABLE meta CHANGE data data LONGTEXT NOT NULL;&lt;/p&gt;

&lt;p&gt;Very frustrating.... Might be related to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-42&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-42&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>