Skip to content

Commit

Permalink
Fix indentation of options_code
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jan 15, 2025
1 parent 468ff27 commit 91b7ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Doctrine/EntityDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ public function getFormFields(): array
}
$fieldsWithTypes[$fieldName] = [
'type' => EntityType::class,
'options_code' => \sprintf('\'class\' => %s::class,', $relation['targetEntity']).\PHP_EOL.'\'choice_label\' => \'id\',',
'options_code' => \sprintf('\'class\' => %s::class,', $relation['targetEntity'])."\n 'choice_label' => 'id',",
'extra_use_classes' => [$relation['targetEntity']],
];
if (\Doctrine\ORM\Mapping\ClassMetadata::MANY_TO_MANY === $relation['type']) {
$fieldsWithTypes[$fieldName]['options_code'] .= "\n'multiple' => true,";
$fieldsWithTypes[$fieldName]['options_code'] .= "\n 'multiple' => true,";
}
}

Expand Down

0 comments on commit 91b7ce0

Please sign in to comment.