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; }