Correction de l'écriture du xml
This commit is contained in:
parent
9d6468d0a6
commit
5d335f2ca9
|
@ -160,7 +160,7 @@ class AnnotationClassLoader extends Loader
|
|||
$loaded = $complexTypeResolver->load($phpType);
|
||||
$complexType = new ComplexType($phpType, isset($loaded['alias']) ? $loaded['alias'] : $phpType);
|
||||
foreach ($loaded['properties'] as $name => $property) {
|
||||
$complexType->add($name, $this->loadType($property->getValue()), $property->isNillable());
|
||||
$complexType->add($name, $this->loadType($property->getValue()), $property->isNillable(), $property->getMinOccurs());
|
||||
}
|
||||
|
||||
$this->typeRepository->addComplexType($complexType);
|
||||
|
|
|
@ -268,7 +268,6 @@ class Dumper
|
|||
// 1 is the default value of minOccurs.
|
||||
if (1 != $child->getMinOccurs()) {
|
||||
$element->setAttribute('minOccurs', $child->getMinOccurs());
|
||||
$element->setAttribute('maxOccurs', 'unbounded');
|
||||
}
|
||||
|
||||
$all->appendChild($element);
|
||||
|
|
Loading…
Reference in New Issue