diff --git a/library/Director/PropertyModifier/PropertyModifierDictionaryToRow.php b/library/Director/PropertyModifier/PropertyModifierDictionaryToRow.php index 2a60ab3e2..f3bb6bd12 100644 --- a/library/Director/PropertyModifier/PropertyModifierDictionaryToRow.php +++ b/library/Director/PropertyModifier/PropertyModifierDictionaryToRow.php @@ -78,6 +78,9 @@ public function transform($value) } $result = []; foreach ($value as $key => $properties) { + if (is_array($properties)) { + $properties = (object) $properties; + } if (! is_object($properties)) { throw new InvalidDataException( sprintf('Nested "%s" dictionary', $key), @@ -87,7 +90,7 @@ public function transform($value) $properties->$keyColumn = $key; $result[] = $properties; - } + } return $result; }