Skip to content

Commit

Permalink
Add bc layer
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Aug 16, 2022
1 parent 2688e4b commit f3d5a65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Result/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public function convertToDocument($rawData, Manager $manager)

if (isset($types[$rawData['_type']])) {
$metadata = $types[$rawData['_type']];
} elseif ($rawData['_type'] === '_doc') {
$metadata = reset($types);
} else {
throw new \LogicException("Got document of unknown type '{$rawData['_type']}'.");
}
Expand Down

0 comments on commit f3d5a65

Please sign in to comment.