[Dbix-class] order_by interfering with has_many fetch
Peter Rabbitson
rabbit+dbic at rabbit.us
Sun Jan 28 15:36:36 GMT 2018
On 11/16/2015 09:18 PM, Darin McBride wrote:
> On Monday November 16 2015 7:20:17 PM Peter Rabbitson wrote:
>> What does this say then:
>>
>> Dwarn { $planet_rs->result_source->unique_constraints }
>>
>> Something screwy is going on with the metadata layer...
>
>
> {
> primary => [
> "id"
> ]
> }
>
> This makes it look like this line:
>
> # tell DBIC that this is unique so it can be sorted properly when dealing
> # with has_many, prefetch, and order_by
> __PACKAGE__->add_unique_constraint(name => ['name']);
>
> isn't doing anything.
Hi Darin!
My notes around this time are a bit jumbled. I was wondering if you
could refresh my memory: did we ever fix this problem you were having?
Thanks!
More information about the DBIx-Class
mailing list