Skip to content

Commit

Permalink
Fix the path of the nested property
Browse files Browse the repository at this point in the history
Allows you to filter on nested properties going up the path
  • Loading branch information
LoicComparet committed Jun 17, 2021
1 parent a917886 commit de639c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bridge/Elasticsearch/Util/FieldDatatypeTrait.php
Expand Up @@ -76,7 +76,7 @@ private function getNestedFieldPath(string $resourceClass, string $property): ?s
) {
$nestedPath = $this->getNestedFieldPath($nextResourceClass, implode('.', $properties));

return null === $nestedPath ? $nestedPath : "$currentProperty.$nestedPath";
return null === $nestedPath ? $currentProperty : "$currentProperty.$nestedPath";
}

if (
Expand Down

0 comments on commit de639c6

Please sign in to comment.