Closed ivoba closed 4 years ago
I currently don't have a solution for this issue as PHP won't neither be able to differentiate an object from one namespace from the other one, I think...
So either you have the possibility to rename the two elements or you won't have the possibility generated two distincts classes.
I guess its the same problem as described here: https://github.com/phpro/soap-client/blob/master/docs/known-issues/ext-soap.md#duplicate-typenames
Luckily i was able to switch to REST and XSDs to circumvent this. I guess we can close the issue.
Ok, thanks for the info :wink:
It seems xsd namespaced imports are not respected for type generation.
I have two types with same name which are imported in different namespace but the PHP struct class is only one Type.
Type 1:
Type 2:
That leads to problem because one type extends another type which has the same element but with a different type. In PHP class this triggers an error when using reflection, f.e for AutoMappers. On
class TravellerType extends NonCyrillicPersonType
:So this mixes the setContacts from Type2 on the extended type of Type1.