Skip to content

Commit 44e5653

Browse files
committed
Fix PostgresQL test (a stab in the dark)
1 parent 2d4c8b7 commit 44e5653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Doctrine/Tests/ORM/Functional/Ticket/GH5998Test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private function classTests($className): void
5555
$this->_em->clear();
5656

5757
// Test query by id with fetch join
58-
$child = $this->_em->createQuery('SELECT t, r FROM ' . $className . ' t JOIN t.rel r WHERE t.id = 1')->getOneOrNullResult();
58+
$child = $this->_em->createQuery('SELECT t, r FROM ' . $className . ' t JOIN t.rel r WHERE t.id = ?0')->setParameter(0, $child->id)->getOneOrNullResult();
5959
self::assertNotNull($child);
6060

6161
// Test lock and update

0 commit comments

Comments
 (0)