Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
5d335f2ca9 | |||
9d6468d0a6 | |||
9786f291b0 | |||
750db6692b |
@ -47,7 +47,7 @@
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "master-dev"
|
||||
"dev-master": "5.2.0-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user