From 66dd915d4d05071dcd33af30f7192cba455866bb Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Mon, 24 May 2021 12:59:39 +0100 Subject: [PATCH] FIX Build classes even if they have been overridden --- src/ORM/DatabaseAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ORM/DatabaseAdmin.php b/src/ORM/DatabaseAdmin.php index 2898a72e899..788740ea62c 100644 --- a/src/ORM/DatabaseAdmin.php +++ b/src/ORM/DatabaseAdmin.php @@ -293,7 +293,7 @@ public function doBuild($quiet = false, $populate = true, $testMode = false) } // Check if this class should be excluded as per testing conventions - $SNG = singleton($dataClass); + $SNG = $dataClass(); if (!$testMode && $SNG instanceof TestOnly) { continue; }