Skip to content

Commit 7d35e92

Browse files
committed
call relationship directly to allow deletes with lazy loading disabled
1 parent 284388b commit 7d35e92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CascadeSoftDeletes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected function getCascadingDeletes()
117117
protected function getActiveCascadingDeletes()
118118
{
119119
return array_filter($this->getCascadingDeletes(), function ($relationship) {
120-
return ! is_null($this->{$relationship});
120+
return ! is_null($this->{$relationship}());
121121
});
122122
}
123123
}

0 commit comments

Comments
 (0)