[Catalyst] strange generated DBIC accessor name

Denny 2010 at denny.me
Wed Mar 10 13:36:06 GMT 2010


On Wed, 2010-03-10 at 14:15 +0100, th at dix.cz wrote:
> Hello catal[yi]sters,
> 
> I'm going to be crazzy about one generated accessor name:
> 
> __PACKAGE__->has_many(
>    "company_people",         # I expected to be "company_persons"
>    "Jf::Schema::Result::CompanyPerson",
>    { "foreign.role" => "self.id" },
> );
> 
> I have no "people" pattern in my database. Did I miss something?

People is the correct plural of person.  Apparently Catalyst uses
something fairly clever to generate the plurals for relationship names.

Regards,
Denny

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100310/099851bb/attachment.pgp


More information about the Catalyst mailing list