-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
StringUtil::singularify() does not convert "series" correctly #16532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Series is both singular and plural. |
Same problem with "Services", singularify transform this word into "Servicious" using the rule for mice-mouse. |
I also faced the problem of converting word: series. Link from StringUtil http://en.scribd.com/doc/27703164/3271143-List-of-100-Irregular-Plural-Nouns-in-English Agree with the @TeLiXj, name convert is a very dangerous thing. If you convert the parameter name, then make sure that checks for methods with the original name. |
Must also add to the exclusion of the word: news |
This PR was merged into the 2.3 branch. Discussion ---------- Added more exceptions to singularify method | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16532 | License | MIT | Doc PR | - Added exceptions for `series`, `news` and `services`. Commits ------- f5daa0d Added more exceptions to singularify method
Closing it as fixed by #17745. |
I've got problem with propertyAccessor.
I need to get singular form of property with name "DataSeries".
StringUtil::singularify() transfomrs it to "DataSery" but it should be "DataSerie".
Maybe you should do something like doctrine inflector (https://github.com/doctrine/inflector/blob/master/lib/Doctrine/Common/Inflector/Inflector.php).
The text was updated successfully, but these errors were encountered: