On Wed, Mar 10, 2010 at 7:29 AM, <[email protected]> wrote: >>> 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. > > Yes, that makes sense. > > I changed the name from "person" to persona to avoid that. > And than I got plural "personae" :-) > > This is apparently linguistically perfect, but I rather prefer to have > consistent (ugly) naming.. > > Does anybody knows how invoke the *_create script to avoid that? > > > thanx, > Tomas > > >> Regards, >> Denny >> >> > >
This discussion really belongs on the DBIx::Class mailing list, not on the Catalyst mailing list. http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class As Frazer posted above, yes, you can override this: http://search.cpan.org/~rkitover/DBIx-Class-Schema-Loader-0.05003/lib/DBIx/Class/Schema/Loader/Base.pm#inflect_plural -J _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
