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

Allow (Array)ParameterType in QueryBuilder #11287

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Feb 21, 2024

Replaces #11279, fixes #11278.

This PR continues the work done by @hanishsingla and adds a few tests.

Changing the signature of QueryBuilder::setParameter() is technically a BC break, but we cannot fix the bug without breaking BC, I'm afraid. Let's hope nobody overrides the setParameter() method of 3.0 yet. 🤞🏻

greg0ire
greg0ire previously approved these changes Feb 21, 2024
@derrabus derrabus force-pushed the bugfix/parameter-types branch 2 times, most recently from f208f3c to edd11b6 Compare February 22, 2024 08:07
@derrabus derrabus force-pushed the bugfix/parameter-types branch from edd11b6 to 708146b Compare February 22, 2024 08:19
@derrabus derrabus merged commit 44fa5d3 into doctrine:3.0.x Feb 22, 2024
64 checks passed
@derrabus derrabus deleted the bugfix/parameter-types branch February 22, 2024 08:31
@derrabus
Copy link
Member Author

Thank you @hanishsingla!

@derrabus
Copy link
Member Author

Test backported to 2.x as #11288.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doctrine\ORM\QueryBuilder::setParameter and ArrayParameterType in DBAL 4.0.0
3 participants