Fixed bug in MemoryMapper preventing updating the play state

This commit is contained in:
Abdulmhsen B. A. A
2023-08-31 00:23:19 +03:00
parent 7a2cfd396d
commit 15355e5d39

View File

@@ -291,6 +291,14 @@ final class MemoryMapper implements iImport
}
}
$keys = $opts['diff_keys'] ?? array_flip(
array_keys_diff(
base: array_flip(iState::ENTITY_KEYS),
list: iState::ENTITY_IGNORE_DIFF_CHANGES,
has: false
)
);
if (true === (clone $cloned)->apply(entity: $entity, fields: $keys)->isChanged(fields: $keys)) {
$this->changed[$pointer] = $pointer;
Message::increment("{$entity->via}.{$entity->type}.updated");