>I *think* I need to search on photos table, and join galleries<br>>and tags; but I can't seem to get the syntax right<br><br>OK, I answered part of my question. I got this query to <br>work, so I'm pretty sure my classes and relations are<br>good:<br><br> my $photo_obj = [$c->model('CatapultDB::Photos')->search(<br> { <br> 'tags.tag' => "$tag", <br> },<br> { <br> join
=> [qw/ gallery tags /],<br> }<br> )->all];<br><br>The problem arises when I try to add paging. This<br>doesn't work:<br><br> $page = $page || 1;<br> my $photo_obj = [$c->model('CatapultDB::Photos')->search(<br> { <br> 'tags.tag' => "$tag", <br>
},<br> { <br> join => [qw/ gallery tags /],<br> }<br> )->page($page)];<br><br>Removing the anonymous array doesn't work either. <br><br>Does anyone have any ideas?<br><br>/dennis<br><br>