Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query::assembleSelect(): Apply orderBy before joining the relations #142

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

sukhwinder33445
Copy link
Contributor

@sukhwinder33445 sukhwinder33445 commented Jan 22, 2025

Otherwise, the query fails if Query::orderBy() contain relations that are not present in Query::$with.

  • Previously, Query::order() enhanced the Query::$with array, but the enhanced values were no longer taken into account for joining relations.

@sukhwinder33445 sukhwinder33445 added the bug Something isn't working label Jan 22, 2025
@sukhwinder33445 sukhwinder33445 self-assigned this Jan 22, 2025
@cla-bot cla-bot bot added the cla/signed label Jan 22, 2025
Otherwise, the query fails if `Query::orderBy()` contain relations that are not present in `Query::$with`.

- Previously, `Query::order()` enhanced the `Query::$with` array, but the enhanced values were no longer taken into account for joining relations.
@nilmerg nilmerg added this to the v0.6.2 milestone Jan 23, 2025
@nilmerg nilmerg merged commit be4125e into main Jan 23, 2025
22 checks passed
@nilmerg nilmerg deleted the fix/order-by branch January 23, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants