in reply to DBIx::Class - Count with prefetch creates nested query

Maybe I'm missing something. The real usecase is very complicated, but I've simplified it.

Can you do that with your code?

Remember: Ne dederis in spiritu molere illegitimi!

Replies are listed 'Best First'.
Re^2: DBIx::Class - Count with prefetch creates nested query
by stepamil (Acolyte) on Jul 06, 2015 at 12:18 UTC

    Hi, I've updated the code with real example

      Hi, I was really suggesting that you should simplify your actual code ... if it makes you say "it's very complicated" when you try to explain it or post some of it to get help, there is probably room to simplify it, likely by breaking it up into smaller chunks. That's what I meant.

      But looking at what you posted, I see an error in your calls to DBIx::Class::ResultSource::add_columns, in the misspelling of the accessor param ... a clue, maybe?

      Remember: Ne dederis in spiritu molere illegitimi!