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 EnumType not being hydrated with HYDRATE_ARRAY #9995

Merged

Conversation

kvush
Copy link
Contributor

@kvush kvush commented Aug 16, 2022

Fixes #9947

add new processEnum method in ArrayHydrator

remedge
remedge previously approved these changes Aug 16, 2022
@derrabus derrabus added the Bug label Aug 30, 2022
@derrabus
Copy link
Member

Sorry for picking up your PR that late. Can you please rebase your PR on 2.13.x? If I do so locally, I get a couple of test failures that seem to be related to your changes.

@kvush kvush force-pushed the fix_EnumType_with_HYDRATE_ARRAY_returns_string branch from 53e488e to ed691e1 Compare August 31, 2022 03:52
@kvush
Copy link
Contributor Author

kvush commented Aug 31, 2022

Thanks @derrabus, it was my new enum field in CmsUser that broke bunch of existing tests. So I decides do not touch CmsUser and cover my test cases with another Entity. Now all looks good.

@janatjak
Copy link
Contributor

@derrabus is there anything else that needs to be improved please?

@derrabus derrabus added this to the 2.13.2 milestone Sep 14, 2022
@derrabus derrabus changed the title fix EnumType with HYDRATE_ARRAY returns string #9947 Fix EnumType not being hydrated with HYDRATE_ARRAY Sep 14, 2022
@derrabus derrabus merged commit bb3ce7e into doctrine:2.13.x Sep 14, 2022
@derrabus
Copy link
Member

Thank you!

derrabus added a commit to derrabus/orm that referenced this pull request Sep 21, 2022
* 2.14.x:
  PHPStan 1.8.5, Psalm 4.27.0 (doctrine#10033)
  Fix EnumType not being hydrated with HYDRATE_ARRAY (doctrine#9995)
  "Strange" return lines in documentation of inheritance-mapping.rst (doctrine#10027)
  More strange break lines in inheritance-mapping.rst (doctrine#10028)
derrabus added a commit to derrabus/orm that referenced this pull request Sep 22, 2022
* 2.14.x:
  PHPStan 1.8.5, Psalm 4.27.0 (doctrine#10033)
  Fix EnumType not being hydrated with HYDRATE_ARRAY (doctrine#9995)
  "Strange" return lines in documentation of inheritance-mapping.rst (doctrine#10027)
  More strange break lines in inheritance-mapping.rst (doctrine#10028)
  Add phpdoc for discriminatorColumn
derrabus added a commit that referenced this pull request Sep 22, 2022
@derrabus
Copy link
Member

I've reverted this PR with 5f29fcd in favor of #10041.

@derrabus derrabus removed this from the 2.13.2 milestone Sep 22, 2022
@greg0ire greg0ire added this to the 2.13.2 milestone Sep 22, 2022
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.

EnumType with HYDRATE_ARRAY returns string
5 participants