[Dbix-class] extra condition in join

Marc Logghe logghe.marc at gmail.com
Tue Jul 12 16:42:02 GMT 2011


Hi,
I wanted to add an extra condition in a join like this:

$lite_schema->class('Thingy')->add_relationship(
   "fixed_position",
  "Foo::Bar",
  { 'foreign.thingy_number' =3D> 'self.thingy_num', 'foreign.library' =3D> =
{ '=3D'
=3D> $library}},
  { join_type =3D> 'left outer'}
  );

Seems a reasonable $cond argument to me, but:
DBIx::Class::ResultSet::next(): Invalid rel cond val HASH(0x830f0c0)

Seems like the second part  ('foreign.library' =3D> { '=3D' =3D> $library})=
 of the
$cond is not correct after all ?
What I am doing wrong here ?
Thanks and regards,
Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20110712/e10=
7f290/attachment.htm


More information about the DBIx-Class mailing list