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

[10.x] Convert Expression to string for from in having subqueries #48525

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

ikari7789
Copy link
Contributor

@ikari7789 ikari7789 commented Sep 25, 2023

Attempting to override the having from inside of the whereHaving() callback will fail due to the removal of __toString() logic with Laravel 10.x.

This adds back the ability to override the local table with a subquery in the having, which worked on previous versions of Laravel before 10.x.

@taylorotwell taylorotwell marked this pull request as draft September 26, 2023 21:29
Copy link
Contributor

@tpetry tpetry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now but didn't run it myself.

@ikari7789
Copy link
Contributor Author

@tpetry thank you for your check. If there's anything more for me to help, please let me know. I haven't contributed to Laravel much so not too familiar with the typical flow.

@ikari7789 ikari7789 marked this pull request as ready for review September 28, 2023 00:18
@taylorotwell taylorotwell merged commit 4b22e39 into laravel:10.x Sep 28, 2023
20 checks passed
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.

3 participants