<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu May 23 07:59:24 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-1843/DDC-1843.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-1843] CLONE -Join columns can&apos;t be quoted</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1843</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Join columns can&apos;t be quoted like columns using name=&quot;`quoted`&quot;. Using annotation driver.&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;
/**
 * @ORM\Table(
 *      name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`category`&quot;&lt;/span&gt;,
 *      indexes={
 *          @ORM\Index(
 *              name=&lt;span class=&quot;code-quote&quot;&gt;&quot;fk_category_parentId&quot;&lt;/span&gt;,
 *              columns={&lt;span class=&quot;code-quote&quot;&gt;&quot;parentId&quot;&lt;/span&gt;}
 *          )
 *      },
 *      uniqueConstraints={
 *          @ORM\UniqueConstraint(
 *              name=&lt;span class=&quot;code-quote&quot;&gt;&quot;uq_category_nameParentId&quot;&lt;/span&gt;,
 *              columns={&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;parentId&quot;&lt;/span&gt;}
 *          )
 *      }
 * )
 */
class Category
{
    /**
     * @ORM\Id
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;smallint&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`id`&quot;&lt;/span&gt;)
     * @ORM\GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;AUTO&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

    /**
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;smallint&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`parentId`&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $parentId;

    /**
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=50, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`name`&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $name;

    /**
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Category&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;categories&quot;&lt;/span&gt;)
     * @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;parentId&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;, onUpdate=&lt;span class=&quot;code-quote&quot;&gt;&quot;NO ACTION&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $category;
}

... 


&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function load(ObjectManager $manager)
    {
        $parent = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Category();
        $parent-&amp;gt;setName(&apos;parent&apos;);
        $manager-&amp;gt;persist($parent);
        $manager-&amp;gt;flush();

        $child = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Category();
        $child-&amp;gt;setName(&apos;parent&apos;);
        $child-&amp;gt;setParentId($parent-&amp;gt;getId());
        $child-&amp;gt;setCategory($parent);

        $manager-&amp;gt;persist($child);
        $manager-&amp;gt;flush();
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Result: Invalid parameter number: number of bound variables does not match number of tokens&lt;/p&gt;</description>
                <environment></environment>
            <key id="13737">DDC-1843</key>
            <summary>CLONE -Join columns can&apos;t be quoted</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="easen">Marc Easen</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 May 2012 12:46:37 +0000</created>
                <updated>Wed, 15 Aug 2012 00:17:24 +0000</updated>
                    <resolved>Wed, 15 Aug 2012 00:17:24 +0000</resolved>
                            <version>2.1.6</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18024" author="fabio.bat.silva" created="Mon, 28 May 2012 17:29:33 +0000"  >&lt;p&gt;code format&lt;/p&gt;</comment>
                    <comment id="18139" author="fabio.bat.silva" created="Mon, 25 Jun 2012 13:04:40 +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>
                    <comment id="18187" author="easen" created="Thu, 5 Jul 2012 15:14:37 +0000"  >&lt;p&gt;When inserting into an entity which has quoted columns and unquoted JoinColumn the generated SQL includes the correct number of parameters but the incorrect columns names and bind parameters:&lt;/p&gt;

&lt;p&gt;INSERT INTO `table` (`c1`, c1) VALUES (?, ?)&lt;/p&gt;

</comment>
                    <comment id="18188" author="easen" created="Thu, 5 Jul 2012 15:18:40 +0000"  >&lt;p&gt;See &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/390&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/390&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18189" author="fabio.bat.silva" created="Thu, 5 Jul 2012 15:19:37 +0000"  >&lt;p&gt;Hi Marc,&lt;/p&gt;

&lt;p&gt;Could you attach your entities or a test case please ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                    <comment id="18194" author="fabio.bat.silva" created="Thu, 5 Jul 2012 18:40:28 +0000"  >&lt;p&gt;Marc, why do you need to quoted columns and unquoted join column ?&lt;/p&gt;

&lt;p&gt;For sure duplicated columns is a problem, but your use case does not make sense for me..&lt;/p&gt;</comment>
                    <comment id="18516" author="fabio.bat.silva" created="Wed, 15 Aug 2012 00:17:24 +0000"  >&lt;p&gt;More details about the related problem : &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/390&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/390&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11194" name="quoted_joins_fix.diff" size="1510" author="easen" created="Mon, 28 May 2012 12:58:06 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>