Remove mapper is in metadata only mode as it's really meaningless and expected.

This commit is contained in:
arabcoders
2025-05-17 00:03:19 +03:00
parent 9d9294b08a
commit 770f3b8383

View File

@@ -402,15 +402,16 @@ class DirectMapper implements ImportInterface
return $this;
}
if (true === $metadataOnly) {
return $this;
}
if ($entity->isWatched() !== $local->isWatched()) {
$reasons = [];
if (true === $entity->isTainted()) {
$reasons[] = 'event marked as tainted';
}
if (true === $metadataOnly) {
$reasons[] = 'mapper is in metadata only mode';
}
if (count($reasons) < 1) {
$reasons[] = 'Abnormal state detected.';