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

SchemaValidator: Fix mapped superclass missing in discriminator map #8903

Conversation

olsavmic
Copy link
Contributor

@olsavmic olsavmic commented Aug 9, 2021

Fixes #8771

I'm not sure if it's actually valid case for a MappedSuperclass to be a part of the DiscriminatorMap.

It looks like the discussion continues in #8415, #7825.

This is a fix for the current behaviour so that it does not block people from upgrading to ORM 2.9

@olsavmic olsavmic changed the title Fix mapped superclass missing in discriminator map SchemaValidator: Fix mapped superclass missing in discriminator map Aug 9, 2021
@olsavmic olsavmic force-pushed the fix-schema-validator-for-mapped-superclass-inheritance branch from 6386dec to db17aaa Compare August 9, 2021 14:21
@olsavmic olsavmic force-pushed the fix-schema-validator-for-mapped-superclass-inheritance branch from db17aaa to 5685dc0 Compare August 9, 2021 14:24
@olsavmic
Copy link
Contributor Author

olsavmic commented Aug 20, 2021

@greg0ire @beberlei @derrabus Could I get a review please?

It's a tiny change resolving an issue that's been open for a month already.

@vojtabiberle
Copy link

Great fix @olsavmic

This will help me too. Can someone please review it?

Copy link
Member

@SenseException SenseException left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It technically works, but I don't know if this is supposed to work that way. Additional reviewers are needed.

@SenseException SenseException requested review from beberlei, greg0ire, morozov and a team September 4, 2021 22:23
@greg0ire greg0ire merged commit 7fcab3d into doctrine:2.9.x Sep 8, 2021
@greg0ire greg0ire added the Bug label Sep 8, 2021
@greg0ire greg0ire added this to the 2.9.6 milestone Sep 8, 2021
@greg0ire
Copy link
Member

greg0ire commented Sep 8, 2021

Thanks @olsavmic !

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.

Doctrine ORM 2.9: MappedSuperclass in entity hierarchy
4 participants