minor #29788 Changed gender choice types to color (aaronsomi)
This PR was merged into the 3.4 branch.
Discussion
----------
Changed gender choice types to color
| Q | A
| ------------- | ---
| Branch? | 3.4 <!-- see below -->
| Bug fix? |no
| New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks? | no <!-- see https://symfony.com/bc -->
| Deprecations? |no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass? | yes <!-- please add some, will be required by reviewers -->
| Fixed tickets | #29737 <!-- #-prefixed issue number(s), if any -->
| License | MIT
| Doc PR | - <!-- required for new features -->
Commits
-------
fdf98af58b
Changed gender choice types to color
This commit is contained in:
commit
8555ffc77e
@ -26,8 +26,8 @@ use Symfony\Component\Form\Extension\Core\CoreExtension;
|
||||
* ->add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType')
|
||||
* ->add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType')
|
||||
* ->add('age', 'Symfony\Component\Form\Extension\Core\Type\IntegerType')
|
||||
* ->add('gender', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array(
|
||||
* 'choices' => array('Male' => 'm', 'Female' => 'f'),
|
||||
* ->add('color', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array(
|
||||
* 'choices' => array('Red' => 'r', 'Blue' => 'b'),
|
||||
* ))
|
||||
* ->getForm();
|
||||
*
|
||||
|
@ -31,8 +31,8 @@ class CompoundFormPerformanceTest extends FormPerformanceTestCase
|
||||
$form = $this->factory->createBuilder('Symfony\Component\Form\Extension\Core\Type\FormType')
|
||||
->add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType')
|
||||
->add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType')
|
||||
->add('gender', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array(
|
||||
'choices' => array('male' => 'Male', 'female' => 'Female'),
|
||||
->add('color', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array(
|
||||
'choices' => array('red' => 'Red', 'blue' => 'Blue'),
|
||||
'required' => false,
|
||||
))
|
||||
->add('age', 'Symfony\Component\Form\Extension\Core\Type\NumberType')
|
||||
|
Reference in New Issue
Block a user