__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
Which means__PACKAGE__->has_many('PartTypes' => ['MyCDBI::PartType', 'typeid']);
Or am I confused?return map { $_->typeid } $org->PartTypes;
-- zigdon
In reply to Re^2: Class::DBI cascading delete problem?
by zigdon
in thread Class::DBI cascading delete problem?
by zigdon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |