in reply to Re: DBIx::Class and many-to-many searching
in thread DBIx::Class and many-to-many searching
tag.tag is likely not what you want:
$_= $_->id() for @with, @without; my @articles= $schema->resultset('articles')->search( {}, { join => { 'articlelinks' => 'tag' }, 'tag.tag' => { '-not_in' => \@without, '-in' => \@with }, }, );
- tye
|
|---|