Skip to content

Commit f48b414

Browse files
authored
Update create_custom_field_type.rst
1 parent bb0d522 commit f48b414

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

form/create_custom_field_type.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -388,14 +388,14 @@ configuration, using the field is now much easier::
388388
{
389389
public function buildForm(FormBuilderInterface $builder, array $options)
390390
{
391-
$builder->add('gender_code', 'gender', array(
391+
$builder->add('gender_code', 'app_gender', array(
392392
'placeholder' => 'Choose a gender',
393393
));
394394
}
395395
}
396396

397397
Notice that instead of instantiating a new instance, you can just refer to
398-
it by the alias used in your service configuration, ``gender``. Have fun!
398+
it by the alias used in your service configuration, ``app_gender``. Have fun!
399399

400400
.. _`ChoiceType`: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php
401401
.. _`FieldType`: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Extension/Core/Type/FieldType.php

0 commit comments

Comments
 (0)