Re: [Dbix-class] Re: Explicit class naming

2013-02-15 Thread Dag-Erling Smørgrav
Will Crawford writes: > Dagfinn Ilmari Mannsåker writes: > > Dag-Erling Smørgrav writes: > > > Is there a way to force the class name, perhaps by passing a hash > > > to DBIx::Schema::Loader that maps the (case insensitive) table > > > name to a (case sensitive) class name? > > This is exactly w

Re: [Dbix-class] Re: Explicit class naming

2013-02-14 Thread Will Crawford
I've used moniker_map in a few places, but before I realised I could use it, I named a table cached_v_a_t_numbers to get the same effect :) Do look at the inflect_{singular,plural} attributes too, if you're tweaking the result source names you may want to tweak some of the accessor / relation name