[Dbix-class] Need help with multi-join query
Dennis Daupert
ddaupert at sbcglobal.net
Mon May 21 21:13:51 GMT 2007
OK, this works:
$page = $page || 1;
my $photo_obj = [$c->model('CatapultDB::Photos')->search(
{
'tags.tag' => "$tag",
},
{
join => [qw/ gallery tags /],
page => $page,
rows => 6,
}
)->all];
...at least for the four images that share one tag; I'll
need to add that tag to more pics to test the paging.
Anyways, thanks guys!
/dennis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20070521/37214046/attachment.htm
More information about the Dbix-class
mailing list