This commit is contained in:
Yi Ping 2017-12-18 08:06:19 +08:00
parent d4bf23bcfb
commit 3b81fa4f2f

View File

@ -95,10 +95,11 @@ class JMSModelDescriber implements ModelDescriberInterface, ModelRegistryAwareIn
continue; 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(); $groups = $model->getGroups();
else } else {
$groups = $model->getGroups()[$name]; $groups = $model->getGroups()[$name];
}
$property->setRef( $property->setRef(