<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 18:49:25 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://doctrine-project.org/jira/si/jira.issueviews:issue-xml/DDC-2069/DDC-2069.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://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>[DDC-2069] Spaces are not ignored in the &quot;column&quot; list of a uniqueConstraints</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2069</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In a YAML configuration file&lt;/p&gt;

&lt;p&gt;Behavior correct for 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;
  uniqueConstraints:
    myConstraint:
      columns: column1,column2
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However, if I add a space in the &quot;columns&quot; list:&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;
  uniqueConstraints:
    myConstraint:
      columns: column1, column2
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I end up with 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;
exception &apos;Doctrine\DBAL\Schema\SchemaException&apos; with message &apos;There is no column with name &apos; column2&apos; on table &apos;myTable&apos;.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This can be very confusing, especially if (by any chance) you have a line return just on the space in the command line: you never see the space in the exception message.&lt;/p&gt;

&lt;p&gt;It seems that YAML allows spaces in lists (&lt;a href=&quot;http://en.wikipedia.org/wiki/YAML#Lists&quot; class=&quot;external-link&quot;&gt;http://en.wikipedia.org/wiki/YAML#Lists&lt;/a&gt;), but this line doesn&apos;t seem to be a YAML list. If it is parsed by Doctrine (split on &quot;,&quot;), spaces should be ignored (or trimmed).&lt;/p&gt;</description>
                <environment></environment>
            <key id="14119">DDC-2069</key>
            <summary>Spaces are not ignored in the &quot;column&quot; list of a uniqueConstraints</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="mnapoli">Matthieu Napoli</reporter>
                        <labels>
                        <label>yaml</label>
                    </labels>
                <created>Fri, 12 Oct 2012 09:10:14 +0000</created>
                <updated>Fri, 9 Nov 2012 21:12:38 +0000</updated>
                    <resolved>Sun, 21 Oct 2012 03:16:48 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3.1</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18842" author="mnapoli" created="Wed, 17 Oct 2012 08:02:57 +0000"  >&lt;p&gt;Note that using the correct YAML format works:&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;
uniqueConstraints:
    myConstraint:
      columns: [column1, column2]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So it&apos;s confusing to have 2 possibilities to write the same thing, and that they don&apos;t behave the same.&lt;/p&gt;</comment>
                    <comment id="18855" author="fabio.bat.silva" created="Sun, 21 Oct 2012 03:16:48 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/814f2f9e039caf712b75af7f61d28c361189bcab&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/814f2f9e039caf712b75af7f61d28c361189bcab&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>