Subject: | Convention manager thinks the singular of "doses" is "dos" |
I have a table called doses, resulting in classes named ::Dos, ::Dos::Manager, et cetera.
Since it has a number of foreign keys, hand-editing the output of
Rose::DB::Object::Loader's make_modules methods takes some time.
Here's the offending code from Rose::DB::Object::ConventionManager:
return $word if($word =~ s/ses$/s/i);
IMO the fix would be to change the default convention manager so that it uses one of the
Lingua:: modules to have an intelligent dictionary of singulars and plurals. I don't know if
you agree with this approach; perhaps you prefer the minimalist approach here.
Anyway, in the meantime, I guess I'll figure out how to write a custom convention manager.
Thanks,