Re: [Catalyst] Tutorial : Schema Generator

2010-08-10 Thread Mark A. Stratman
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

[Catalyst] Tutorial : Schema Generator

2010-08-02 Thread Greg Zapp
Hey guys! I'm working my way through the tutorial chapters and I keep running on this issue. Here is some output from the static schema loader: __PACKAGE__-set_primary_key(user_id, role_id); __PACKAGE__-belongs_to(role_id, MyApp::Schema::Result::Role, { id = role_id });