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

[DoctrineBridge] Treat firstResult === 0 like null #46282

Merged
merged 1 commit into from May 6, 2022

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented May 6, 2022

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

Doctrine ORM has changed its default value for the firstResult property of Query and QueryBuilder instances from null to 0. Both values should be considered equal: Setting no offset or setting the offset to zero should yield the same results.

This new default however confuses our ORMQueryBuilderLoader because it checks for null only. This PR intends to fix that.

stof
stof approved these changes May 6, 2022
@nicolas-grekas
Copy link
Member

nicolas-grekas commented May 6, 2022

Thank you @derrabus.

@nicolas-grekas nicolas-grekas merged commit df2d674 into symfony:4.4 May 6, 2022
10 checks passed
@derrabus derrabus deleted the bugfix/first-result-zero branch May 6, 2022
@fabpot fabpot mentioned this pull request May 14, 2022
This was referenced May 27, 2022
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants