#102 - Fix for JMS @Type change

This commit is contained in:
Doug Hurst 2012-11-26 12:27:27 -06:00
parent 5610c032ae
commit 035ebfc965
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
vendor/ vendor/
composer.lock composer.lock
phpunit.xml phpunit.xml
*.iml
.idea/

View File

@ -77,7 +77,7 @@ class JmsMetadataParser implements ParserInterface
if (!is_null($item->type)) { if (!is_null($item->type)) {
$name = isset($item->serializedName) ? $item->serializedName : $item->name; $name = isset($item->serializedName) ? $item->serializedName : $item->name;
$dataType = $this->processDataType($item->type); $dataType = $this->processDataType($item->type ? is_string($item->type) : $item->type['name']);
$params[$name] = array( $params[$name] = array(
'dataType' => $dataType['normalized'], 'dataType' => $dataType['normalized'],