mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 11:09:26 +03:00
Support doctrine Collection (#1369)
This commit is contained in:
parent
09e6f30572
commit
619ae0d5ae
@ -86,7 +86,7 @@ class ObjectModelDescriber implements ModelDescriberInterface, ModelRegistryAwar
|
|||||||
}
|
}
|
||||||
|
|
||||||
$type = $types[0];
|
$type = $types[0];
|
||||||
if (Type::BUILTIN_TYPE_ARRAY === $type->getBuiltinType()) {
|
if ($type->isCollection()) {
|
||||||
$type = $type->getCollectionValueType();
|
$type = $type->getCollectionValueType();
|
||||||
if (null === $type) {
|
if (null === $type) {
|
||||||
throw new \LogicException(sprintf('Property "%s:%s" is an array, but no indication of the array elements are made. Use e.g. string[] for an array of string.', $class, $propertyName));
|
throw new \LogicException(sprintf('Property "%s:%s" is an array, but no indication of the array elements are made. Use e.g. string[] for an array of string.', $class, $propertyName));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user