<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 01:51:13 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/DDC-1719/DDC-1719.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>[DDC-1719] When tablename or field name contains an hyphen it generates an error</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1719</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In my database I have a table with &apos;-&apos; (hyphen) in the names of the tables and fields. But when mapping using annotations you get a mysql error because it generates a query that is not conform the mysql syntax. When using a hyphen in field or tablename (or others) you have to place it between quotes.&lt;/p&gt;

&lt;p&gt;The name of the table can be resolved using quotes in the table name, in code it means:&lt;/p&gt;

&lt;p&gt; @Table(name=&quot;directory-file&quot;) to  @Table(name=&quot;`directory-file`&quot;), you can&apos;t use this solution with the in the fields because the alias (AS in mysql syntax) also contains a &apos;-&apos; . Which results in a mysql error.&lt;/p&gt;


&lt;p&gt;Failing code:&lt;/p&gt;

&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@author Laurens&lt;/li&gt;
	&lt;li&gt;@Entity&lt;/li&gt;
	&lt;li&gt;@Table(name=&quot;directory-file&quot;)&lt;br/&gt;
 */&lt;br/&gt;
class Directory_File {&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;    /** @Id @Column(name=&quot;liddirectory-file&quot;,type=&quot;bigint&quot;) @GeneratedValue * */&lt;br/&gt;
    protected $liddirectory_file;&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment>PHP 5.3</environment>
            <key id="13546">DDC-1719</key>
            <summary>When tablename or field name contains an hyphen it generates an error</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="lcoudeville">Laurens Coudeville</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Mar 2012 15:56:59 +0000</created>
                <updated>Mon, 25 Jun 2012 13:00:31 +0000</updated>
                    <resolved>Mon, 25 Jun 2012 13:00:31 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18137" author="fabio.bat.silva" created="Mon, 25 Jun 2012 13:00:31 +0000"  >&lt;p&gt;Fixed by : &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;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>