in reply to trying out Maypole: Class::DBI::Loader calling set_db?

The set_db method comes from Class:DBI. In theory the MsfdbMaypole::People class should have been set up properly by Class::DBI::Loader, but that does not seem to be the case, as it doesn't seem to have properly inherited from Class::DBI...

Does Class::DBI(::Loader) work stand-alone for you?

use Class::DBI::Loader; my $loader = Class::DBI::Loader->new( dsn => "dbi:mysql:test", user => "root", password => "", namespace => "IsfdbMaypole", additional_classes => qw/Class::DBI::AbstractSearch/, relationships => 1 ); my $person = IsfdbMaypole::People->create({name => 'J. Doe'});

Replies are listed 'Best First'.
Re^2: trying out Maypole: Class::DBI::Loader calling set_db?
by hossman (Prior) on Jan 20, 2005 at 18:23 UTC

    Hmm, aparently not. That test case resulted in the same error. Thanx for the suggestion.

    Do you have any idea why this happens?

    (I'll try to dig into the docs of Class::DBI::Loader a little more after i get off work.)