diff --git a/src/Structure.php b/src/Structure.php index 68570f4..c1de388 100644 --- a/src/Structure.php +++ b/src/Structure.php @@ -360,6 +360,10 @@ public static function prepareToStore($value) return $value->toArray(); } + if ($value instanceof \stdClass) { + return $value; + } + // other objects convert to array return (array) $value; }