<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu May 23 20:08:35 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-930/DDC-930.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-930] A table cannot have more than one many to many relationship with the same table when using reverse engineer</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-930</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This is caused by taking the join column name as the identifier while generating a property name for annotation. The mapping driver detects that the same property is already defined and ends the convert process. A little bit smarter approach for me was to take the local table name. But this assumes a specific style of join table naming convention.&lt;/p&gt;

&lt;p&gt;Doctrine\ORM\Mapping\Driver\DatabaseDriver::loadMetadataForClass()&lt;/p&gt;

&lt;p&gt;Replace:&lt;/p&gt;

&lt;p&gt;$associationMapping&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;fieldName&amp;#39;&amp;#93;&lt;/span&gt; = Inflector::camelize(str_replace(&apos;_id&apos;, &apos;&apos;, strtolower(current($otherFk-&amp;gt;getColumns()))));&lt;/p&gt;

&lt;p&gt;With:&lt;/p&gt;

&lt;p&gt;$name = explode(&quot;_&quot;,$myFk-&amp;gt;getLocalTableName());&lt;br/&gt;
if (count($name) &amp;gt; 1)&lt;br/&gt;
{&lt;br/&gt;
	array_shift($name);&lt;br/&gt;
}&lt;br/&gt;
$name = implode(&quot;_&quot;, $name);&lt;/p&gt;

&lt;p&gt;                    $associationMapping&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;fieldName&amp;#39;&amp;#93;&lt;/span&gt; = Inflector::camelize(str_replace(&apos;_id&apos;, &apos;&apos;, strtolower($name)));&lt;/p&gt;


&lt;p&gt;Maybe to switch to this behavior with an additional option?&lt;/p&gt;</description>
                <environment>FreeBSD, PostgreSQL 8.4</environment>
            <key id="12225">DDC-930</key>
            <summary>A table cannot have more than one many to many relationship with the same table when using reverse engineer</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="romanb">Roman S. Borschel</assignee>
                                <reporter username="teuzz">Jiri Helmich</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 Dec 2010 02:52:49 +0000</created>
                <updated>Mon, 13 Dec 2010 02:52:49 +0000</updated>
                                    <version>2.0-RC2</version>
                                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>