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
3.0, Inflector, Missing uninflected singular rule makes address->addres in bake #5428
Comments
I think your problem is a different one. |
Indeed, good point. But is it a bug or a feature of bake trying to singularize? |
I think the issue is bake possibly singularizing a singular value. That will go wrong in many ways. |
Didn't we fix the issue of bake trying to singularize already singular names? |
@spiliot Would be good to know if you used the latest version and/or latest 3.0 branch and confirmed that this is still an issue. |
I'm still getting it in the latest 1452111e44fe2aad9. The relevant field in the table is Stack trace (if it is of any help): |
Sounds like your associations could be defined wrongly. Can you please add them here? |
I don't have any associations manually setup, I'm running |
The problem is
|
I can take care of that tonight. |
Closing as a pull request is open now. |
In 2.x there is an uninflected rule for singular words ending in
.*ss
.Since the inflector structure seems to have changed in 3.0, if a table contains an
address_id
bake looks for a tableaddres
(note single ending s).Obviously
Inflector::rules('singular', ['/^address/i' => '\0'])
does the trick for this word but I think a more global solution is needed.The text was updated successfully, but these errors were encountered: