8000 Merge branch '2.0' · jeremyFreeAgent/symfony-docs@ad8557a · GitHub
[go: up one dir, main page]

Skip to content

Commit ad8557a

Browse files
committed
Merge branch '2.0'
2 parents 7da49bc + 364c8d4 commit ad8557a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

cookbook/doctrine/registration_form.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ You have a simple ``User`` entity mapped to the database::
7474
}
7575
}
7676

77-
This ``User`` entity contains three fields and two of them (email and
78-
password) should display on the form. The email property must be unique
77+
This ``User`` entity contains three fields and two of them (``email`` and
78+
``plainPassword``) should display on the form. The email property must be unique
7979
in the database, this is enforced by adding this validation at the top of
8080
the class.
8181

@@ -94,7 +94,6 @@ Next, create the form for the ``User`` model::
9494
namespace Acme\AccountBundle\Form\Type;
9595

9696
use Symfony\Component\Form\AbstractType;
97-
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
9897
use Symfony\Component\Form\FormBuilder;
9998

10099
class UserType extends AbstractType
@@ -120,9 +119,9 @@ Next, create the form for the ``User`` model::
120119
}
121120
}
122121

123-
There are just two fields: email and password (repeated to confirm the entered
124-
password). The ``data_class`` option tells the form the name of data class
125-
(i.e. your ``User`` entity).
122+
There are just two fields: ``email`` and ``plainPassword`` (repeated to confirm
123+
the entered password). The ``data_class`` option tells the form the name of
124+
data class (i.e. your ``User`` entity).
126125

127126
.. tip::
128127

@@ -185,7 +184,6 @@ Next, create the form for this ``Registration`` model::
185184
namespace Acme\AccountBundle\Form\Type;
186185

187186
use Symfony\Component\Form\AbstractType;
188-
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
189187
use Symfony\Component\Form\FormBuilder;
190188

191189
class RegistrationType extends AbstractType

0 commit comments

Comments
 (0)
0