diff --git a/src/SoftDeleteable/Filter/SoftDeleteableFilter.php b/src/SoftDeleteable/Filter/SoftDeleteableFilter.php index 9958099006..f37be7d11e 100644 --- a/src/SoftDeleteable/Filter/SoftDeleteableFilter.php +++ b/src/SoftDeleteable/Filter/SoftDeleteableFilter.php @@ -71,7 +71,7 @@ public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAli $column = $quoteStrategy->getColumnName($config['fieldName'], $targetEntity, $platform); - $addCondSql = $platform->getIsNullExpression($targetTableAlias.'.'.$column); + $addCondSql = $targetTableAlias.'.'.$column . ' IS NULL'; if (isset($config['timeAware']) && $config['timeAware']) { $addCondSql = "({$addCondSql} OR {$targetTableAlias}.{$column} > {$platform->getCurrentTimestampSQL()})"; }