-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Numbers in a string using underscore naming strategy #7855
Comments
Possibly a bug in https://github.com/doctrine/inflector? |
Not really: orm/lib/Doctrine/ORM/Mapping/UnderscoreNamingStrategy.php Lines 136 to 145 in a36809d
|
Seems an easy pick, though |
Was totally convinced it would be using the inflector there :D @vuras feel free to send a patch (and test) for |
Sorry, I got the patch already 😬 There's just one problem, though: it affects table names like Possible BC break, then, so I'll force it to only work for properties. |
Thank you! When should I expect the 2.6.5 released? |
I'd like to say "really soon" but, realistically speaking, it should take us a few weeks since there're some bugs that should be included IMHO. |
Even this, is breaking everything, so why do this in a minor version? |
@igoel @cobyl @sGy1980de we overlooked things and this is indeed a BC break. I'll rework it and send a new patch version I'm sorry for affecting your app and thank you for letting us know of this error. |
@igoel @cobyl @sGy1980de new release made to address the BC break. We apologise, again, for the inconvenience. |
Thx, for the fast response and action 👍 |
Bug Report
Summary
If a string has numbers the naming strategy fails to convert the property name.
Current behavior
base64Encoded converts to base64encoded
How to reproduce
Add a property to entity that has a number in camelcased property name.
Expected behavior
base64Encoded converts to base64_encoded
The text was updated successfully, but these errors were encountered: