diff --git a/Form/Type/DoctrineORMSerializationType.php b/Form/Type/DoctrineORMSerializationType.php index cb83694b..5f7fb771 100644 --- a/Form/Type/DoctrineORMSerializationType.php +++ b/Form/Type/DoctrineORMSerializationType.php @@ -98,7 +98,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) continue; } - if (!in_array($this->group, $propertyMetadata->groups)) { + if (!$propertyMetadata->groups || !in_array($this->group, $propertyMetadata->groups)) { continue; }