michael reddick wrote:

> something like this i think is what you're after...
>
> $schema->resultset('User')->search(
>  { items.id => { '!=' => undef },
>  {
>     join => 'items'
>     group_by => 'me.id',
>  }
> );

I think that would work, although using the "right" join type seems more 
natural and might be even more efficient.
-- 
Bernhard Graf

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to