We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e9b5f4 commit 37b371bCopy full SHA for 37b371b
src/Jenssegers/Mongodb/Relations/EmbedsOneOrMany.php
@@ -233,7 +233,7 @@ protected function getEmbedded()
233
// Get raw attributes to skip relations and accessors.
234
$attributes = $this->parent->getAttributes();
235
236
- $embedded = isset($attributes[$this->localKey]) ? (array) $attributes[$this->localKey] : [];
+ $embedded = isset($attributes[$this->localKey]) ? (array) $attributes[$this->localKey] : null;
237
238
return $embedded;
239
}
0 commit comments