Skip to content

Commit

Permalink
added included_fields option to AutoFormType
Browse files Browse the repository at this point in the history
  • Loading branch information
nexxome committed Jun 5, 2024
1 parent 01b54e8 commit ec4c6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Manipulator/DoctrineORMManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private function filteringValidObjectFields(array $objectFieldsConfig, array $fo

$validFields = [];
foreach ($objectFieldsConfig as $fieldName => $fieldConfig) {
if (!\in_array($fieldName, $formIncludedFields, true)) {
if (!empty($formIncludedFields) && !\in_array($fieldName, $formIncludedFields, true)) {
continue;
}
if (\in_array($fieldName, $excludedFields, true)) {
Expand Down

0 comments on commit ec4c6e6

Please sign in to comment.