-
Notifications
You must be signed in to change notification settings - Fork 96
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
Array of enums not supported #320
Comments
I have the same problem |
Same problem here on |
It also applies to other types:
results in
|
Still present with doctrine/orm 3.1.3 |
Still present on doctrine/orm 3.2.0 |
Still present...
|
Is it correct that only |
Any DBAL type mapping to a PHP array is supported. |
Still present with doctrine/orm 3.2.2 while "handling" a form |
@Legendary4226 This is a closed and fixed issue. If you have any problems, open a new issue and describe your problem in full detail. |
Issue was fixed but a new one appeared which I can't fully understand. My previously ignored error:
was replaced by
This is my entity property:
This is my Enum:
|
@ServerExe the type |
I see. Sorry, I missed your comment at the top where you already described it! My bad. So, best solution would be to pick The only thing I am afraid of is: If enum types contain a comma in their string, this could break Doctrines simple_array logic because values are separated via comma in the column. That's the reason I chose JSON |
doctrine/orm
2.12.0 now supports arrays of enums, see doctrine/orm#9497This is the syntax:
phpstan is reporting:
The text was updated successfully, but these errors were encountered: