[Catalyst] Re: Help needed on DBIx::Class::Schema::RestrictWithObject

Mario Minati mario.minati at googlemail.com
Wed Dec 5 19:46:42 GMT 2007


On Wednesday 05 December 2007 04:49:46 Jonathan Rockway wrote:
> On Wed, 2007-12-05 at 00:28 +0100, Mario Minati wrote:
> > I am still trying to get this stuff working, still not sucessfully.
> >
> > I created a new modell class according to
> > http://www.shadowcat.co.uk/catalyst/-talks/oscon/crucible.xul
> >
> > But I always get compilation errors:
> > Couldn't instantiate
> > component "glue::Model::DBIC::RestrictedSchema",
> > "->config->{schema_class} must be defined for this model at
> > ./script/glue_server.pl line 53" at ./script/glue_server.pl line 53
>
> You need to define schema_class in the class's configuration.  Just like
> any DBIC schema, and just like the error message tells you :P
>
> FWIW, I do this:
>
> http://git.jrock.us/?p=doqueue.git;a=blob;f=lib/DoQueue/Model/DBIC/Restrict
>ed.pm;h=bfc2e66adb9322ed5105f9560d4ea2dc527c809e;hb=f67e9aecf50e9935955ce787
>2dc1c56caa6bfdaf

Thanks Jonathan.

I just found the reason for my problem:
The module was in the Model directory which will never work as in is just 
meant to be a base class and not autoloaded.

Now it's working.

Greets,
Mario



More information about the Catalyst mailing list