[Israel.pm] what is wrong with DBIx::CLASS ...?
rami doqa
rod082 at yahoo.com
Mon Sep 4 09:42:44 PDT 2006
Hello, I am new in DBIx::CLASS and when i tried to do
the following:
my @all_prod= $schema->resultset('Product')->all;
I get the following error:
# error
DBIx::Class::Schema::resultset(): Can't find source
for Product at test.pl line 19
INIT failed--call queue aborted.
# end of error
===
Product is a class that has the following lines:
use base qw/DBIx::Class/;
__PACKAGE__->load_components(qw/PK::Auto Core/);
__PACKAGE__->table('products');
__PACKAGE__->add_columns(qw/ id desc img
avail_quantity gross price currency /);
__PACKAGE__->set_primary_key('id');
......etc
Can anyone tell me what the problem is?
Regards,
Dakka, Rami
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Perl
mailing list