You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a collection of objects similar to the Collection object in the Books example on the website, however it crashes when it gets to unmarshalling it since it seems to think a setter is required for structure types. I believe the code fix should be:
$setter = $ast->getSetMethod();
if ($setter != null) {
$parentObject->$setter( $parsedObject );
} else {
return $parsedObject; //No setter, so something else must be doing something with it, like putting it in a collection.
}
The text was updated successfully, but these errors were encountered:
I have a collection of objects similar to the Collection object in the Books example on the website, however it crashes when it gets to unmarshalling it since it seems to think a setter is required for structure types. I believe the code fix should be:
$setter = $ast->getSetMethod();
if ($setter != null) {
$parentObject->$setter( $parsedObject );
} else {
return $parsedObject; //No setter, so something else must be doing something with it, like putting it in a collection.
}
The text was updated successfully, but these errors were encountered: