We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c55784 commit 79aae2bCopy full SHA for 79aae2b
doctrine/registration_form.rst
@@ -152,7 +152,7 @@ saves the user::
152
public function register(Request $request, UserPasswordEncoderInterface $passwordEncoder): Response
153
{
154
$user = new User();
155
- $form = $this->createForm(RegistrationFormType::class);
+ $form = $this->createForm(RegistrationFormType::class, $user);
156
$form->handleRequest($request);
157
158
if ($form->isSubmitted() && $form->isValid()) {
0 commit comments