Re: [Dbix-class] relationship with additional constraints?

2018-05-18 Thread Stuart Dodds
On 17/05/18 22:25, Matt S Trout 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

Re: [Dbix-class] relationship with additional constraints?

2018-05-18 Thread Matt S Trout
On Fri, May 18, 2018 at 09:52:09AM +0200, Stuart Dodds wrote: > On 17/05/18 22:25, Matt S Trout 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

Re: [Dbix-class] relationship with additional constraints?

2018-05-18 Thread Matt S Trout
On Thu, May 17, 2018 at 10:37:57PM +0100, Andrew Beverley wrote: > On Thu, 17 May 2018 20:25:07 + m...@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