[Dbix-class] 'DBIx::Class::ResultSet::next(): No such relationship' when join with more than two tables

Peter Rabbitson rabbit+dbic at rabbit.us
Thu Mar 4 12:43:11 GMT 2010


David wrote:
> Hi,
> 
> I have got the error message "DBIx::Class::ResultSet::next(): No such
> relationship.." when I try to do a join with more than two tables.
> 
>  { join => {b_a' => 'b' => 'b_c'}

This isn't even valid perl. You are defining a hash with a 3 element list.

You probably wanted join => { b_a => { b => { 'b_c' } } }

Cheers



More information about the DBIx-Class mailing list