We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7391e25 commit b2d0c21Copy full SHA for b2d0c21
tests/Doctrine/Tests/ORM/Functional/Ticket/GH7512Test.php
@@ -35,9 +35,9 @@ protected function setUp(): void
35
36
public function testFindEntityByAssociationPropertyJoinedChildWithClearMetadata(): void
37
{
38
- // unset metadata for entity B as though it hasn't been touched yet in application lifecycle.
39
- $this->_em->getMetadataFactory()->setMetadataFor(GH7512EntityB::class, null);
40
- $result = $this->_em->getRepository(GH7512EntityC::class)->findBy([
+ // pretend we are starting afresh
+ $this->_em = $this->getEntityManager();
+ $result = $this->_em->getRepository(GH7512EntityC::class)->findBy([
41
'entityA' => new GH7512EntityB(),
42
]);
43
$this->assertEmpty($result);
0 commit comments