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 520ce73d851..a840fc7f58b 100644 --- a/src/ORM/FieldType/DBField.php +++ b/src/ORM/FieldType/DBField.php @@ -518,6 +518,14 @@ public function CDATA() 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 ''