[Dbix-class] No such column

Craig dbix at seaperl.com
Thu Sep 13 16:25:54 GMT 2007

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.

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__->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 =>
__PACKAGE__->has_many(country => 'DB::Main::country');
__PACKAGE__->has_many(site => 'DB::Main::boards');


More information about the DBIx-Class mailing list