-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
#6625 Skip proxy generation for embeddable classes #6626
Conversation
This works for me when using a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just some small nitpicking 😄
|
||
$num = $this->proxyFactory->generateProxyClasses([$cm]); | ||
|
||
$this->assertEquals(0, $num, "No proxies generated."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use self::assertSame()
instead
|
||
$num = $this->proxyFactory->generateProxyClasses([$cm]); | ||
|
||
$this->assertEquals(0, $num, "No proxies generated."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use self::assertSame()
instead
@@ -75,6 +75,26 @@ public function testReferenceProxyDelegatesLoadingToThePersister() | |||
$proxy->getDescription(); | |||
} | |||
|
|||
public function testSkipMappedSuperClassesOnGeneration() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add @group 6625
on the docblock
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And add : void
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add
@group 6625
on the docblock
Although this test case is unrelated with #6625 actually? I just found that test case is missing, thus I added. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True that, sorry 😉
$this->assertEquals(0, $num, "No proxies generated."); | ||
} | ||
|
||
public function testSkipEmbeddableClassesOnGeneration() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add @group 6625
on the docblock
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And add : void
@lcobucci Fixed! |
@lcobucci btw, should this change be shipped to 2.5 branch too, right? The bug seems appeared in 2.5.7. |
@issei-m yes, I'm currently doing that. |
Fix #6625