Skip to content

Commit ec4c6e6

Browse files
committed
added included_fields option to AutoFormType
1 parent 01b54e8 commit ec4c6e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Form/Manipulator/DoctrineORMManipulator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private function filteringValidObjectFields(array $objectFieldsConfig, array $fo
9292

9393
$validFields = [];
9494
foreach ($objectFieldsConfig as $fieldName => $fieldConfig) {
95-
if (!\in_array($fieldName, $formIncludedFields, true)) {
95+
if (!empty($formIncludedFields) && !\in_array($fieldName, $formIncludedFields, true)) {
9696
continue;
9797
}
9898
if (\in_array($fieldName, $excludedFields, true)) {

0 commit comments

Comments
 (0)