A property with a hyphen in the name
h4kuna opened this issue · comments
Milan Matějček commented
Bug Report
Hello,
Q | A |
---|---|
BC Break | no |
Version | both 2.4.2 and dev 3 |
Summary
The wsdl provide property definizioni-listini
if i generate classes the property has name definizioniListini
. But if I get response the assign to object is to property definizioni-listini
instead of definizioniListini
. And method is
public function getDefinizioniListini(): ArrayOfDefinizioneListino
{
return $this->definizioniListini;
}
Current behavior
Broken assign from soap response to generated class.
How to reproduce
Expected behavior
The property definizioniListini
is filled.
Toon Verwerft commented
Interesting.
Since PHP's soap extension is not able to fill it in for you, can you try solving it by creating a custom type converter for it instead?
Info:
- https://github.com/php-soap/ext-soap-engine/tree/main#typeconverter
- https://github.com/php-soap/ext-soap-engine/blob/main/src/Configuration/TypeConverter/TypeConverterInterface.php
Type info:
- namespace :
http://www.immobinet.it/wsdl/WebserviceModAgenziaBundle
- type:
getDefinizioneListiniResponse
Toon Verwerft commented
It is not something we can deal with at the moment. Check #485 for more information.