Skip to content

Commit 22d6688

Browse files
committed
Do not remove identifier when computing difference
1 parent a764759 commit 22d6688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rest/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ private static function dataDiff(array $data1, array $data2): array
378378
$diff[$key1] = $recursiveDiff;
379379
}
380380
} else {
381-
if ($value1 != $data2[$key1]) {
381+
if ($value1 != $data2[$key1] || $key1 === static::$PRIMARY_KEY) {
382382
$diff[$key1] = $value1;
383383
}
384384
}

0 commit comments

Comments
 (0)