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

fix: always cleanup in AbstractHydrator::toIterable() #11101

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

simPod
Copy link
Contributor

@simPod simPod commented Dec 2, 2023

Related to #6480

Closes #11419

@derrabus
Copy link
Member

derrabus commented Dec 2, 2023

Can we please add a test?

@oleg-andreyev
Copy link
Contributor

oleg-andreyev commented Apr 22, 2024

@derrabus @simPod please take a look #11419

@simPod simPod force-pushed the cleanup branch 2 times, most recently from 0e5e318 to aa4961e Compare April 22, 2024 12:02
@simPod
Copy link
Contributor Author

simPod commented Apr 22, 2024

@oleg-andreyev thank you. I have incorporated your test into the PR and cleaned it up.

@simPod
Copy link
Contributor Author

simPod commented Apr 22, 2024

@derrabus psalm failures seems irrelevant

@greg0ire
Copy link
Member

@simPod you are targeting an unmaintained branch.

@greg0ire greg0ire changed the base branch from 2.17.x to 2.19.x April 24, 2024 05:55
@greg0ire
Copy link
Member

Retargeted, please address the conflicts.

@simPod
Copy link
Contributor Author

simPod commented Apr 24, 2024

done, thanks

@greg0ire
Copy link
Member

greg0ire commented Apr 24, 2024

No more Psalm failures :)

@greg0ire
Copy link
Member

Please squash both commits and improve your commit message according to the contributing guide.

@derrabus derrabus added this to the 2.19.5 milestone Apr 25, 2024
@derrabus
Copy link
Member

While you're at it, please add the author of the test using a Co-authored-by trailer.

@simPod
Copy link
Contributor Author

simPod commented Apr 25, 2024

sure, done

Previously it didn't cleanup anything as long as the iteration hasn't reached the final row.

Co-authored-by: Oleg Andreyev <oleg.andreyev@lampa.lv>
@derrabus derrabus merged commit cbec236 into doctrine:2.19.x Apr 25, 2024
56 checks passed
@derrabus
Copy link
Member

Thank you!

@simPod simPod deleted the cleanup branch April 25, 2024 08:33
derrabus added a commit that referenced this pull request May 21, 2024
* 3.2.x:
  Using an integer as discriminator value with ORM v3
  Using an integer as discriminator value with ORM v3
  Bump ramsey/composer-install from 2 to 3 (#11442)
  Use ramsey/composer-install in PHPBench workflow (#11444)
  Bump doctrine/.github from 3.0.0 to 5.0.1
  Upgrade codecov/codecov-action
  Setup Dependabot
  Make test compatible with PHP 7.1
  Fix deprecation layer
  Remove unused test group
  Keep entities in identity map until the scheduled deletions are executed.
  Update association-mapping.rst
  fix: always cleanup in `AbstractHydrator::toIterable()` (#11101)
  Respect orderBy for EAGER fetch mode
  fix(docs): typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants