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

Fix discriminator handling with partial discriminator maps #2005

Merged
merged 2 commits into from
Apr 28, 2019

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Apr 12, 2019

Q A
Type bug
BC Break no
Fixed issues

Summary

While working on #2002, I noticed that the detection logic wasn't quite right. So I expanded the failing test submitted by @josefsabl to cover more use cases to make sure we're getting the discriminator logic correct.

Note that this doesn't fix this bug for 2.0, as we need to adapt the logic there a little bit to cover for the (expected) exceptions. While debugging, I also noticed an issue where the PersistenceBuilder modifies the ClassMetadata which definitely shouldn't happen.

@alcaeus alcaeus added the Bug label Apr 12, 2019
@alcaeus alcaeus added this to the 1.3.0 milestone Apr 12, 2019
@alcaeus alcaeus self-assigned this Apr 12, 2019
@alcaeus alcaeus changed the title Fix discriminator map handling Fix discriminator handling with partial discriminator maps Apr 12, 2019
@alcaeus alcaeus requested a review from malarzm April 12, 2019 11:31
@alcaeus alcaeus force-pushed the fix-discriminator-map-handling branch from 20bbe62 to 7b2c90a Compare April 15, 2019 05:56
@alcaeus alcaeus force-pushed the fix-discriminator-map-handling branch from 7b2c90a to 7e64a4f Compare April 17, 2019 09:03
@alcaeus alcaeus force-pushed the fix-discriminator-map-handling branch from 7e64a4f to 6545496 Compare April 23, 2019 08:49
@alcaeus alcaeus merged commit e443cf2 into doctrine:1.3.x Apr 28, 2019
@alcaeus alcaeus deleted the fix-discriminator-map-handling branch April 28, 2019 10:58
@alcaeus alcaeus mentioned this pull request Apr 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants