We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35c63f2 commit 43ade40Copy full SHA for 43ade40
src/Picqer/Financials/Moneybird/Model.php
@@ -227,6 +227,13 @@ private function getArrayWithNestedObjects($useAttributesAppend = true)
227
$result[$attributeNameToUse] = (object)$result[$attributeNameToUse];
228
}
229
230
+
231
+ if (
232
+ $multipleNestedEntities[$attributeName]['type'] === self::NESTING_TYPE_NESTED_OBJECTS
233
+ && empty($result[$attributeNameToUse])
234
+ ) {
235
+ $result[$attributeNameToUse] = new \StdClass();
236
+ }
237
238
239
0 commit comments