From 32446ed197af5572db8abed5f2ba8b752fe4b69a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 21 Jan 2023 20:34:59 +0100 Subject: [PATCH] Use the right property association mappings do not have a fetchMode property, they have a fetch property. --- .../ORM/Functional/OneToOneBidirectionalAssociationTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/OneToOneBidirectionalAssociationTest.php b/tests/Doctrine/Tests/ORM/Functional/OneToOneBidirectionalAssociationTest.php index 8adb6c005ff..c6049093bd0 100644 --- a/tests/Doctrine/Tests/ORM/Functional/OneToOneBidirectionalAssociationTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/OneToOneBidirectionalAssociationTest.php @@ -75,8 +75,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();