@@ -74,8 +74,8 @@ You have a simple ``User`` entity mapped to the database::
74
74
}
75
75
}
76
76
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
79
79
in the database, this is enforced by adding this validation at the top of
80
80
the class.
81
81
@@ -94,7 +94,6 @@ Next, create the form for the ``User`` model::
94
94
namespace Acme\AccountBundle\Form\Type;
95
95
96
96
use Symfony\Component\Form\AbstractType;
97
- use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
98
97
use Symfony\Component\Form\FormBuilder;
99
98
100
99
class UserType extends AbstractType
@@ -120,9 +119,9 @@ Next, create the form for the ``User`` model::
120
119
}
121
120
}
122
121
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).
126
125
127
126
.. tip ::
128
127
@@ -185,7 +184,6 @@ Next, create the form for this ``Registration`` model::
185
184
namespace Acme\AccountBundle\Form\Type;
186
185
187
186
use Symfony\Component\Form\AbstractType;
188
- use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
189
187
use Symfony\Component\Form\FormBuilder;
190
188
191
189
class RegistrationType extends AbstractType
0 commit comments