[Dbix-class] Passing values to a custom join condition

Andrew Beverley andy at andybev.com
Mon Jan 6 23:01:25 GMT 2014


On Mon, 2014-01-06 at 22:22 +0100, Gerhard Jungwirth wrote:
> I had the same problem like you had, and as far as I know, this is not
> supported in custom relationships. You have a few options though.

Thanks for the reply - I thought that might be the case.

> 1) Arbitrary SQL with a ResultSource::View

Thanks - I was wondering whether that might be the best solution.

> 2) The unsupported, deprecated and probably DANGEROUS "from"-attribute

Interesting - I hadn't seen that before. Potentially looks like a good
solution.

> see
> https://metacpan.org/pod/release/RIBASUSHI/DBIx-Class-0.08111/lib/DBIx/Class/ResultSet.pm#from

Well, from the above: "and if you're not 100% sure, ask the mailing list
first)", so I'd be interested to hear anybody else's opinion.

Andy





More information about the DBIx-Class mailing list