Hi Sebastian:
I do have the set_primary_key call before the add_columns call. Should it be the reverse?
Also I added the source below.
Craig.

Sebastian Willert wrote:
Do you by chance have your set_primary_key call before the actual
add_columns?

Having the source for your module would be a great benefit in hunting
bugs there, by the way ;)

Cheers,
  Sebastian

package DB::Main::jobsearch;
use base qw/DBIx::Class/;

__PACKAGE__->load_components(qw/PK::Auto Core/);
__PACKAGE__->table('job_search');
__PACKAGE__->set_primary_key('job_id');
__PACKAGE__->add_columns(qw/date_in editted company
location stateprov country type telecommute position
contact email site url repsonded date_heard interview
impression details/);
__PACKAGE__->has_many(stateprov =>
'DB::Main::stateprov');
__PACKAGE__->has_many(country => 'DB::Main::country');
__PACKAGE__->has_many(site => 'DB::Main::boards');

1;


_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]

Reply via email to