[Dbix-class] Re: 'DBIx::Class::ResultSet::next(): No such
relationship' when join with more than two tables
Dagfinn Ilmari Mannsåker
ilmari at ilmari.org
Thu Mar 4 12:48:24 GMT 2010
Peter Rabbitson <rabbit+dbic at rabbit.us> writes:
> 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.
It's valid, it'll yield { b_a => 'b', b_c => undef }, and an "Odd number
of elements in anonymous hash" warning, which is probably not what the
OP wanted.
--
ilmari
"A disappointingly low fraction of the human race is,
at any given time, on fire." - Stig Sandbeck Mathisen
More information about the DBIx-Class
mailing list