[Catalyst] strange generated DBIC accessor name
th at dix.cz
th at dix.cz
Wed Mar 10 13:15:09 GMT 2010
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" },
);
Other names seems to be predictable:
__PACKAGE__->has_many(
"company_addresses",
"Jf::Schema::Result::CompanyAddress",
{ "foreign.role" => "self.id" },
);
I have no "people" pattern in my database. Did I miss something?
The schema has been generated as usual:
script/jf_create.pl model DB DBIC::Schema Jf::Schema create=static \
'dbi:Pg:dbname=jf' tomas
Thanx,
Tomas
More information about the Catalyst
mailing list