Is it possible to specify the join type for the result set?

E.g. I have a user who might have several items, but I want only those  
users, that actually have items.

E.g. this gives me a left join:

$schema->resultset('User')->search(
  {},
  {
     join => 'items'
     group_by => 'me.id',
  }
);

I've found
http://search.cpan.org/dist/DBIx-Class/lib/DBIx/Class/ResultSet.pm#from
but it seems cumbersome and comes with a big warning.

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