diff --git a/tests/Doctrine/Tests/ORM/Functional/OneToOneBidirectionalAssociationTest.php b/tests/Doctrine/Tests/ORM/Functional/OneToOneBidirectionalAssociationTest.php index def63205e4a..fb7199fe4eb 100644 --- a/tests/Doctrine/Tests/ORM/Functional/OneToOneBidirectionalAssociationTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/OneToOneBidirectionalAssociationTest.php @@ -77,8 +77,8 @@ public function testEagerLoad(): void public function testLazyLoadsObjectsOnTheOwningSide(): void { $this->createFixture(); - $metadata = $this->_em->getClassMetadata(ECommerceCart::class); - $metadata->associationMappings['customer']['fetchMode'] = ClassMetadata::FETCH_LAZY; + $metadata = $this->_em->getClassMetadata(ECommerceCart::class); + $metadata->associationMappings['customer']['fetch'] = ClassMetadata::FETCH_LAZY; $query = $this->_em->createQuery('select c from Doctrine\Tests\Models\ECommerce\ECommerceCart c'); $result = $query->getResult();