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

Bump ORM requirements, fix translation walker handling of paginated queries #2920

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Feb 9, 2025

Fix #2917

Note that the ORM bump here isn't strictly necessary, but in all honesty, it looks to massively simplify the patch because of the changes in the root SqlWalker class which brought about the SqlOutputWalker class. I think the trick if you're looking for a patch that doesn't bump the ORM dependency range boils down to having the code use the createSqlForFinalizer method for the newer releases and walkSelectStatement for the older ones to do the actual AST to SQL transformation. I can figure that out if the bump is deemed too much but simplifying the compat layer fixes this just as effectively.

Copy link

codecov bot commented Feb 9, 2025

Codecov Report

Attention: Patch coverage is 63.63636% with 4 lines in your changes missing coverage. Please review.

Project coverage is 78.53%. Comparing base (910c4ba) to head (8fc9664).

Files with missing lines Patch % Lines
src/Tool/ORM/Walker/SqlWalkerCompatForOrm2.php 50.00% 2 Missing ⚠️
src/Tool/ORM/Walker/SqlWalkerCompatForOrm3.php 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2920      +/-   ##
==========================================
- Coverage   78.63%   78.53%   -0.10%     
==========================================
  Files         171      168       -3     
  Lines        8771     8760      -11     
==========================================
- Hits         6897     6880      -17     
- Misses       1874     1880       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mbabker mbabker force-pushed the translation-limit-fix branch from aec4f6c to 8fc9664 Compare February 9, 2025 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid SQL generated by TranslationWalker when using LIMIT
1 participant