Skip to content

Commit

Permalink
fix ambigous deleted_at column name
Browse files Browse the repository at this point in the history
  • Loading branch information
ddzobov committed Mar 13, 2020
1 parent 3b8b715 commit f564198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Relations/BelongsToManySoft.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ protected function performJoin($query = null)
$query->join($this->table, $key, '=', $this->getQualifiedRelatedPivotKeyName());

$query->when($this->withSoftDeletes, function (Builder $query) {
$query->whereNull($this->deletedAt());
$query->whereNull($this->getQualifiedDeletedAtColumnName());
});

return $this;
Expand Down

0 comments on commit f564198

Please sign in to comment.