Skip to content

Commit 37b371b

Browse files
committed
Fixes #736
1 parent 6e9b5f4 commit 37b371b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenssegers/Mongodb/Relations/EmbedsOneOrMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ protected function getEmbedded()
233233
// Get raw attributes to skip relations and accessors.
234234
$attributes = $this->parent->getAttributes();
235235

236-
$embedded = isset($attributes[$this->localKey]) ? (array) $attributes[$this->localKey] : [];
236+
$embedded = isset($attributes[$this->localKey]) ? (array) $attributes[$this->localKey] : null;
237237

238238
return $embedded;
239239
}

0 commit comments

Comments
 (0)