Open SimonAnnetts opened 4 years ago
Group max occurs are not that easy to translate from xsd to php, there might be a bug in the current implementation
Ok, well for now I guess I'll just modify the created classes to fix the elements that should be arrays as I have a project I need to finish. I would like to try and fix this though if I get some time. I noticed that the phpunit tests don't seem to test for this scenario of an array element inside of a group. Is it likely the bug is here in xsd2php or in the xsd-reader?
i think that is both... :(
xsd-reader is easier to test sice its structure is more clear and simple, while on xsd2php could be harder
Hi, not sure if this issue should be posted here in xsd2php or in xsd-reader, but I have the following fragment of an XSD:
This currently produces the following code fragment for the class Product:
In the XSD the group 'gp.record_metadata' specifies an element 'DeletionText' with maxOccurs="unbounded". In the code above this element is created as a single, but I would expect the output for this field to be:
and for there to be additional methods:
Is this a bug, or a missing feature?
Here is the full XSD: ONIX_BookProduct_3.0_reference_strict.xsd.zip and my config: