Skip to content

Commit 0fe2e47

Browse files
committed
Make deleted value configurable for SoftDeleteableFilter.php
1 parent 4d5f0d5 commit 0fe2e47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SoftDeleteable/Filter/SoftDeleteableFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAli
7070

7171
$column = $quoteStrategy->getColumnName($config['fieldName'], $targetEntity, $platform);
7272

73-
$addCondSql = $targetTableAlias.'.'.$column.' '.(isset($config['deletedValue']) ? '!= ' . $config['deletedValue'] : 'IS NULL');
73+
$addCondSql = $targetTableAlias.'.'.$column.' '.(isset($config['deletedValue']) ? '= ' . $config['deletedValue'] : 'IS NULL');
7474
if (isset($config['timeAware']) && $config['timeAware']) {
7575
$addCondSql = "({$addCondSql} OR {$targetTableAlias}.{$column} > {$platform->getCurrentTimestampSQL()})";
7676
}

0 commit comments

Comments
 (0)