mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: DataObjectTest needs its extensions to use the new static-on-object method to keep the ordering as it expects
This commit is contained in:
parent
7c94caa0cc
commit
bc3f5ac329
@ -1098,18 +1098,15 @@ class DataObjectTest_FieldlessSubTable extends DataObjectTest_Team implements Te
|
|||||||
|
|
||||||
|
|
||||||
class DataObjectTest_Team_Extension extends DataExtension implements TestOnly {
|
class DataObjectTest_Team_Extension extends DataExtension implements TestOnly {
|
||||||
|
|
||||||
function extraStatics($class=null, $extension=null) {
|
static $db = array(
|
||||||
return array(
|
'ExtendedDatabaseField' => 'Varchar'
|
||||||
'db' => array(
|
);
|
||||||
'ExtendedDatabaseField' => 'Varchar'
|
|
||||||
),
|
static $has_one = array(
|
||||||
'has_one' => array(
|
'ExtendedHasOneRelationship' => 'DataObjectTest_Player'
|
||||||
'ExtendedHasOneRelationship' => 'DataObjectTest_Player'
|
);
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function getExtendedDynamicField() {
|
function getExtendedDynamicField() {
|
||||||
return "extended dynamic field";
|
return "extended dynamic field";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user