in reply to Re: Class::DBI cascading delete problem?
in thread Class::DBI cascading delete problem?

__PACKAGE__->has_many('PartTypes' => 'MyCDBI::PartType', 'typeid');
Hmm. Either I'm confused, or you are? This means (in the Org package), that the PartType is storing the orgid key in the 'typeid' column? Which is not the same as saying
__PACKAGE__->has_many('PartTypes' => ['MyCDBI::PartType', 'typeid']);
Which means
return map { $_->typeid } $org->PartTypes;
Or am I confused?

-- zigdon