mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59: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];
|
||||
if (Type::BUILTIN_TYPE_ARRAY === $type->getBuiltinType()) {
|
||||
if ($type->isCollection()) {
|
||||
$type = $type->getCollectionValueType();
|
||||
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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user