Skip to content
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

why finally sql's tablename have sor es #257

Open
class4cxy opened this issue Mar 31, 2015 · 1 comment
Open

why finally sql's tablename have sor es #257

class4cxy opened this issue Mar 31, 2015 · 1 comment

Comments

@class4cxy
Copy link

habo = model.register('habo', habo);
==>
SELECT habos ....

habo = model.register('habos', habo);
==>
SELECT habos ....

habo = model.register('haboss', habo);
==>
SELECT habosses ....

@danfinlay
Copy link
Contributor

The pluralization is handled by utilities, a grab-bag of functions that aren't really documented, but are easy to figure out from the source.

String manipulation functions are handled in the string library, and in particular, pluralization is handled here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants