Skip to content

Commit

Permalink
Update src/Database/Traits/SoftDelete.php
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers authored Oct 19, 2023
1 parent d1c2fe1 commit c2d402a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Database/Traits/SoftDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ protected function performSoftDeleteOnRelations()
if (!array_get($options, 'softDelete', false)) {
continue;
}
// Attempt to load the related record(s)
if (!$relation = $this->{$name}) {
continue;
}
Expand Down

0 comments on commit c2d402a

Please sign in to comment.