Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Class::DBI has_a() relationships with multi-value keys

by MrCromeDome (Deacon)
on Oct 29, 2004 at 21:20 UTC ( [id://403914]=note: print w/replies, xml ) Need Help??


in reply to Re: Class::DBI has_a() relationships with multi-value keys
in thread Class::DBI has_a() relationships with multi-value keys

So do I do that in my parent class? If so, what does it look like in the child's definition? Or did I miss something? ;)

MrCromeDome

Replies are listed 'Best First'.
Re^3: Class::DBI has_a() relationships with multi-value keys
by perrin (Chancellor) on Oct 29, 2004 at 21:33 UTC
    You just do that in the parent class, i.e. the one that is holding a copy of other class' primary key in its table. If you want a has_many method in the child class that goes the other way, you could code one of those too, using a search() instead of retrieve().

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-03-28 19:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found