pibx icon indicating copy to clipboard operation
pibx copied to clipboard

Structure Type expects Setter during Unmarshalling?

Open kjordan2001 opened this issue 12 years ago • 1 comments

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. }

kjordan2001 avatar Sep 29 '12 14:09 kjordan2001

And actually that may need to be $newObject since sometimes $parsedObject is null but $newObject is still fully populated.

kjordan2001 avatar Sep 30 '12 04:09 kjordan2001