[Dbix-class] relationship with additional constraints?

Andrew Beverley andy at andybev.com
Thu May 17 21:37:57 GMT 2018


On Thu, 17 May 2018 20:25:07 +0000 mst at shadowcat.co.uk wrote:
> Surely http://p3rl.org/DBIx::Class::ParameterizedJoinHack is exactly
> what's needed here - just use it on a belongs_to rel with a join_type of
> left so non-matching entries are still returned, then prefetch that rel?
> 
> (ironic since I'm replying to the man who was kind enough to sponsor Shadowcat
> to develop that module in the first place :)

Indeed - I didn't mention it as it's in the opening paragraph of Frew's
blog that I linked to ;-)

Andy



More information about the DBIx-Class mailing list