Skip to content

Commit 62fb93c

Browse files
committed
DbalType::addType: Fix broken edgecase combination of dbal+orm versions
1 parent d24ac05 commit 62fb93c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Lib/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ private function createEntityManager(
257257
$entityManager = new EntityManager($connection, $config);
258258

259259
if (DbalType::hasType(PrimaryKey::DOCTRINE_TYPE_NAME)) {
260-
DbalType::overrideType(PrimaryKey::DOCTRINE_TYPE_NAME, $primaryKey);
260+
DbalType::overrideType(PrimaryKey::DOCTRINE_TYPE_NAME, $primaryKey::class);
261261
} else {
262-
DbalType::addType(PrimaryKey::DOCTRINE_TYPE_NAME, $primaryKey);
262+
DbalType::addType(PrimaryKey::DOCTRINE_TYPE_NAME, $primaryKey::class);
263263
}
264264

265265
$schemaTool = new SchemaTool($entityManager);

0 commit comments

Comments
 (0)