Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

DBIx::Class and many-to-many searching

by BrentDax (Hermit)
on May 30, 2006 at 07:58 UTC ( [id://552424]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    schema::articles->has_many(taglinks => 'schema::links', 'article');
    schema::links->belongs_to(article => 'schema::articles');
    schema::links->belongs_to(tag => 'schema::tags');
    schema::tags->has_many(articlelinks => 'links', 'tag');
    schema::articles->many_to_many(tags => taglinks => 'tag');
    schema::tags->many_to_many(articles => articlelinks => 'article');
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://552424]
Approved by planetscape
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-24 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found