On Fri, Dec 21, 2007 at 02:56:07PM -0600, Ted Zlatanov wrote:
> I couldn't find an example in the docs of how to set up
> Rose::DB::Object::Loader with a properly pluralizing convention manager.
> I tried the following, but I keep getting a class called "Currencie"
> from a table called "currencies" for example.  I must be missing
> something.

>  # Set the new singular-to-plural function
>  $cm->singular_to_plural_function(\&Lingua::EN::Inflect::PL);

you want to change plural_to_singular_function (currencies -> Currency), not
the other way around.

hdp.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to