diff --git a/src/Filters/TrashedFilter.php b/src/Filters/TrashedFilter.php index 3dd5f67..31f1c30 100644 --- a/src/Filters/TrashedFilter.php +++ b/src/Filters/TrashedFilter.php @@ -10,6 +10,6 @@ public function addFilterConstraint(ClassMetadata $metadata, $table) { } private function isSoftDeletable($entity) { - return array_key_exists('Mitch\LaravelDoctrine\Traits\SoftDeletes', class_uses_recursive(get_class($entity))); + return array_key_exists('Mitch\LaravelDoctrine\Traits\SoftDeletes', class_uses_recursive($entity)); } -} \ No newline at end of file +}