[Dbix-class] did not return a true value

Matt S Trout dbix-class at trout.me.uk
Thu May 29 12:08:47 BST 2008


On Tue, May 27, 2008 at 02:58:27PM -0700, Jennifer Ahn wrote:
> hi!
> 
> i created a Dual table which selects from dual.
> however, i get this error when i try to instantiate the class:
> 
> Couldn't instantiate component... "Cannot load schema class 'MyDB': 
> DBIx::Class::Schema::throw_exception(): MyDB/Dual.pm did not return a 
> true value at /usr/lib/perl5/site_perl/5.8.8/Class/C3/Componentised.pm 
> line 126.
> 
> has anybody run into a similar problem?

A .pm file must return a true value or it's assumed to have failed to load.

This is standard perl - if you don't know this I suggest you buy yourself
a copy of either Learning Perl or Beginning Perl and read through it.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the DBIx-Class mailing list