mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-01 21:06:15 +03:00
Fixed #1276: Symfony Serializer Groups cause Exception while parsing
This commit is contained in:
parent
0a946c5529
commit
badcc8abdd
1 changed files with 2 additions and 2 deletions
|
@ -63,8 +63,8 @@ class ObjectModelDescriber implements ModelDescriberInterface, ModelRegistryAwar
|
|||
$property = $properties->get($annotationsReader->getPropertyName($reflectionProperty, $propertyName));
|
||||
|
||||
$groups = $model->getGroups();
|
||||
if (isset($groups[$property]) && is_array($groups[$property])) {
|
||||
$groups = $model->getGroups()[$property];
|
||||
if (isset($groups[$propertyName]) && is_array($groups[$propertyName])) {
|
||||
$groups = $model->getGroups()[$propertyName];
|
||||
}
|
||||
|
||||
$annotationsReader->updateProperty($reflectionProperty, $property, $groups);
|
||||
|
|
Loading…
Add table
Reference in a new issue