diff --git a/cookbook/doctrine/registration_form.rst b/cookbook/doctrine/registration_form.rst index 956026248c1..47e6873b008 100644 --- a/cookbook/doctrine/registration_form.rst +++ b/cookbook/doctrine/registration_form.rst @@ -163,8 +163,8 @@ Next, create the form for the ``User`` entity:: public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('email', 'email'); - ->add('username', 'text'); + ->add('email', 'email') + ->add('username', 'text') ->add('plainPassword', 'repeated', array( 'type' => 'password', 'first_options' => array('label' => 'Password'),