Maintain array structure
This commit is contained in:
parent
eac14b5ef2
commit
b73b87d571
@ -248,7 +248,7 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec
|
||||
} else {
|
||||
$data['item'][] = $value;
|
||||
}
|
||||
} elseif (array_key_exists($key, $data)) {
|
||||
} elseif (array_key_exists($key, $data) || $key == "entry") {
|
||||
if ((false === is_array($data[$key])) || (false === isset($data[$key][0]))) {
|
||||
$data[$key] = array($data[$key]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user