Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^4: DBIx and ManyToMany Relationships

by kiz (Monk)
on May 30, 2012 at 14:10 UTC ( #973291=note: print w/ replies, xml ) Need Help??

in reply to Re^3: DBIx and ManyToMany Relationships
in thread DBIx and ManyToMany Relationships

(Noting the comment below)

The search model is currently:

$c->stash( repos => [ $c->model('ORIdatabase::Repo') ->search( {}, #$what, { join => {'contentlinks' => 'content'} , prefetch => {'contentlinks' => 'content'} , rows => $params->{'limit'} } ) ] );

And buried at the end of the hash/object returned are the data fields the query returns...

-- Ian Stuart
A man depriving some poor village, somewhere, of a first-class idiot.

Comment on Re^4: DBIx and ManyToMany Relationships
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-11-26 17:59 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (705 votes), past polls