mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
2.13.2 breaks *array* of enums #7045
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ThomasLandauer on GitHub (Sep 24, 2022).
Bug Report
Summary
When having an array of enums like this:
I'm getting this error:
I'm guessing that https://github.com/doctrine/orm/pull/10041 broke it, since @michnovka was referring to a string column:
Workaround
For anybody else observing this, a workaround for now is to add this to your
composer.jsonto continue using 2.13.1:Next Step
Well, I think it's about time to properly document arrays of enums at https://www.doctrine-project.org/projects/doctrine-orm/en/2.13/reference/basic-mapping.html - I'll come up with a PR after getting some feedback here.
@greg0ire commented on GitHub (Sep 24, 2022):
Can you provide a test case for this? Also, please note that the code has already changed since 2.13.2: #10058
@michnovka commented on GitHub (Sep 24, 2022):
@ThomasLandauer I believe that https://github.com/doctrine/orm/pull/10058 fixes this issue, but please do provide a test case, we should push it for CI sake
@ThomasLandauer commented on GitHub (Oct 7, 2022):
There you go - my first attempt for a test here ;-) https://github.com/doctrine/orm/pull/10111
Please take a look, I probably need some help there.
Anyway, the issue itself does indeed look fixed in v2.13.3, so I'm closing here.