On 3/19/07, Jeff Chimene <[EMAIL PROTECTED]> wrote:
> BTW, kudos for the make_modules() it did good job on a MySQL schema.
> I couldn't get make_classes() to work, though. From the tutorial
>
> @classes = $loader->make_classes;
>   foreach my $class (@classes)
>   {
>     if($class->isa('Rose::DB::Object'))
>     {
>       print $class->meta->perl_class_definition(braces => 'bsd',
>                                                 indent => 2), "\n";
>     }
>     else # Rose::DB::Object::Manager subclasses
>     {
>       print $class->perl_class_definition, "\n";
>     }
>   }
>
> The statement $class->isa('Rose::DB::Object')) failed "cannot call isa on
> unblessed reference" This isn't a cry for help, as the workaround was to use
> make_modules()

That's pretty odd since make_modules() calls make_classes()
internally, and also calls $class->isa('Rose::DB::Object').  Can you
print out what $class is in the case where you get that error?

-John

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to