<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 15:43:44 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-2184/DDC-2184.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-2184] [GH-530] Singular form of generated methods should end with &apos;y&apos; when property ends with &apos;ies&apos;</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2184</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In Doctrine 2.3 the &apos;add&apos; and &apos;remove&apos; methods in oneToMany associations have another problem (in earlier versions like 2.2 this worked correct). The singular form is not correctly detected if the property ends with &apos;ies&apos; like &apos;entries&apos; which should be transformed to &apos;entry&apos;.&lt;br/&gt;
I have this YAML definition:&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;
Archive:
  type: entity
  fields:
    id:
      id: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
      type: integer
      unsigned: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      nullable: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      generator:
        strategy: IDENTITY
  oneToMany:
    entries:
      targetEntity: Entry
      mappedBy: archive
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This generates these methods:&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;
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function addEntrie(\Entry $entries) { ... }
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function removeEntrie(\Entry $entries) { ... }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Because in the EntityGenerator only the plural &apos;s&apos; is removed. It would be nice if an ending of &apos;ies&apos; could be replaced by &apos;y&apos;. So that we get these methods&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;
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function addEntry(\Entry $entries) { ... }
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function removeEntry(\Entry $entries) { ... }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;My fork already has the changes &lt;a href=&quot;https://github.com/naitsirch/doctrine-orm2/commit/a3adfccb4927d61da7debae46ed0fff61e4212f8&quot; class=&quot;external-link&quot;&gt;https://github.com/naitsirch/doctrine-orm2/commit/a3adfccb4927d61da7debae46ed0fff61e4212f8&lt;/a&gt;&lt;br/&gt;
I have opened a pull request here &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/530&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/530&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14290">DDC-2184</key>
            <summary>[GH-530] Singular form of generated methods should end with &apos;y&apos; when property ends with &apos;ies&apos;</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="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/inprogress.png">In Progress</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 4 Dec 2012 09:14:25 +0000</created>
                <updated>Sun, 6 Jan 2013 10:02:11 +0000</updated>
                                    <version>2.3</version>
                                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19104" author="naitsirch" created="Tue, 4 Dec 2012 09:25:11 +0000"  >&lt;p&gt;Sorry, I accidently clicked on the button &apos;Request Feedback&apos; &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/sad.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;br/&gt;
Now the status has changed to &apos;Awaiting Feedback&apos;&lt;/p&gt;</comment>
                    <comment id="19226" author="beberlei" created="Sun, 6 Jan 2013 09:45:52 +0000"  >&lt;p&gt;Mark as improvement&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                <outwardlinks description="duplicates">
                            <issuelink>
            <issuekey id="14236">DDC-2150</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14256">DDC-2160</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>