From d98b711fee2e80d2857df49c766b02d3843db4e0 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 26 Nov 2024 17:53:13 +1300 Subject: [PATCH] FIX Do not mark changed when setting value in constructor --- src/ORM/FieldType/DBField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }