diff --git a/src/ObjectDataRow.php b/src/ObjectDataRow.php index 4b1cdb4..28cf76b 100644 --- a/src/ObjectDataRow.php +++ b/src/ObjectDataRow.php @@ -18,7 +18,7 @@ protected function extractCellValue($fieldName) $parts = explode('.', $fieldName); $res = $this->src; foreach ($parts as $part) { - $res = is_object($res) ? $res->{$part} : $res[$part]; + $res = data_get($res, $part); if ($res === null) { return $res; }