Skip to content

Commit fec2527

Browse files
authored
Merge pull request #983 from ongr-io/7.0
fixed normalization of null embedded objects
2 parents 932577b + cb954e8 commit fec2527

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Mapping/Converter.php

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ public function convertDocumentToArray($document): array
4747

4848
protected function normalize($document, $metadata = null)
4949
{
50+
if ($document === null) {
51+
return null;
52+
}
53+
5054
$metadata = $metadata ?? $this->propertyMetadata[get_class($document)];
5155
$result = [];
5256

0 commit comments

Comments
 (0)