Added message exception if the "setter" is not specified to hydrate a complex type.

This commit is contained in:
Francis Besset 2011-08-16 21:18:44 +03:00
parent d38e0c03b7
commit bf2f88aa05
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class RpcLiteralRequestMessageBinder implements MessageBinderInterface
$instanceType->{$type->getOriginalName()} = $value;
} elseif ($type instanceof MethodComplexType) {
if (!$type->getSetter()) {
throw new \LogicException();
throw new \LogicException(sprintf('"setter" option must be specified to hydrate "%s::%s()"', $phpType, $type->getOriginalName()));
}
$instanceType->{$type->getSetter()}($value);