BUG Manually create singleton when building table

This commit is contained in:
Maxime Rainville 2021-05-26 11:04:43 +12:00 committed by Guy Sartorelli
parent 0cd6665130
commit 33600c3b73

View File

@ -314,7 +314,7 @@ class DatabaseAdmin extends Controller
}
// Check if this class should be excluded as per testing conventions
$SNG = singleton($dataClass);
$SNG = new $dataClass([], DataObject::CREATE_SINGLETON);
if (!$testMode && $SNG instanceof TestOnly) {
continue;
}