in reply to Class::DBI struggles

That's because you're mapping the has_many items to call the block_id accessor of the related objects. In other words, you're getting yourself back.

Change

__PACKAGE__->has_many('adslot' => ['admt::cdbi::adslot', 'blockid']);
to
__PACKAGE__->has_many('adslot' => 'admt::cdbi::adslot');
and try again :)

See http://search.cpan.org/~tmtm/Class-DBI-v3.0.14/lib/Class/DBI.pm#Mapping for the details.

Replies are listed 'Best First'.
Re^2: Class::DBI struggles
by jdtoronto (Prior) on Apr 26, 2006 at 19:06 UTC
    Thank you rhesa, after I posted I wondered if that is what I was doing.

    jdtoronto