mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2184: [GH-530] Singular form of generated methods should end with 'y' when property ends with 'ies' #2749
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Dec 4, 2012).
Originally assigned to: @Majkl578 on GitHub.
Jira issue originally created by user @beberlei:
In Doctrine 2.3 the 'add' and 'remove' 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 'ies' like 'entries' which should be transformed to 'entry'.
I have this YAML definition:
This generates these methods:
Because in the EntityGenerator only the plural 's' is removed. It would be nice if an ending of 'ies' could be replaced by 'y'. So that we get these methods
My fork already has the changes
a3adfccb49I have opened a pull request here https://github.com/doctrine/doctrine2/pull/530
@doctrinebot commented on GitHub (Dec 4, 2012):
@doctrinebot commented on GitHub (Dec 4, 2012):
Comment created by naitsirch:
Sorry, I accidently clicked on the button 'Request Feedback' :-(
Now the status has changed to 'Awaiting Feedback'
@doctrinebot commented on GitHub (Jan 6, 2013):
Comment created by @beberlei:
Mark as improvement
@doctrinebot commented on GitHub (Jul 4, 2013):
Comment created by stockopede:
Is this issue going to be resolved? It's a major problem for our project - a stock market application that uses properties like 'securities' and entities of name 'Security'.
@doctrinebot commented on GitHub (Mar 5, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-530] was closed:
https://github.com/doctrine/dbal/pull/530
@Majkl578 commented on GitHub (Dec 19, 2017):
CLosing, codegen to be removed in Doctrine 3.0.