[Dbix-class] specify join type

Bernhard Graf dbic3 at augensalat.de
Thu Feb 19 16:35:10 GMT 2009


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




More information about the DBIx-Class mailing list