diff --git a/src/ORM/Marshaller.php b/src/ORM/Marshaller.php index 8405f812e4b..feedd34d58c 100644 --- a/src/ORM/Marshaller.php +++ b/src/ORM/Marshaller.php @@ -589,7 +589,7 @@ public function merge(EntityInterface $entity, array $data, array $options = []) if (array_key_exists($field, $properties)) { $entity->set($field, $properties[$field]); if ($properties[$field] instanceof EntityInterface) { - $entity->isDirty($field, $properties[$field]->isDirty()); + $entity->setDirty($field, $properties[$field]->isDirty()); } } }