Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Class::DBI cascading delete problem?

by zigdon (Deacon)
on Sep 27, 2004 at 18:54 UTC ( #394293=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://394293]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2019-05-27 05:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (154 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!