-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
<anything>_data singularization returns unexpected result (<anything>_datum) #137
Comments
AFAICT Inflector is designed to work with single words. Trying to make it work with two words (separated by either space or whatever else like |
That's possible, however I opened this topic in Laravel and they referenced me here, it can cause big problems in some cases - laravel/framework#31517 (comment) |
If you could come up with some tests or a list of expected behaviour I can take a look. |
looks like the behaviour has changed or Laravel's making some further string manipulation (not quite likely according to their response), however tested doctrine/inflector: 1.3.1
|
Singularization of
foo_data
returnsfoo_datum
Even if datum can be considered to be the singular form of data, I think in the case of the lib use it can be quite confusing. Singularization of
data
returnsdata
, as one would expect.The text was updated successfully, but these errors were encountered: