diff --git a/src/Form/Manipulator/DefaultManipulator.php b/src/Form/Manipulator/DefaultManipulator.php index ca85a3b..0c7bd02 100644 --- a/src/Form/Manipulator/DefaultManipulator.php +++ b/src/Form/Manipulator/DefaultManipulator.php @@ -41,7 +41,7 @@ public function getFieldsConfig(FormInterface $form) $objectFields = $this->objectInfo->getFieldsConfig($class); $objectFields = $this->filterObjectFields($objectFields, $formOptions['excluded_fields']); - if (!empty($formFields)) { + if (empty($formFields)) { return $objectFields; }