mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Manually create singleton when building table
This commit is contained in:
parent
0cd6665130
commit
33600c3b73
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user