Remove mapper is in metadata only mode as it's really meaningless and expected.
This commit is contained in:
@@ -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.';
|
||||
|
||||
Reference in New Issue
Block a user