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

Revert changes to embeddable mapping in 2.7 #8138

Merged
merged 3 commits into from May 12, 2020

Conversation

beberlei
Copy link
Member

The PRs #8006 and #8036 broke embeddables in many different use-cases, so we are safer to revert them both.

@beberlei beberlei added this to the 2.7.3 milestone May 12, 2020
@beberlei beberlei requested review from lcobucci and malarzm May 12, 2020 17:19
malarzm
malarzm previously approved these changes May 12, 2020
lcobucci
lcobucci previously approved these changes May 12, 2020
Copy link
Member

@lcobucci lcobucci left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Bad can of worms... looking forward for v3.0

@@ -404,10 +404,10 @@ private function getShortName($className)
private function addInheritedFields(ClassMetadata $subClass, ClassMetadata $parentClass)
{
foreach ($parentClass->fieldMappings as $mapping) {
if (! isset($mapping['inherited']) && ! $parentClass->isMappedSuperclass && ! $parentClass->isEmbeddedClass) {
if ( ! isset($mapping['inherited']) && ! $parentClass->isMappedSuperclass) {
Copy link
Member

Choose a reason for hiding this comment

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

It's sad we have so many CS violations on v2.x 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants