[Catalyst] Tutorial : Schema Generator
Mark A. Stratman
stratman at gmail.com
Tue Aug 10 20:27:56 GMT 2010
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"}'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100810/f072d079/attachment.htm
More information about the Catalyst
mailing list