diff --git a/src/ORM/DataObject.php b/src/ORM/DataObject.php index ddc46561c9f..586db64a941 100644 --- a/src/ORM/DataObject.php +++ b/src/ORM/DataObject.php @@ -964,7 +964,7 @@ public function classDescription(): ?string public function i18n_classDescription(): ?string { $notDefined = 'NOT_DEFINED'; - $description = _t(static::class.'.CLASS_DESCRIPTION', $this->classDescription() ?? $notDefined); + $description = _t(static::class . '.CLASS_DESCRIPTION', $this->classDescription() ?? $notDefined); if ($description === $notDefined) { return null; } diff --git a/src/ORM/FieldType/DBField.php b/src/ORM/FieldType/DBField.php index 8fb3756b2c2..0d1ee98e99c 100644 --- a/src/ORM/FieldType/DBField.php +++ b/src/ORM/FieldType/DBField.php @@ -128,7 +128,7 @@ public function __construct(?string $name = null, array $options = []) } // Setting value needs to happen below the call to setOptions() in case the default value is set there $value = $this->getDefaultValue(); - $this->setValue($value); + $this->setValue($value, markChanged: false); parent::__construct(); }