Commit 37b371bc authored by Rezouce's avatar Rezouce

Fixes #736

parent 6e9b5f4f
......@@ -233,7 +233,7 @@ abstract class EmbedsOneOrMany extends Relation
// Get raw attributes to skip relations and accessors.
$attributes = $this->parent->getAttributes();
$embedded = isset($attributes[$this->localKey]) ? (array) $attributes[$this->localKey] : [];
$embedded = isset($attributes[$this->localKey]) ? (array) $attributes[$this->localKey] : null;
return $embedded;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment