Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by MrCromeDome (Deacon)
on Oct 29, 2004 at 21:20 UTC ( #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

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

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
Node Status?
node history
Node Type: note [id://403914]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2021-04-11 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?