ENH Add Nice to DBField

Fixes https://github.com/silverstripe/silverstripe-framework/issues/11169

(cherry picked from commit 2c35b8d84a1a2f50cd363af270c8da2c3eb7f897)
This commit is contained in:
Thomas Portelange 2024-03-21 15:31:59 +01:00 committed by Thomas
parent 1c2e1f86a5
commit b167f470d7
1 changed files with 8 additions and 0 deletions

View File

@ -518,6 +518,14 @@ abstract class DBField extends ViewableData implements DBIndexable
return $this->XML();
}
/**
* @return string
*/
public function Nice()
{
return $this->XML();
}
/**
* Returns the value to be set in the database to blank this field.
* Usually it's a choice between null, 0, and ''