Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by zigdon (Deacon)
on Sep 27, 2004 at 18:54 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://394293]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-23 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found