[Omaha.pm] DBIx::Class::Schema::Loader moniker_map
Jay Hannah
jhannah at omnihotels.com
Wed Oct 14 19:15:37 PDT 2009
Hey, looky there...
By default DBIx::Class::Schema::Loader creates the class 'XfHotelcode'
from the database table 'xf_hotelCode'.
If you don't like that conversion of casing and underscore changes,
simply override 'moniker_map' to whatever you prefer.
http://search.cpan.org/~ilmari/DBIx-Class-Schema-Loader-0.04006/lib/DBIx
/Class/Schema/Loader/Base.pm#moniker_map
Handy. :)
j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20091014/1fdda88f/attachment.html>
More information about the Omaha-pm
mailing list