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

Turn identity map collisions from exception to deprecation notice #10878

Merged

Commits on Aug 4, 2023

  1. Turn identity map collisions from exception to deprecation notice

    In doctrine#10785, a check was added that prevents entity instances from getting into the identity map when another object for the same ID is already being tracked.
    
    This caused regressions for users that work with application-provided IDs and expect this condition to fail with `UniqueConstraintViolationExceptions` when flushing to the database.
    
    Thus, this PR turns the exception into a deprecation notice. Users can opt-in to the new behavior. In 3.0, the exception will be used.
    
    Implements doctrine#10871.
    mpdude committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    588a200 View commit details
    Browse the repository at this point in the history