[Dbix-class] specify join type

Bernhard Graf dbic3 at augensalat.de
Thu Feb 19 17:11:21 GMT 2009


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



More information about the DBIx-Class mailing list