Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 exploiting the Monastery: (4)
As of 2024-06-19 10:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.