Skip to content

Commit 1921447

Browse files
committed
fix: fix filter condition for one to many cleanup
1 parent b7e17a8 commit 1921447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataAbstractionLayer/ObsoleteRelationsDeleter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private function getDeletePrimaryKeys(CleanupRelationData $cleanupRelation, Cont
9393
$this->getMainPrimaryKey($cleanupRelation->parentPrimaryKey),
9494
),
9595
);
96-
$criteria->addFilter(new NotFilter(MultiFilter::CONNECTION_AND, $existingIdFilters));
96+
$criteria->addFilter(new NotFilter(MultiFilter::CONNECTION_OR, $existingIdFilters));
9797

9898
return $repository->searchIds($criteria, $context)->getIds();
9999
}

0 commit comments

Comments
 (0)