Please sign in to comment.
Reset eager loaders before triggering before find.
In #10657 I made a change to reset eager loaders when creating a clone to fix state being shared across query clones. Because of method ordering this resulted in the eager loader being reset *after* the beforeFind was triggered, which dropped any contained associations added during that event. Re-ordering the method calls allows contained associations added during the beforeFind to be retained in the count() query. Refs #10813
- Loading branch information...
Showing with 29 additions and 1 deletion.