We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 828ba68 commit 4dbfd73Copy full SHA for 4dbfd73
src/Filters/TrashedFilter.php
@@ -7,10 +7,7 @@ class TrashedFilter extends SQLFilter
7
{
8
public function addFilterConstraint(ClassMetadata $metadata, $table)
9
10
- if ($this->isSoftDeletable($metadata->rootEntityName))
11
- return "{$table}.deleted_at IS NULL OR CURRENT_TIMESTAMP < {$table}.deleted_at";
12
-
13
- return '';
+ return $this->isSoftDeletable($metadata->rootEntityName) ? "{$table}.deleted_at IS NULL OR CURRENT_TIMESTAMP < {$table}.deleted_at" : '';
14
}
15
16
private function isSoftDeletable($entity)
0 commit comments