holli has asked for the wisdom of the Perl Monks concerning the following question:
This is the code:Couldn't instantiate component "Infocenter::Model::InfoDB", "Cannot load schema class 'Infocenter::Schema::InfoDB': DBIx::Class::Schema::throw_exception(): Can't locate object method "resultset_class" via package "Infocenter:: +Schema::InfoDB::AuSchuldner" at ...
As it seems the inheritance is not working, but I dont know why. I am sure its something simple, plez send the codezpackage Infocenter::Schema::InfoDB::AuSchuldner; use strict; use warnings; #use base 'Infocenter::Schema::InfoDB::Result'; use base 'DBIx::Class'; __PACKAGE__->resultset_class('Infocenter::Schema::InfoDB::ResultSet::A +uSchuldner'); __PACKAGE__->load_components("Core"); __PACKAGE__->table("au_schuldner"); __PACKAGE__->add_columns( "id", { data_type => "integer", is_nullable => 0, size => 4, }, .... package Infocenter::Schema::InfoDB::ResultSet::AuSchuldner; use strict; use warnings; use lib qw(./lib ../lib); use base 'DBIx::Class::ResultSet'; 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: trouble subclassing DBIx::Class Resultsets (when using Catalyst?)
by Anonymous Monk on Mar 30, 2008 at 13:25 UTC | |
|
Re: trouble subclassing DBIx::Class Resultsets (when using Catalyst?)
by shmem (Chancellor) on Mar 30, 2008 at 19:31 UTC | |
|
Re: trouble subclassing DBIx::Class Resultsets (when using Catalyst?)
by Anonymous Monk on Mar 30, 2008 at 13:20 UTC | |
|
Re: trouble subclassing DBIx::Class Resultsets (when using Catalyst?)
by holli (Abbot) on Apr 04, 2008 at 19:50 UTC | |
by Anonymous Monk on Oct 09, 2008 at 07:37 UTC |