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

Ensure consistent original data with enums #10088

Merged
merged 1 commit into from Dec 20, 2022

Commits on Dec 7, 2022

  1. Ensure consistent original data with enums

    Previously different hydrators would store the original data for enum
    fields in different ways, the SimpleObjectHydrator would keep them as
    strings while other hydrators would convert then to native php enums.
    
    This would make the data in the internal UnitOfWork::$originalEntityData
    array inconsistent which could've caused problems in the long run.
    
    Now, all hydrators convert enum fields to native php enums ensuring the
    original data is always consistent regardless of the hydrator used.
    HypeMC committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    9d5ab4c View commit details
    Browse the repository at this point in the history