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
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/