| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 8 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); | ||
| 25 | public function testFindEntityByAssociationPropertyJoinedChildWithClearMetadata(): void | ||
| 26 |     { | ||
| 27 | // unset metadata for entity B as though it hasn't been touched yet in application lifecycle. | ||
| 28 | $this->_em->getMetadataFactory()->setMetadataFor(GH7512EntityB::class, null); | ||
| 29 | $result = $this->_em->getRepository(GH7512EntityC::class)->findBy([ | ||
| 30 | 'entityA' => new GH7512EntityB() | ||
| 31 | ]); | ||
| 32 | $this->assertEmpty($result); | ||
| 33 | } | ||
| 84 |