Skip to content

Commit

Permalink
Merge pull request #983 from ongr-io/7.0
Browse files Browse the repository at this point in the history
fixed normalization of null embedded objects
  • Loading branch information
einorler authored Feb 15, 2023
2 parents 932577b + cb954e8 commit fec2527
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Mapping/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public function convertDocumentToArray($document): array

protected function normalize($document, $metadata = null)
{
if ($document === null) {
return null;
}

$metadata = $metadata ?? $this->propertyMetadata[get_class($document)];
$result = [];

Expand Down

0 comments on commit fec2527

Please sign in to comment.