From b167f470d768f246869ca517fed3f5b781aa15f3 Mon Sep 17 00:00:00 2001 From: Thomas Portelange Date: Thu, 21 Mar 2024 15:31:59 +0100 Subject: [PATCH] ENH Add Nice to DBField Fixes https://github.com/silverstripe/silverstripe-framework/issues/11169 (cherry picked from commit 2c35b8d84a1a2f50cd363af270c8da2c3eb7f897) --- src/ORM/FieldType/DBField.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ORM/FieldType/DBField.php b/src/ORM/FieldType/DBField.php index 520ce73d8..a840fc7f5 100644 --- a/src/ORM/FieldType/DBField.php +++ b/src/ORM/FieldType/DBField.php @@ -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 ''