From f0ecaff79829ca610850c662b0f30c948f983f67 Mon Sep 17 00:00:00 2001 From: Bruce Wells Date: Fri, 22 Dec 2023 18:39:45 -0500 Subject: [PATCH] Not updating if field is the default value on insertOrUpdate --- src/PHPFUI/ORM/Record.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/PHPFUI/ORM/Record.php b/src/PHPFUI/ORM/Record.php index b435d6e..62520fb 100644 --- a/src/PHPFUI/ORM/Record.php +++ b/src/PHPFUI/ORM/Record.php @@ -897,11 +897,6 @@ private function privateInsert(bool $updateOnDuplicate, string $ignore = '') : i { $definition = static::$fields[$key]; - if (\array_key_exists(self::DEFAULT_INDEX, $definition) && $value === $definition[self::DEFAULT_INDEX]) - { - continue; - } - if (! \in_array($key, static::$primaryKeys)) { $updateSql .= $comma . '`' . $key . '` = ?';