mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 17:33:15 +02:00
Upgrade to newer version breaks API using Enums #7012
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 @alexander-schranz on GitHub (Jul 20, 2022).
BC Break Report
Summary
I updated our project from the above versions and now the fields using
Enumare in:Previous behavior
The
enumdid return theenumstring not the enum object.Current behavior
The
enumnow returns theenumobject.Which ends when being serialized with JMS serializer into and breaks so the APIs:
How to reproduce
Create a field with enum and select it in previous and current version.
@derrabus commented on GitHub (Jul 20, 2022):
Was the previous behavior actually desirable? It was considered a bug and therefore fixed.
@beberlei commented on GitHub (Jul 21, 2022):
Yes previous behavior was a bug