Skip Menu |

This queue is for tickets about the DBIx-Class-Schema-Loader CPAN distribution.

Report information
The Basics
Id: 44935
Status: resolved
Priority: 0/
Queue: DBIx-Class-Schema-Loader

People
Owner: Nobody in particular
Requestors: titus.byronicus [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.04999_06
Fixed in: (no value)



Subject: Please allow user to configure moniker inflection (plural or singular)
It's possible to use moniker_map to change whether the class name should be the singular or plural of the table name, but a separate option to change the default inflection would be really handy. In other words, I'd like to be able to write: __PACKAGE__->loader_options( default_moniker_inflect_plural => 1 ); Instead of: __PACKAGE__->loader_options( moniker_map => sub { join '', map ucfirst, split /[\W_]+/, Lingua::EN::Inflect::Number::to_P(lc shift) } ); Thanks! Byron
- add naming => { monikers => 'preserve' } or 'singular'/'plural' to control moniker inflection (RT#44935) in git
Fixed in 0.07011 You can use: naming => { monikers => 'plural' } or naming => { monikers => 'singular' } or naming => { monikers => 'preserve' }