[Catalyst] Database schema -- Can't locate object method "new" via package

Matt S Trout dbix-class at trout.me.uk
Fri Jun 16 20:37:01 CEST 2006


Sarah Berry wrote:
> Matt,
> 
> Thanks for the suggestions. But
> 
> my $schema = $c->model("SLogDB")->schema;
> 
> gives me
> 
> Caught exception in vieSEB::Controller::dbixdemo->default "Can't
> locate object method "schema" via package "vieSEB::Model::SensorLogDB"

SLogDB vs. SensorLogDB => confused. what's going on?

> As far as the classes, "tblsmaps" is the name of a table in the
> database that contains information on the location of sensors. I'm
> trying to search this table, which was set up by the schema loader if
> I did that part right (which is far from certain).

Have a look at what models Catalyst tells you you've got on startup ...

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list