Skip to content

Commit

Permalink
fix: replace deprecated type field for ES 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jmosul committed Jan 24, 2022
1 parent 987158a commit d70f7e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/QueryGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,11 @@ protected function applyWhereRelationship(Builder $builder, array $where, string
$compiled = $this->compileWheres($where['value']);

$relationshipFilter = 'has_' . $relationship;
$relationshipType = $relationship . '_type';

$query = [
$relationshipFilter => [
'type' => $where['documentType'],
$relationshipType => $where['documentType'],
'query' => $compiled['query'],
],
];
Expand Down

0 comments on commit d70f7e0

Please sign in to comment.