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

Re: Re: Joins with Class::DBI

by thpfft (Chaplain)
on Jul 19, 2003 at 23:14 UTC ( [id://275948]=note: print w/replies, xml ) Need Help??


in reply to Re: Joins with Class::DBI
in thread Joins with Class::DBI

Not quite. This would be correct if there were a one-to-many relationship between authors and books (ie if each book was allowed only one author), but the OP has a many-to-many relationship there - presumably on the grounds that some books have several authors - and, like everyone, is wondering how to make the joining table invisible. The short answer is that s/he does have to create a My::DB::AuthorBook joining class, but s/he will probably never need to access it directly. It's in the pod under 'mapping', a subheading of 'relationships'.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-03-28 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found