Janne Snabb wrote:
> On Fri, 7 Oct 2011, [email protected] wrote:
> 
>> i'm new using DBIx::Class.
> 
> I was also very recently. After figuring it out it is very pleasant
> apart from a couple of oddities.
> 
>> First question : why my table named regles (with a ending 's')
>> gives me a pm file Regle.pm (without ending 's') ?
> 
> I got bitten by this also.
> 
> It is doing some magic with English language. I got around of this
> simply by sticking with table names which do not end with "s". There
> is probably some proper way to tell DBIx::Class that it should NOT
> make an assumption that the table names are in English, but I have
> not found it in documentation yet. Maybe someone else can give further
> details on this?

I believe the POD to read is at
http://search.cpan.org/~rkitover/DBIx-Class-Schema-Loader-0.07010/lib/DBIx/Class/Schema/Loader/Base.pm#naming
I don't know whether that gives you enough flexibility, but it probably
provides a strong enough hint as to which bit of code to comment out if
you want to disable the name mangling entirely.

Cheers, Dave

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to