From: Vincent Vanwaelscappel Date: Fri, 28 Jul 2023 13:02:04 +0000 (+0200) Subject: wip #6183 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=250e89143111eaf0a5af92a2fce5f422b9350924;p=cubist_util.git wip #6183 @0.25 --- diff --git a/src/Data.php b/src/Data.php index 1b4ba09..1a360f2 100644 --- a/src/Data.php +++ b/src/Data.php @@ -210,7 +210,13 @@ class Data implements \ArrayAccess */ public function getRawData() { - return $this->_data; + $res = $this->_data; + foreach ($res as $k => $v) { + if ($v instanceof Data) { + $res[$k] = $v->getRawData(); + } + } + return $res; } public function setRawData(array $data)