mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-02 21:36:14 +03:00
changes
This commit is contained in:
parent
d4bf23bcfb
commit
3b81fa4f2f
1 changed files with 3 additions and 2 deletions
|
@ -95,10 +95,11 @@ class JMSModelDescriber implements ModelDescriberInterface, ModelRegistryAwareIn
|
|||
continue;
|
||||
}
|
||||
|
||||
if(empty($model->getGroups()) || !array_key_exists($name, $model->getGroups()) || !is_array($model->getGroups()[$name]))
|
||||
if(!array_key_exists($name, $model->getGroups()) || !is_array($model->getGroups()[$name])) {
|
||||
$groups = $model->getGroups();
|
||||
else
|
||||
} else {
|
||||
$groups = $model->getGroups()[$name];
|
||||
}
|
||||
|
||||
|
||||
$property->setRef(
|
||||
|
|
Loading…
Add table
Reference in a new issue