Please sign in to comment.
Fix invalid SQL on paginated results.
When a query with nested matching calls was reused (via pagination), the bound EagerLoadable instances for the nested relations were re-applied incorrectly. By cloning the eagerloader objects when preparing the count() query we can side-step this issue from happening as state is no longer shared between the two query executions. Refs #10633
- Loading branch information...
Showing with 62 additions and 3 deletions.