Skip to content

Commit

Permalink
fix: qualifying pivot table column for whereDate filter
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzarbn committed Dec 23, 2021
1 parent 40d24d5 commit 50acdad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/Standard/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ protected function buildPivotFilterNestedQueryWhereClause(
if ($treatAsDateField && Carbon::parse($filterDescriptor['value'])->toTimeString() === '00:00:00') {
$query->addNestedWhereQuery(
$query->newPivotStatement()->whereDate(
$query->qualifyPivotColumn($field),
$query->getTable().".{$field}",
$filterDescriptor['operator'],
$filterDescriptor['value']
)
Expand Down

0 comments on commit 50acdad

Please sign in to comment.