On Aug 2, 2010, at 5:39 PM, Greg Zapp wrote:
> I keep having to manually change 'role_id' and 'user_id' to 'role' and
> 'user'. My data base is MySQL and I have the foreign keys setup in the
> UserRole table. Why is this happening? It happens for the BookAuthor as
> well, and it causes checksum mismatches due to my manual intervention:(
Try passing a 'naming' option when you generate the schema:
http://search.cpan.org/~rkitover/DBIx-Class-Schema-Loader-0.07001/lib/DBIx/Class/Schema/Loader/Base.pm#naming
e.g. naming='{relationships=>"current",monikers=>"current"}'
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/