Skip to content

Commit

Permalink
feat: fix deprecation for AbstractPlatform->getIsNullExpression()
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris8934 committed Jun 7, 2023
1 parent 55e9499 commit b9b289f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SoftDeleteable/Filter/SoftDeleteableFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()})";
}
Expand Down

0 comments on commit b9b289f

Please sign in to comment.