Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Class::DBI has_many

by hardburn (Abbot)
on Dec 29, 2003 at 14:38 UTC ( [id://317439]=note: print w/replies, xml ) Need Help??


in reply to Class::DBI has_many

Now good database design, has taught me that when one has a 1:N relationship, one should construct a new table to hold that relationship.

I think you're over-normalizing here. This is a good idea for many-to-many relationships (there is no end to the half-baked ideas for doing that without a join table), but a join table on a one-to-many relationship is overkill.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

: () { :|:& };:

Note: All code is untested, unless otherwise stated

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-19 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found