-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 support for PHP 8.1 enums in embedded classes #9419
Conversation
Good catch, thank you! |
* 2.11.x: Add support for PHP 8.1 enums in embedded classes (doctrine#9419) Added class-string typehint on $targetEntity (doctrine#9415) Allow DiscriminatorColumn with length=0 (doctrine#9410) Move UnderscoreNamingStrategyTest to correct namespace (doctrine#9414)
The code is wrong, getAccessibleProperty can actually be null when used with a that is why in the case for a non declaredField there is an extra test for |
* 2.12.x: Add support for PHP 8.1 enums in embedded classes (doctrine#9419) Switch tests to the middleware logging system (doctrine#9418) Added class-string typehint on $targetEntity (doctrine#9415) Allow DiscriminatorColumn with length=0 (doctrine#9410) Move UnderscoreNamingStrategyTest to correct namespace (doctrine#9414)
But wouldn't the previous logic also fail in that case? The return value of |
Hm indeed, its likely embedded and entity generator have never been used in combination or the bug is somewhere deep in the list of 1k tickets ;) Since this gets all burned in a fire for 3.0 i am fine keeping it this way |
Fixes using
enumType
that was added in #9304 with embedded classes.