On 3/26/07, Jeff Chimene <[EMAIL PROTECTED]> wrote:
> John Siracusa wrote:
>> On 3/23/07, Jeff Chimene <[EMAIL PROTECTED]> wrote:
>>> How do I eliminate the following error message?
>>> $ perl ./fred.pl
>>> Subroutine init_db redefined at inspectDB/DB/Object/AutoBase1.pm line 7.
>>
>> AutoBaseNNN.pm classes are the automatically generated RDBO base
>> classes created by the Loader.  How is the inspectDB::Access class
>> being created?  I suspect that's where your problem is, not in the
>> Manager.
>
> That's also created w/ make_methods(). Here is the (truncated) source.
>
>     package inspectDB::Access;
>     use strict;
>     use base qw(inspectDB::DB::Object::AutoBase1);
>     __PACKAGE__->meta->setup(
>         table   => 'access',
>     <snip>
>     );
>     1;
>
> I see a reference to AutoBase1 here as well. So, what's the proper way
> to reference the results of make_methods()?

I think you mean make_modules(), not make_methods(), right?  Are you
using the Loader to produce a bunch of .pm files, or are you using it
to create a bunch of classes in memory only?  Either way, can you post
a self-contained example including a simple db schema and then the
Loader call and any other code needed to trigger the "init_db
redefined" error you described earlier?

-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