[SoapBundle] Fixed usage of bad key in ComplexType strategy

Fix issue #5
This commit is contained in:
Francis Besset 2013-08-06 10:50:07 +02:00
parent bef19356d6
commit 71d84eddb7
3 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ class RpcLiteralRequestMessageBinder implements MessageBinderInterface
$this->messageRefs[$hash] = $message;
$messageBinder = new MessageBinder($message);
foreach ($this->definitionComplexTypes[$phpType] as $type) {
foreach ($this->definitionComplexTypes[$phpType]['properties'] as $type) {
$property = $type->getName();
$value = $messageBinder->readProperty($property);

View File

@ -83,7 +83,7 @@ class RpcLiteralResponseMessageBinder implements MessageBinderInterface
}
$messageBinder = new MessageBinder($message);
foreach ($this->definitionComplexTypes[$phpType] as $type) {
foreach ($this->definitionComplexTypes[$phpType]['properties'] as $type) {
$property = $type->getName();
$value = $messageBinder->readProperty($property);

View File

@ -84,6 +84,6 @@ class ComplexType extends AbstractComplexTypeStrategy
$complexType->appendChild($all);
$this->getContext()->getSchema()->appendChild($complexType);
$this->definition->addDefinitionComplexType($type, $definitionComplexType);
$this->definition->addDefinitionComplexType($classname, $definitionComplexType);
}
}