[Dbix-class] DBIx::Class:Schema::Loader has_many relationship names

Matt S Trout dbix-class at trout.me.uk
Fri Feb 24 15:16:08 CET 2006


On Fri, Feb 24, 2006 at 02:54:47PM +0100, Adam Sjøgren wrote:
> On Fri, 24 Feb 2006 12:42:02 +0000, Matt wrote:
> 
> > That's because the default inflect code doesn't handle plurals - if you
> > want non-default behaviour, pass it an inflect_map option.
> 
> (Ok - I was trying to ask what the default behaviour is supposed to be
> :-))

Right. Schema::Loader is quite new so the docs aren't as comprehensive as
they might be yet.

> > I can see your reasoning but the vast majority of users (I think) have
> > singular table names rather than plural, so the default config caters to
> > that.
> 
> Ok, that makes sense (the default working with what most people do).
> 
> Do most people really name their tables in the singular? I find that
> quite confusing.

I tend to, but that's more so my class name and table name correspond than
anything else. I suppose it's very much a matter of taste :)

-- 
     Matt S Trout       Offering custom development, consultancy and support
  Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Dbix-class mailing list